Skip to main content
POST
/
cpc
/
creatives
Create creative
curl --request POST \
  --url https://studio-api.onlytraffic.com/api/external/v1/cpc/creatives \
  --header 'Content-Type: multipart/form-data' \
  --header 'X-API-Key: <api-key>' \
  --form of_account_id=123 \
  --form 'display_name=<string>' \
  --form 'description=<string>' \
  --form 'internal_name=<string>' \
  --form link_type=manual \
  --form 'url=<string>' \
  --form 'images=<string>' \
  --form 'image_hashes=<string>' \
  --form images.items='@example-file'
{
  "success": true,
  "data": {
    "public_id": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://onlytraffic.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-Key
string
header
required

Your API key from the Studio Dashboard

Body

multipart/form-data
of_account_id
integer
required
display_name
string
required
Maximum string length: 255
description
string
required
Maximum string length: 2000
internal_name
string | null

Your private label for this creative (visible only to your team). Auto-generated if omitted.

Maximum string length: 100
Available options:
manual,
tracking,
trial
url
string<uri> | null

Outbound URL for the creative. Required when link_type=manual (or link_type is omitted). Must be a valid onlyfans.com URL (or subdomain).

trial_days
enum<integer> | null

Trial length in days. Required when link_type=trial. One of: 7, 14, 30, 90.

Available options:
7,
14,
30,
90
images
file[]

JPEG / PNG / WebP / HEIC / HEIF, max 10 MB each.

Maximum array length: 5
image_hashes
string[]

Hashes of images already attached to creatives on the SAME OF account. Combined with images[] they can total up to 5.

Maximum array length: 5
Pattern: ^[a-f0-9]{6}$

Response

Created

success
boolean
Example:

true

data
object