Technical API documentation for developers who want to integrate tasket with their applications and automate workflows programmatically.
To use the tasket API, you'll need to authenticate your requests using an API key. Here's how to get started:
Include your API key in the Authorization header of every request:
Authorization: Bearer YOUR_API_KEYSecurity Best Practices: Never expose your API keys in client-side code, public repositories, or share them in screenshots. Use environment variables or secure key management systems. Rotate keys regularly and revoke keys you no longer need.
All API requests should be made to the tasket API base URL:
https://api.tasket.co/v1Note: Replace the base URL with your actual API endpoint. The version (v1) may change as the API evolves, so check the documentation for the latest version.
/documentsUpload a new document for processing. The document will be automatically processed and data will be extracted.
curl -X POST https://api.tasket.co/v1/documents \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@document.pdf"Returns the document ID and processing status. You can poll for completion or use webhooks to be notified when processing is done.
/documentsList all documents with optional filtering by status, type, date range, and pagination.
curl https://api.tasket.co/v1/documents?status=done&limit=10 \
-H "Authorization: Bearer YOUR_API_KEY"Returns a paginated list of documents with metadata. Use query parameters to filter results.
/documents/:idGet detailed information about a specific document including all extracted data, processing status, and metadata.
Returns complete document details including extracted fields, classification, confidence scores, and links to source files.
/searchPerform semantic search across all your documents using natural language queries.
curl -X POST https://api.tasket.co/v1/search \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "invoices over $1000"}'Returns relevant documents ranked by relevance. Works just like the search feature in the web interface.
/company-ai/chatAsk questions to Company AI programmatically and get answers with source citations.
Send a message and optional conversation history. Returns AI-generated answer with source document citations, just like the web interface.
Configure webhooks to receive real-time notifications when events occur in tasket. This allows your applications to react automatically to document processing, task creation, and other events.
For detailed webhook setup instructions and available events, see theIntegrations guide.
Official SDKs and libraries make it easier to integrate tasket with your applications:
npm install @tasket/sdkSDKs provide helper functions and type definitions to simplify API integration
npm install @tasket/sdkSDKs provide helper functions and type definitions to simplify API integration
npm install @tasket/sdkSDKs provide helper functions and type definitions to simplify API integration
npm install @tasket/sdkSDKs provide helper functions and type definitions to simplify API integration
npm install @tasket/sdkSDKs provide helper functions and type definitions to simplify API integration
npm install @tasket/sdkSDKs provide helper functions and type definitions to simplify API integration
Note: SDKs are optional but recommended. They handle authentication, request formatting, and response parsing automatically. You can also use the REST API directly with any HTTP client.