Skip to content
AdCrunch
Esc
navigateopen⌘Jpreview

Create a Persona

Creates a Persona on a Brand. A Persona describes one audience that the brand speaks to. Every section and both ends of the age range are optional, because you write a Persona one part at a time. The slug is unique in the Brand, not in your organization. The answer is 409 if the slug already exists on this Brand.

POST/context/brands/{slug}/personas/
Authorization
AuthorizationBearer token · headerrequired

Send Authorization: Bearer <credential>. Two credentials work.

An API key (acr_…) is what a server integration uses. Create one in the AdCrunch console under Settings → API keys — see https://docs.adcrunch.dev/account/api-keys. A key is bound to the organization that was active when you created it, and it keeps acting on that organization whatever you do later. It carries the permissions of the member who created it.

A session issued by the AdCrunch sign-in flow also works, which is how the console calls this service from the browser.

Either way the organization comes from the credential. There is no organization parameter.

Path parameters
slugstringrequired
Request body
requiredapplication/json
age_maxinteger

Upper age bound. Omit for "and older".

min 0 · max 120
age_mininteger

Lower age bound. Omit for "and younger".

min 0 · max 120
descriptionstringrequired

One-line summary — what agents read to pick this Persona.

min length 1 · max length 500
frictionsstring

What stops them: objections, doubts, inertia (markdown).

min length 1
languagestring

The words the audience itself uses for the problem — verbatims and vocabulary, in their own register (markdown). Not a locale.

min length 1
motivationsstring

What they want: jobs to be done, triggers, outcomes (markdown).

min length 1
namestringrequired

Display name.

min length 1 · max length 120
profilestring

Who they are: life stage, situation, role, context (markdown).

min length 1
slugstring

Optional explicit slug handle; normalized to kebab-case. Unique within this Brand, so two Brands may each hold the same one. Defaults to one derived from the name.

max length 120
Responses
201

The Persona as created.

ageMaxnumber | nullrequired
ageMinnumber | nullrequired

Each bound is independently optional, so "35+" is expressible.

brandIdstringrequired
createdAtnumberrequired

Milliseconds since the Unix epoch, UTC.

createdBystringrequired
descriptionstringrequired
frictionsstring | nullrequired

Objections, doubts, what stops them.

idstringrequired
languagestring | nullrequired

The words they use for the problem, in their own register. Not a locale, despite the name.

motivationsstring | nullrequired

What they want, and what triggers them.

namestringrequired
profilestring | nullrequired

Who they are, and their situation.

revisionnumberrequired

Increments on every write. Send it back as base_revision to edit; a stale one answers 409.

slugstringrequired
updatedAtnumber | nullrequired

Milliseconds since the Unix epoch, UTC.

401

No credential, or one that does not resolve. Send an API key or a session. See the security scheme. error is unauthorized.

errorstringrequired

A stable code for the failure. This is the field to branch on. It does not change for a given failure.

Allowed:unauthorized
messagestringrequired

A sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.

403

The caller does not hold brand:write. error is forbidden.

errorstringrequired

A stable code for the failure. This is the field to branch on. It does not change for a given failure.

Allowed:forbidden
messagestringrequired

A sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.

404

No Brand with that slug. error is not_found.

errorstringrequired

A stable code for the failure. This is the field to branch on. It does not change for a given failure.

messagestringrequired

A sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.

409

This Brand already has a Persona with that slug. error is slug_conflict. Another Brand may hold the same one — the scope of the uniqueness is the Brand, not the organization.

slugstringrequired

The slug that is already taken.

errorstringrequired

A stable code for the failure. This is the field to branch on. It does not change for a given failure.

Allowed:slug_conflict
messagestringrequired

A sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.

422

Two codes share this status. invalid_slug: the name and slug carry no letter or digit. invalid_age_range: the minimum is above the maximum.

errorstringrequired

A stable code for the failure. This is the field to branch on. It does not change for a given failure.

messagestringrequired

A sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.

Request
curl -X POST "https://api.adcrunch.dev/context/brands/string/personas/" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "age_max": 0,
  "age_min": 0,
  "description": "string",
  "frictions": "string",
  "language": "string",
  "motivations": "string",
  "name": "string",
  "profile": "string",
  "slug": "string"
}'
Response
{
  "ageMax": 0,
  "ageMin": 0,
  "brandId": "string",
  "createdAt": 0,
  "createdBy": "string",
  "description": "string",
  "frictions": "string",
  "id": "string",
  "language": "string",
  "motivations": "string",
  "name": "string",
  "profile": "string",
  "revision": 0,
  "slug": "string",
  "updatedAt": 0
}