Prompts
Create Prompt
POST
/
v1
/
prompts
/
create
curl --request POST \
--url https://api.vocode.dev/v1/prompts/create \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"collect_fields": [
{
"description": "<string>",
"field_type": "field_type_email",
"label": "<string>",
"name": "<string>"
}
],
"content": "<string>",
"context_endpoint": "<string>",
"prompt_template": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
"collect_fields": [
{
"description": "<string>",
"field_type": "field_type_email",
"label": "<string>",
"name": "<string>"
}
],
"content": "<string>",
"context_endpoint": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"prompt_template": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label": "<string>",
"required_context_keys": [],
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
collect_fields
object[]
content
string
default: context_endpoint
string
prompt_template
Response
200 - application/json
collect_fields
object[]
content
string
default: context_endpoint
string
id
string
requiredprompt_template
object
user_id
string
requiredcurl --request POST \
--url https://api.vocode.dev/v1/prompts/create \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"collect_fields": [
{
"description": "<string>",
"field_type": "field_type_email",
"label": "<string>",
"name": "<string>"
}
],
"content": "<string>",
"context_endpoint": "<string>",
"prompt_template": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
"collect_fields": [
{
"description": "<string>",
"field_type": "field_type_email",
"label": "<string>",
"name": "<string>"
}
],
"content": "<string>",
"context_endpoint": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"prompt_template": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label": "<string>",
"required_context_keys": [],
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}