api reference

Create Knowledge Upload

POST
/v1/knowledge/uploads

Header Parameters

authorization?string|null

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Body of POST /knowledge/uploads: the file a browser will send straight to storage.

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/knowledge/uploads" \  -H "Content-Type: application/json" \  -d '{    "filename": "string",    "content_type": "string",    "size_bytes": 1  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "key": "string",  "content_type": "string",  "max_bytes": 0,  "expires_at": "2019-08-24T14:15:22Z"}