Skip to content
AdCrunch
Esc
navigateopen⌘Jpreview

Create a Brand

Creates a Brand in your organization. Every narrative section is optional, because you write a Brand one part at a time. AdCrunch makes the slug from the name. To set a different slug, send one. The answer is 409 if the slug already exists in your organization.

POST/context/brands/
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.

Request body
requiredapplication/json
descriptionstringrequired

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

min length 1 · max length 500
guidelinesstring

Do's and don'ts, guardrails, claims to avoid (markdown).

min length 1
identitystring

Who the brand is: positioning, mission, offering (markdown).

min length 1
messagingstring

Key messages, value propositions, proof points (markdown).

min length 1
namestringrequired

Display name.

min length 1 · max length 120
slugstring

Optional explicit slug handle; normalized to kebab-case. Defaults to one derived from the name.

max length 120
voicestring

Tone of voice and personality (markdown).

min length 1
website_urlstring<uri>

The Brand's public site — a locator like the slug, not a section. Setting it does nothing on its own; reading it is a separate, explicit call.

Responses
201

The Brand as created. Every unwritten section comes back null, which is a normal state rather than an error.

createdAtnumberrequired

Milliseconds since the Unix epoch, UTC.

createdBystringrequired
descriptionstringrequired
guidelinesstring | nullrequired

Do’s and don’ts, claims to avoid.

idstringrequired
identitystring | nullrequired

Positioning, mission, what is on offer.

logoDocumentIdstring | nullrequired

The Document this Brand nominates as its logo.

messagingstring | nullrequired

Key messages, value propositions, proof points.

namestringrequired
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.

voicestring | nullrequired

Tone and personality.

websiteUrlstring | nullrequired

The brand’s public site. A locator only — its contents are not stored.

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.

409

Another Brand in this organization already holds that slug. error is slug_conflict. A Skill may share it — each aggregate is addressed through its own surface.

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

The name and slug together contain no letter or digit. error is invalid_slug.

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/" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "description": "string",
  "guidelines": "string",
  "identity": "string",
  "messaging": "string",
  "name": "string",
  "slug": "string",
  "voice": "string",
  "website_url": "http://example.com"
}'
Response
{
  "createdAt": 0,
  "createdBy": "string",
  "description": "string",
  "guidelines": "string",
  "id": "string",
  "identity": "string",
  "logoDocumentId": "string",
  "messaging": "string",
  "name": "string",
  "revision": 0,
  "slug": "string",
  "updatedAt": 0,
  "voice": "string",
  "websiteUrl": "string"
}