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.
/context/brands/{slug}/personasAuthorizationBearer token · headerrequiredSend Authorization: Bearer <credential>.
Use an API key (acr_…), from the AdCrunch console under Settings → API keys.
The credential names the organization, and no operation takes an organization parameter.
See https://docs.adcrunch.dev/api/authentication.
slugstringrequiredapplication/jsonage_maxintegerUpper age bound. Omit for "and older".
age_minintegerLower age bound. Omit for "and younger".
descriptionstringrequiredOne-line summary — what agents read to pick this Persona.
frictionsstringWhat stops them: objections, doubts, inertia (markdown).
languagestringThe words the audience itself uses for the problem — verbatims and vocabulary, in their own register (markdown). Not a locale.
motivationsstringWhat they want: jobs to be done, triggers, outcomes (markdown).
namestringrequiredDisplay name.
profilestringWho they are: life stage, situation, role, context (markdown).
slugstringOptional 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.
The Persona as created, at revision 1. Every unwritten section comes back null, which is a normal state rather than an error.
ageMaxnumber | nullrequiredageMinnumber | nullrequiredEach bound is independently optional, so "35+" is expressible.
brandIdstringrequiredcreatedAtnumberrequiredMilliseconds since the Unix epoch, UTC.
createdBystringrequireddescriptionstringrequiredfrictionsstring | nullrequiredObjections, doubts, what stops them.
idstringrequiredlanguagestring | nullrequiredThe words they use for the problem, in their own register. Not a locale, despite the name.
motivationsstring | nullrequiredWhat they want, and what triggers them.
namestringrequiredprofilestring | nullrequiredWho they are, and their situation.
revisionnumberrequiredIncrements on every write. Send it back as base_revision to edit; a stale one answers 409.
slugstringrequiredupdatedAtnumber | nullrequiredMilliseconds since the Unix epoch, UTC.
The request does not match the schema of this operation: a field is missing or has the wrong type, or the body is not valid JSON. error is invalid_request, and issues names each field. Nothing was changed.
issuesobject[]requiredOne entry for each field that does not match.
Show propertiesHide properties
objectinstringrequiredThe part of the request that holds the field.
bodycookieheadersparamsquerymessagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.
pathstringrequiredA JSON Pointer into that part of the request, such as /filename. An empty string is the whole part.
errorstringrequiredA stable code for the failure. This is the field to branch on. It does not change for a given failure.
invalid_requestmessagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.
No API key, or one that does not resolve. See the security scheme. error is unauthorized.
errorstringrequiredA stable code for the failure. This is the field to branch on. It does not change for a given failure.
unauthorizedmessagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.
The caller does not hold brand:write. error is forbidden.
errorstringrequiredA stable code for the failure. This is the field to branch on. It does not change for a given failure.
forbiddenmessagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.
No Brand with that slug. error is not_found.
errorstringrequiredA stable code for the failure. This is the field to branch on. It does not change for a given failure.
messagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.
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.
slugstringrequiredThe slug that is already taken.
errorstringrequiredA stable code for the failure. This is the field to branch on. It does not change for a given failure.
slug_conflictmessagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.
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.
errorstringrequiredA stable code for the failure. This is the field to branch on. It does not change for a given failure.
messagestringrequiredA sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.