Skip to main content
GET
/
cpl
/
my-offers
Your published CPL offers.
curl --request GET \
  --url https://studio-api.onlytraffic.com/api/external/v1/cpl/my-offers \
  --header 'X-API-Key: <api-key>'
{
  "success": true,
  "data": [
    {
      "id": 123,
      "moderation_note": "<string>",
      "model": {
        "of_account_id": 123,
        "username": "<string>",
        "subscribe_price": 123,
        "session_status": "<string>"
      },
      "prices": {
        "per_subscription": 123,
        "per_messages": 123,
        "per_first_purchase": 123,
        "per_paid_subscription": 123
      },
      "budget": {
        "total": 123,
        "spent": 123,
        "max_per_day": 2
      },
      "trial": {
        "free_trial_enabled": true,
        "free_trial_days": 123,
        "trial_order_enabled": true,
        "trial_fan_count": 123
      },
      "content_channels": [],
      "blocked_sources": [],
      "description": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "created_at_ts": 123,
      "updated_at": "2023-11-07T05:31:56Z",
      "updated_at_ts": 123
    }
  ],
  "pagination": {
    "page": 1,
    "page_size": 50,
    "total": 150,
    "total_pages": 3,
    "has_next": true
  }
}

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

Query Parameters

page
integer
default:1

Page number, 1-indexed.

Required range: x >= 1
page_size
integer
default:50

Items per page. Default 50, max 100.

Required range: 1 <= x <= 100
id
integer
of_account_id
integer
status
enum<string>
Available options:
moderation,
rejected,
active,
paused,
closed
Maximum string length: 255
sort
enum<string>
default:created_at_desc
Available options:
created_at_desc,
created_at_asc,
updated_at_desc,
updated_at_asc

Response

Paged list.

success
boolean
data
object[]
pagination
object

Page-based pagination, returned by every list endpoint that isn't a cursor feed.