Create partner tool

Create a partner-level tool.

Authentication

AuthorizationBearer

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

Request

This endpoint expects an object.
namestringRequired
Unique tool name used by the assistant. Avoid names that differ only by letter case.
methodenumRequired
HTTP method the tool uses to call its endpoint.
Allowed values:
urlstringRequiredformat: "uri"
The endpoint the tool calls.
descriptionstringOptional

Natural-language description of what the tool does. This is what the assistant uses to decide when to call it, so make it specific.

headersobjectOptional

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

requestSchemaobject or nullOptional
JSON Schema of the payload the tool sends. Defines the arguments the assistant must supply when calling the tool.
responseSchemaobject or nullOptional
JSON Schema of the fields to extract from the tool response.
aliaseslist of objectsOptional
Variable bindings evaluated over the parsed JSON response, where the response body is the $ root (e.g. $.data.id). Each entry maps a variable key to a Liquid template.

Response

The created tool.
toolobject
The newly created partner tool.

Errors

400
Bad Request Error
403
Forbidden Error
409
Conflict Error
500
Internal Server Error