Create a tool
Makes a tool and answers its signing secret, the only time it is shown besides a rotation.
secretKeyAuthorizationBearer <sk_live_… or sk_test_… (a prefix and 40 base62 characters)>A secret key from the dashboard, sent as Authorization: Bearer sk_live_…. Live keys run real, charged calls; test keys (sk_test_…) run calls of at most 60 seconds, 20 a day per organization, never charged. Each key sees only its own env's calls, meetings, webhooks, memories and analytics. Publishable keys (pk_…) are refused.
application/json- body
{ "name": "order_status", "description": "Looks up an order's status by its number.", "parameters": { "type": "object", "properties": { "order": { "type": "string" } }, "required": [ "order" ] }, "url": "https://example.com/hooks/order-status", "filler": "One moment while I check."}name*ToolNameA function name, one per organization: lower-case letters, digits and _, starting with a letter, at most 64. save_note, book_meeting, end_call and names starting acme_ are ours.
^[a-z][a-z0-9_]{0,63}$"order_status"description*string1 <= length <= 1000parameters?A JSON Schema object for the arguments: "type": "object" (added when left out), properties of schema objects, required among them; at most 16 KB. Left out, the tool takes no arguments.
{ "type": "object", "properties": { "order": { "type": "string", "description": "The order number, like A-17" } }, "required": [ "order" ]}runs_on?stringWhere it runs; it never changes after. A page tool takes no url and gets no secret.
"server""server""page"url?stringRequired for a server tool. An https address, through the same rules as webhooks.
urilength <= 2000timeout_ms?integer5000 for a server tool, 10000 for a page tool, unless given.
500 <= value <= 15000filler?stringlength <= 200enabled?booleantrueThe tool and its secret. Keep the secret; it can't be read again.
application/json- response
tool*A tool (never its secret).
{ "id": "tool_6Mx1Rb8QwT3kNv5LcZ9p", "name": "order_status", "description": "Looks up an order's status by its number.", "parameters": { "type": "object", "properties": { "order": { "type": "string" } }, "required": [ "order" ] }, "runs_on": "server", "url": "https://example.com/hooks/order-status", "timeout_ms": 5000, "filler": "One moment while I check.", "enabled": true, "character_ids": [ "chr_4fT9kQ2mXw7LbN3pZs8V" ], "previous_secret_until_unix": null, "created_unix": 1793300000, "updated_unix": 1793300000}secret*|The signing secret; null for a page tool, which has none.
curl -X POST 'https://api.daxov.com/v1/tools' \ -H 'Content-Type: application/json' \ -d '{ "name": "order_status", "description": "Looks up an order'\''s status by its number.", "parameters": { "type": "object", "properties": { "order": { "type": "string" } }, "required": [ "order" ] }, "url": "https://example.com/hooks/order-status", "filler": "One moment while I check."}'{ "tool": { "id": "tool_6Mx1Rb8QwT3kNv5LcZ9p", "name": "order_status", "description": "Looks up an order's status by its number.", "parameters": { "type": "object", "properties": { "order": { "type": "string" } }, "required": [ "order" ] }, "runs_on": "server", "url": "https://example.com/hooks/order-status", "timeout_ms": 5000, "filler": "One moment while I check.", "enabled": true, "character_ids": [ "chr_4fT9kQ2mXw7LbN3pZs8V" ], "previous_secret_until_unix": null, "created_unix": 1793300000, "updated_unix": 1793300000 }, "secret": "whsec_BwgJCgsMDQ4PEBESExQVFhcYGRobHB0eHyAhIiMkJSY="}