create-upload-url
ChatGPTCreate a single-use URL to upload a file from disk, for clients that can run shell commands (for example Claude Code). Use this instead of base64 in submit-document whenever the file is on disk. Send the file with the returned curl command; the upload creates the document, starts processing and returns a document_id, exactly as submit-document does. The URL expires after 10 minutes and works once. Each processed page uses one page credit, so ask before uploading many files.





