API reference

Tools API

Actions an assistant can call during a chat. Define a tool, check which credential it holds, run it once exactly as a chat turn would, and read back every call it has made.

Endpoints

Authentication

Every call here needs Authorization: Bearer with a key from the dashboard — Authentication covers keys and scopes.

Objects returned

The models these endpoints send back, with every field. Open one to read it.

ToolResponse31 fields
  • auth_kindstringrequired
  • auth_namestring | nullrequired
  • auth_usernamestring | nullrequired
  • body_modestringrequired
  • bot_idstring (uuid) | nullrequired
  • call_countintegerrequired
  • created_atstring (date-time)required
  • descriptionstringrequired
  • display_namestring | nullrequired
  • error_countintegerrequired
  • headersobjectrequired
  • idstring (uuid)required
  • idempotentboolean | nullrequired
  • input_schemaobjectrequired
  • is_enabledbooleanrequired
  • last_called_atstring (date-time) | nullrequired
  • last_errorstring | nullrequired
  • last_error_atstring (date-time) | nullrequired
  • max_attemptsintegerrequired
  • max_response_bytesintegerrequired
  • max_response_charsintegerrequired
  • methodstringrequired
  • namestringrequired
  • org_idstring (uuid)required
  • query_templateobjectrequired
  • response_pathstring | nullrequired
  • timeout_msintegerrequired
  • updated_atstring (date-time)required
  • url_templatestringrequired
  • auth_configuredboolean

    Default: false

  • body_templateany
Message2 fields
  • messagestringrequired
  • okboolean

    Default: true

PaginatedResponse_ToolInvocationResponse_6 fields
  • itemsarray of ToolInvocationResponserequired
    15 fields · ToolInvocationResponse
    • argumentsobjectrequired
    • attemptsintegerrequired
    • bot_idstring (uuid)required
    • call_idstringrequired
    • conversation_idstring (uuid) | nullrequired
    • created_atstring (date-time)required
    • duration_msintegerrequired
    • error_codestring | nullrequired
    • idstring (uuid)required
    • okbooleanrequired
    • resultstring | nullrequired
    • status_codeinteger | nullrequired
    • stepintegerrequired
    • tool_idstring (uuid) | nullrequired
    • tool_namestringrequired
  • pageintegerrequired
  • page_sizeintegerrequired
  • totalintegerrequired
  • has_moreboolean

    Default: false

  • next_cursorstring | null
ToolTestResponse6 fields
  • contentstringrequired
  • okbooleanrequired
  • attemptsinteger

    Default: 1

  • duration_msinteger

    Default: 0

  • error_codestring | null
  • status_codeinteger | null

Something here wrong or missing? Tell us — the documentation and the API are maintained by the same person, so a correction is a fix rather than a ticket.

Building on it? Start on the free plan — no card — and call the same API the dashboard uses.

Start free