POST
/
admin
/
tool
/
custom
Create Custom Tool
curl --request POST \
  --url https://cloud.onyx.app/api/admin/tool/custom \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "definition": {},
  "custom_headers": [
    {
      "key": "<string>",
      "value": "<string>"
    }
  ],
  "passthrough_auth": true
}'
{
  "id": 123,
  "name": "<string>",
  "description": "<string>",
  "definition": {},
  "display_name": "<string>",
  "in_code_tool_id": "<string>",
  "custom_headers": [
    "<any>"
  ],
  "passthrough_auth": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.