POST
/
v1
/
prompts
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"
  }
}

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.