API referenceFiles
Upload Files
Upload files once and reference them by id afterwards — a scene's
source model, an asset's files, a message's attachments. Unreferenced
files expire after 24 hours. Requires the write scope.
Authorization
apiKey AuthorizationBearer <token>
First-party API key (sbk_live_…), presented as a Bearer token.
In: header
Request Body
multipart/form-data
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
curl -X POST "https://example.com/v1/files" \ -F files="[ \"string\" ]"{ "items": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "filename": "string", "content_type": "string", "size_bytes": 0, "sha256": "string", "status": "string", "download_url": "string", "download_expires_in": 0, "download_expires_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "expires_at": "2019-08-24T14:15:22Z" } ]}