RestApiAction
- descriptionType: stringrequired
When to call it and what it does. The agent reads it to decide whether to call, so write it as you would explain it to a person.
- methodType: stringenumrequiredvaluesGETPOSTPUTPATCHDELETE
- nameType: stringmax length:64required
What the agent calls the action. Unique within the agent, and none of the names of the agent's own tools:
get_datetime,assistant_set_variable_content, or a name starting withassistant_exit_conversation_. - urlType: stringrequired
Where the call goes, starting with
http://orhttps://written in lowercase and with nothing before it, on a public host. A host that turns out to be internal when it is resolved is not refused here, but every call to it is blocked. A{name}in the path, the query or the fragment is filled with the argument of that name; the scheme and the host take none. Every argument is also sent, as query parameters forGETandDELETEand as the JSON body for the other methods. - credentialType: object
_headers Properties: 1Headers that authenticate the call, such as
AuthorizationorX-Api-Key. Encrypted when stored and masked in every answer. A name may not also be inheaders. - headersType: objectProperties: 1
Headers that hold no secret, such as
Accept. Stored and answered as they are sent. - parametersType:Properties: 1
The arguments the agent fills in when it calls the action, as the JSON Schema of each one. A top-level argument cannot be marked required yet: say so in its
description. - timeoutType: number
_seconds Stored and answered, but not used. Every call is bounded by the same timeout.