Skip to content
AdCrunch
Esc
↑↓navigate↵open⌘Jpreview

Create a Creative

Creates a Creative: an ad idea of your organization, before any provider gets it. The new Creative holds no Variation. Add each rendition of the idea, for example the 9:16 cut and the square cut, as a Variation.

A Creative has no link to a provider creative, an advertiser or a Campaign Plan.

POST/library/creatives
Authorization
AuthorizationBearer token · headerrequired

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

Request body
requiredapplication/json
namestring | null

The name of the Creative. AdCrunch trims it. Leave it out, or send null or an empty string, for a Creative with no name.

max length 255
Responses
201

The new Creative, with no Variation.

createdAtnumberrequired

Milliseconds since the Unix epoch, UTC.

createdBystringrequired

The user who created the Creative.

deletedAtnumber | nullrequired

Always null here. A deleted Creative is not answered.

idstringrequired

The id of the Creative, crv_….

namestring | nullrequired

The name a person gave the Creative. null when nobody named it. There is no fallback name.

organizationIdstringrequired

The organization that owns the Creative.

updatedAtnumber | nullrequired

When the Creative last changed, in milliseconds since the Unix epoch, UTC. null until its first rename.

variationCountnumberrequired

How many live Variations the Creative holds. The read of one Creative holds the first page of them, and the list of the Variations of the Creative gives each page.

400

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[]required

One entry for each field that does not match.

Show properties
Array of object
instringrequired

The part of the request that holds the field.

Allowed:bodycookieheadersparamsquery
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.

pathstringrequired

A JSON Pointer into that part of the request, such as /filename. An empty string is the whole part.

errorstringrequired

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

Allowed:invalid_request
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.

401

No API key, or one that does not resolve. 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.

402

The organization has no active subscription. An owner subscribes at paywallUrl. error is organization_unentitled.

paywallUrlstring<uri>required

The page where an owner of the organization subscribes. Show it to the person.

errorstringrequired

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

Allowed:organization_unentitled
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 library: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.

Request
curl -X POST 'https://api.pr-1317.adcrunch.dev/library/creatives' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "Spring sale"
}'
Response
{
  "createdAt": 1790000300000,
  "createdBy": "usr_2e5b84",
  "deletedAt": null,
  "id": "crv_5e2a19",
  "name": "Spring sale",
  "organizationId": "org_3a7f10",
  "updatedAt": null,
  "variationCount": 0
}

Was this page helpful?