Skip to main content
POST
Run a tool

Authorizations

Authorization
string
header
required

Your virtual key, sk-alt-.... What every OpenAI and Anthropic SDK sends.

Headers

x-request-id
string

Your own reference for the request. Altrum uses it instead of making one, and returns it.

Query Parameters

format
enum<string>
default:chat

The format of the tool call you send and the message you get back.

Available options:
chat,
responses

Body

application/json

With format=chat, the tool call from the assistant message (id, type, function.name, function.arguments). With format=responses, the Responses function call item (call_id, name, arguments).

Response

The tool message.

The response is of type object.