Upload files

POST
/api/v1/files

Authorization

bearerAuth
headerAuthorizationBearer <token>

An API key created in Capy under Settings → API.

Request body

application/json
  1. body
files*array<>

The files to upload, at least one and at most 250 MB each. The answer's targets come back in this order.

Response body

FileUploadTargets

application/json
  1. response
targets*array<>
curl -X POST 'https://api.capy.ai/api/v1/files' \  -H 'Content-Type: application/json' \  -d '{  "files": [    {      "name": "string",      "mediaType": "string",      "sizeBytes": 1    }  ]}'
{  "targets": [    {      "fileId": "string",      "url": "string",      "expiresAt": "string"    }  ]}
Open in Capy