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.
name
Unique tool name used by the assistant. Avoid names that differ only by letter case.
method
HTTP method the tool uses to call its endpoint.
Allowed values:
url
The endpoint the tool calls.
description
Natural-language description of what the tool does. This is what the assistant uses to decide when to call it, so make it specific.
headers
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.
requestSchema
JSON Schema of the payload the tool sends. Defines the arguments the assistant must supply when calling the tool.
responseSchema
JSON Schema of the fields to extract from the tool response.
aliases
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.
tool
The newly created partner tool.
Errors
400
Bad Request Error
403
Forbidden Error
409
Conflict Error
500
Internal Server Error

