Connector API
Last updated
Was this helpful?
Last updated
Was this helpful?
https://api.dashworks.ai/v1/documents
Authorization header
Bearer your_token_here
The unique identifier for your custom API integration connection. You can find this ID in your integration settings at https://web.dashworks.ai/integrations
The unique identifier for the document that was returned by the Dashworks API when it was added via the POST /v1/documents endpoint.
Creates a new document if the document_id doesn't exist, or updates an existing document if it does.
/v1/documents
Authorization header
Bearer your_token_here
The unique identifier for your custom API integration connection. You can find this ID in your integration settings at https://web.dashworks.ai/integrations
For creating a new document, this field is optional - if provided, it will be used as the document's identifier. For updating an existing document, this field is required and must match a document_id previously returned by a PUT request. Note: Document ids are limited to 64 characters.
Restriction: The content field cannot exceed 10m tokens. Any content past 10m token would be truncated. Please refer to https://platform.openai.com/tokenizer for approximate token counting.
{"email":"author@example.com","name":"John Doe"}
The created timestamp (in seconds since the Unix epoch) of the source content
1730243482
The last modified timestamp (in seconds since the Unix epoch) of the source content
1730243482
If document_id
is provided as a query parameter, returns a single document object. Otherwise, returns a paginated list of documents.
/v1/documents
The unique identifier for your custom API integration connection.
123
Unique document identifier. If provided, a single document is returned.
doc_123
Number of documents to return when listing
20
Offset for pagination when listing
0
Authorization header
Bearer your_token_here