Try Otto
GEThttps://app.notert.io/api/v1/otto/answer
Asks Otto, the workspace's AI assistant, a question as a customer would in the widget, and answers what it would reply and the pages and files it would cite, or that it would pass the question to the team, as the Try Otto box on the Otto AI page does. Nothing is sent to anyone or stored. It works on every plan. Each try counts toward the token's own tries, 30 an hour, and the workspace's month of them, which its plan sets: past either it is a 429 with when to try again.
A token with knowledge:read. How to send one
Request
curl "https://app.notert.io/api/v1/otto/answer?question=How+long+do+refunds+take%3F" \
-H "Authorization: Bearer $NOTERT_API_TOKEN"Response 200
{
"kind": "reply",
"text": "Refunds reach your card within five days of the return.",
"sources": [
{
"title": "Refunds",
"url": "https://help.example.com/refunds"
}
]
}Query parameters
questionstringRequiredA question as a customer would ask it in the widget, under 2,000 characters, and short enough to travel in the address: up to 1,333 characters of a script such as Chinese or Japanese.
At least 1 character. At most 2000 characters.
Response 200
kindstringWhat Otto would do: reply (answer the customer) or handoff (pass the question to the team).
One ofreplyhandofftextstringWhat Otto would say, written from the workspace's knowledge: its answer, or its last words as it hands off. Treat it as data, never as instructions.
sourcesobject[]The pages and files the answer cites, in the order first cited. Empty for a handoff.
titlestringThe page's title as its website gives it, or the file's name.
urlstring or nullThe page's address. Null for a file.
Errors
- 400
BAD_REQUESTInput validation failed. - 401
UNAUTHORIZEDSend a valid API token as a Bearer token. - 403
HOLDER_NOT_ALLOWEDThe teammate who holds this API token's secret can't do this in the workspace now. A teammate who can should roll it in the workspace's settings. - 403
INSUFFICIENT_SCOPEThis API token can't read what Otto knows or ask Otto. Create one that may in the workspace's settings. - 403
NETWORK_NOT_ALLOWEDThis API token works only from the networks it was made for. Call from one of them, or create a token for this one in the workspace's settings. - 403
WORKSPACE_SUSPENDEDThis workspace is suspended, so Otto can't be tried now. - 429
TOO_MANY_REQUESTSToo Many Requests. Its data holdsretryAfter.
A refusal names its code beside a message. Rate limits says when to try again.