Create organization tool

Create a tool in an organization.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <API_KEY>, where API_KEY is your API key.

Path parameters

orgIdstringRequired
Organization that will own the tool.

Headers

X-Account-IdstringRequired
Account that owns the organization.

Request

This endpoint expects an object.
namestringRequired

Tool name. 1-64 characters of letters, digits, underscores or hyphens (no spaces). This is the name the assistant uses to call the tool.

methodenumRequired
The HTTP method the tool uses.
Allowed values:
urlstringRequired
The HTTP endpoint the tool calls.
descriptionstringOptional

Human-readable description of what the tool does.

headersobjectOptional

HTTP headers to send with the request, JSON-Schema-shaped: a type plus properties keyed by header name, each header being a type and value. Header values are masked when the tool is read back.

requestSchemaobjectOptional
JSON Schema of the request payload the tool sends.
responseSchemaobjectOptional
JSON Schema of the fields to extract from the tool JSON response.
aliaseslist of objectsOptional
Named values created from the tool response. Each value is a Liquid template; the response body is available as $ (for example, $.data.id).

Response

The created tool.
toolobject
The newly created tool.

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error