API Documentation
Versioned Prompts
Phone Numbers
Models
Functions
Create a function
Creates a function.
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
.
The response is of type object
.
The response is of type object
.
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>"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.