Skip to main content

โœจ Create a Creative

Creates a new creative for an advertiser.

๐Ÿ“ค Request Example

curl -X POST https://betaapi.audiohook.com/v2/companies/:companyUUID/creatives \
  -H "Authorization: Bearer ${API_TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{
    "request_headers": [
      { "name": "X-Request-Header", "value": "Header value" }
    ],
    "body": {
      "creative_name": "Snarkys 30 sec Christmas spot",
      "advertiser_id": "1234-abcd-qwer-xcvb",
      "status": true,
      "filename": "my-great-audio-ad.wav",
      "tags": [...],
      "start_flight_date": "2022-12-01",
      "end_flight_date": "2023-01-01",
      "events": [...],
      "companion_ad": {
        "click_through_url": "https://snarkyspizza.com/...",
        "display_asset_filename": "eat-at-snarkys-christmas-spot.png"
      }
    }
  }'

โœ… Response Example

{
  "creativeId": 9999,
  "s3_data": { ... },
  "s3_displayad": { ... }
}

๐ŸŒ HTTP Request

POST /v2/companies/:companyUUID/creatives

๐Ÿงพ Body Parameters

ParameterRequiredTypeDescription
creative_nameโœ…stringName of the creative.
advertiser_idโœ…stringAdvertiser UUID.
statusโœ…booleanActive status for use in campaigns.
filenameโœ…stringFilename including extension.
tagsโŒarrayTags to categorize creative.
start_flight_dateโŒstringStart date in Y-M-D.
end_flight_dateโŒstringEnd date in Y-M-D.
eventsโŒarrayPixel events to attach.
companion_adโŒobjectCompanion display ad.