Files
Initiate a chunked upload
Start a multipart upload session for a large file. Validates the file type, size, and destination up front, then returns an upload_id. Send the file in parts with PUT /files/uploads/{upload_id}/parts/{part_number}, then finalize with POST /files/uploads/{upload_id}/complete.
Use this instead of POST /files when a single request is impractical (large files, or clients with per-request payload limits). The destination options (folder_id / project_id / scope) behave exactly as on POST /files.
post/files/uploads
Request
- Base URLhttps://app.gc.ai/api/external/v1
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"file_name": "msa-2026.pdf",
"content_type": "application/pdf",
"size": 12582912,
"scope": "my-files"
}Response
Upload session created
Changes
No recorded changes to this operation across all 1 revision of this API.