content
Create new file content
Upload and create a new content item from a file, such as PDF, DOCX, or TXT documents The file size is limited to 20MB.
POST
/
content
/
file
Copy
curl --request POST \
--url https://sdk.senso.ai/api/v1/content/file \
--header 'Content-Type: multipart/form-data' \
--header 'X-API-Key: <api-key>' \
--form 'title=<string>' \
--form 'summary=<string>'
Copy
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "raw",
"title": "<string>",
"summary": "<string>",
"version_num": 123,
"processing_status": "queued",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
Authorizations
API key authorization
Body
multipart/form-data
Response
202
application/json
File content accepted for processing
The response is of type object
.
Copy
curl --request POST \
--url https://sdk.senso.ai/api/v1/content/file \
--header 'Content-Type: multipart/form-data' \
--header 'X-API-Key: <api-key>' \
--form 'title=<string>' \
--form 'summary=<string>'
Copy
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "raw",
"title": "<string>",
"summary": "<string>",
"version_num": 123,
"processing_status": "queued",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
Assistant
Responses are generated using AI and may contain mistakes.