Create document
Ingests a document from the supplied URL, applies the selected chunking strategy, and creates its Datasphere record. Datasphere accepts PDF, plain text, and Markdown files up to 10 MB. Use it when adding source material for later semantic retrieval; use Search documents after ingestion, or List documents to monitor processing status.
Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: DataSphere.
Authentication
SignalWire Basic Authentication using Project ID and API Token.
The client sends HTTP requests with the Authorization header containing the word Basic followed by a space and a base64-encoded string of project_id:token. The project ID will be used as the username and the API token as the password.
Example:
Authorization: Basic base64(project_id:token)
Request
Response
File name of the document. For documents created through this API, Datasphere takes it from the download’s Content-Disposition header, or from the last segment of the URL path when that header doesn’t name a file.