Decide
Authorization
ApiKeyAuth API key from API Keys in the dashboard menu.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/tools/decide" \ -H "Content-Type: application/json" \ -d '{ "data": { "content": "Please cancel my subscription from next month", "questions": [ { "name": "intent", "kind": "choose", "question": "What does the customer want?", "options": [ { "name": "cancel" }, { "name": "question" }, { "name": "complaint" } ] } ] } }'{ "id": "string", "self": "string", "tool": "string", "status": "pending", "origin": "string", "data": {}, "error": "string", "code": "string", "credits_used": 0, "created_at": "2019-08-24T14:15:22Z", "started_at": "2019-08-24T14:15:22Z", "completed_at": "2019-08-24T14:15:22Z", "result": { "answers": {}, "unsure": [ "string" ] }}Extract data POST
Read a document into fields, with the page each value came from. Leave out `instructions` to get everything the document holds, or describe what to get; give `schema` to fix the field names and types.
Compare POST
Check two to five documents against each other, field by field and line by line, from data already read out of them (for example with Extract data). Returns what matches, what does not, and why.