Headers
Your API key for authentication.
Body
Prompt to store.
Name of prompt you want to store as reference.
Response
Prompt object.
Prompt to store.
Name of prompt you want to store as reference.
curl --request POST \
--url https://api.bland.ai/v1/prompts \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--data '{
"prompt": "<string>",
"name": "<string>"
}'
{
"status": "success",
"prompt": {
"prompt": "# Final Test",
"name": "demo",
"id": "PT-02b2ecdi-39f2-443f-8cb0-a6c854c65fc0"
}
}
Create and store a prompt for future use.
curl --request POST \
--url https://api.bland.ai/v1/prompts \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--data '{
"prompt": "<string>",
"name": "<string>"
}'
{
"status": "success",
"prompt": {
"prompt": "# Final Test",
"name": "demo",
"id": "PT-02b2ecdi-39f2-443f-8cb0-a6c854c65fc0"
}
}
{
"status": "success",
"prompt": {
"prompt": "# Final Test",
"name": "demo",
"id": "PT-02b2ecdi-39f2-443f-8cb0-a6c854c65fc0"
}
}
Was this page helpful?