api reference

Create Knowledge Document

POST
/v1/knowledge/documents

Header Parameters

authorization?string|null

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Body of POST /knowledge/documents: an uploaded file to add.

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/knowledge/documents" \  -H "Content-Type: application/json" \  -d '{    "upload_id": "f2ef591b-135b-46fa-a604-3d4fda5bfbfb"  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "content_type": "string",  "size_bytes": 0,  "status": "pending",  "error": "string",  "piece_count": 0,  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "tags": [    {      "type": "string",      "value": "string"    }  ]}