Files
Upload a file
Upload a file to GC AI for processing and storage. Files are uploaded as multipart form data and automatically processed (text extraction, summarization, and embedding creation).
With a user-scoped key, files default to the user's "My Files" folder. With an org-scoped key, files default to the "Organization Files" folder and the my-files scope is not available.
For PDFs and Word documents, extraction runs asynchronously. Poll GET /files/{id} until status is ready.
post/files
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 multipart/form-data
Example request
{
"scope": "my-files"
}Response
File uploaded successfully
Example response
{
"content_type": "application/pdf"
}Changes
No recorded changes to this operation across all 1 revision of this API.