POST
/
api
/
v1
/
tools
Create new tool
curl --request POST \
  --url https://prod.featherhq.com/api/v1/tools \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "structure": {
    "url": "<string>",
    "method": "GET",
    "headers": {},
    "body": {},
    "timeout": 30,
    "variables": [
      {
        "name": "<string>",
        "type": "str",
        "description": "<string>",
        "required": false
      }
    ]
  },
  "speech": "<string>",
  "slug": "<string>"
}'
{
  "tool": {
    "id": "<string>",
    "name": "<string>",
    "description": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "structure": {
      "url": "<string>",
      "method": "GET",
      "headers": {},
      "body": {},
      "timeout": 30,
      "variables": [
        {
          "name": "<string>",
          "type": "str",
          "description": "<string>",
          "required": false
        }
      ]
    },
    "speech": "<string>",
    "slug": "<string>"
  }
}

Authorizations

X-API-Key
string
header
required

Body

application/json

Response

201
application/json

New tool created successfully

The response is of type object.