Personas

Create a persona

Creates a persona for the product named by productId (brandId is accepted as a legacy alias). Idempotent on name, case-insensitively: an existing persona with the same name is returned with status 200 instead of being duplicated.

post/api/v1/personas

Request

  • Base URL
    https://app.promptingco.com
  • URL
    https://app.promptingco.com/api/v1/personas
  • Auth
    • API key in header x-api-key
    • or HTTP bearer
    • or API key in cookie better-auth.session_token

Query parameters

productIdstring
brandIdstring

Request body

namestring required
descriptionstring required
systemPromptstring nullable

Response

A persona with this name already existed and is returned unchanged

oktrue required
dataunknown

Changes

No recorded changes to this operation across all 1 revision of this API.