Skip to Content
Docs

Create a file

POST
/files

Authorization

jwt
headerAuthorizationBearer <JWT>

Request Body

application/json
  1. body
ref*
meta?

Response Body

application/json
  1. response
id*string
uploadUrl*string
Formaturi
resumable?
Example Request
curl -X POST 'https://files.prod-001.prod.contextual.io/api/v1/files' \  -H 'Content-Type: application/json' \  -d '{  "ref": {    "namespace": "native-object",    "typeId": "string",    "instanceId": "string"  }}'
Example Response
{  "id": "string",  "uploadUrl": "http://example.com",  "resumable": {    "protocol": "contextual-blocks-v1",    "maxBytes": 0,    "chunkSize": 0  }}