POST
/
tool
curl --request POST \
  --url https://api.vapi.ai/tool \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "async": false,
  "messages": [
    {
      "type": "request-start",
      "content": "<string>",
      "conditions": [
        {
          "value": "<string>",
          "operator": "eq",
          "param": "<string>"
        }
      ]
    }
  ],
  "type": "dtmf",
  "function": {
    "name": "<string>",
    "description": "<string>",
    "parameters": {
      "type": "object",
      "properties": {},
      "required": [
        "<string>"
      ]
    }
  },
  "server": {
    "timeoutSeconds": 20,
    "url": "<string>",
    "secret": "<string>"
  }
}'
{
  "async": false,
  "messages": [
    {
      "type": "request-start",
      "content": "<string>",
      "conditions": [
        {
          "value": "<string>",
          "operator": "eq",
          "param": "<string>"
        }
      ]
    }
  ],
  "type": "dtmf",
  "id": "<string>",
  "orgId": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "function": {
    "name": "<string>",
    "description": "<string>",
    "parameters": {
      "type": "object",
      "properties": {},
      "required": [
        "<string>"
      ]
    }
  },
  "server": {
    "timeoutSeconds": 20,
    "url": "<string>",
    "secret": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Retrieve your API Key from Dashboard.

Body

application/json

Response

201 - application/json

The response is of type object.