POST
/
functions
curl --request POST \
  --url https://api.vogent.ai/api/functions \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "type": "transfer",
  "lifecycleMessages": {
    "started": [
      "<string>"
    ]
  },
  "allowedNumbers": [
    {
      "number": "<string>"
    }
  ]
}'
{
  "id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "type": "transfer",
  "lifecycleMessages": {
    "started": [
      "<string>"
    ]
  },
  "allowedNumbers": [
    {
      "number": "<string>"
    }
  ]
}

Body

application/json

Response

200
application/json

Successful operation

The response is of type object.