Skip to main content
POST
/
v1
/
prompts
Create Prompt
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"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.bland.ai/llms.txt

Use this file to discover all available pages before exploring further.

Headers

authorization
string
required
Your API key for authentication.

Body

prompt
string
required
Prompt to store.
name
string
Name of prompt you want to store as reference.

Response

Prompt object.
Prompt to store.
Name of prompt you want to store as reference.
{
  "status": "success",
  "prompt": {
    "prompt": "# Final Test",
    "name": "demo",
    "id": "PT-02b2ecdi-39f2-443f-8cb0-a6c854c65fc0"
  }
}

Docs for agents: llms.txt