Skip to main content
POST
/
api
/
v1
/
personalize
/
save-prompt
Save a custom prompt onto a sender profile
curl --request POST \
  --url https://api.example.com/api/v1/personalize/save-prompt \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "sender_profile_id": "<string>",
  "prompt": "<string>",
  "save_as_name": "saved"
}
'
{}

Documentation Index

Fetch the complete documentation index at: https://bavlio.mintlify.app/llms.txt

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

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
sender_profile_id
string
required
prompt
string
required
Required string length: 100 - 5000
save_as_name
string | null
default:saved

Named prompt slot to upsert into. Defaults to 'saved' so repeated playground saves update the same slot rather than accumulating entries. Collision with a reserved name returns 422.

Response

Successful Response

The response is of type Response Save Personalization Prompt Api V1 Personalize Save Prompt Post · object.