Create Knowledge Upload
Header Parameters
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"}Create Knowledge Document
Add an uploaded file to the knowledge base. Send the bytes using a `knowledge_document` upload (`POST /v1/uploads`) before calling this endpoint. Hail reads PDFs with text, DOCX, TXT, Markdown, CSV and XLSX in the background (a table is cut into pieces of up to 25 rows, each with its column names). Poll `GET /v1/knowledge/documents/{id}` until `status` is `ready` or `failed` (`error` says why).
Create Sip Connection
Connect your phone system (PBX). Add the returned SIP server, username and password to it as a generic SIP trunk. Read the password again with GET /sip-connections/{id}/password, or rotate it to get a new one. With ``pbx_host``, agents can also call out and hand calls over through your phone system.