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

# Publish Offer

> Publish a CPL offer.

Publishing CPL offers requires an account `tier` of `platinum` or `diamond`. Other tiers receive a `403`.

New offers go through moderation. They become visible to partners after our team approves them.


## OpenAPI

````yaml POST /cpl/my-offers
openapi: 3.0.3
info:
  title: OnlyTraffic Studio API
  version: 1.0.0
  description: >-
    External API for OnlyTraffic Studio. Manage and retrieve data about your
    subscribers, CPL orders, and CPC orders.
servers:
  - url: https://studio-api.onlytraffic.com/api/external/v1
security:
  - ApiKeyAuth: []
tags:
  - name: Account
    description: API key holder's wallet, profile, and aggregate state.
  - name: Accounts
    description: OnlyFans accounts attached to the API key holder.
  - name: Agencies
    description: Agency CRUD and image management. All edits stage in moderation.
  - name: CPL
    description: >-
      Cost-per-lead orders: place, list, cancel, manage settings, browse partner
      offers.
  - name: CPC
    description: Cost-per-click orders and creative management.
  - name: RevShare
    description: Revenue-share campaigns and invoices.
  - name: Swaps
    description: Two-sided traffic swap orders and offers.
  - name: Subscribers
    description: Per-fan delivery feed (cursor-paginated).
  - name: Transactions
    description: Per-transaction OF revenue feed (cursor-paginated).
paths:
  /cpl/my-offers:
    post:
      tags:
        - CPL
      summary: Publish a CPL offer.
      description: Publish a CPL offer.
      operationId: createCplMyOffer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CplClientOfferCreateRequest'
      responses:
        '201':
          description: >-
            Created. The new offer goes through moderation and becomes visible
            to partners after our team approves it.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    type: object
                    properties:
                      offer_id:
                        type: integer
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '402':
          description: Insufficient balance for `total_budget`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: >-
            Validation failed. Includes: account tier below `platinum`
            (publishing CPL offers requires `platinum` or `diamond`), model not
            active for offers, no price set, paid-only field on a free model,
            channel not approved, offer limit reached.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    CplClientOfferCreateRequest:
      type: object
      required:
        - of_account_id
        - max_per_day
        - total_budget
        - content_channels
        - approved_cpl_terms
      properties:
        of_account_id:
          type: integer
          description: One of your linked OF accounts.
        per_subscription:
          type: number
          format: float
          minimum: 0.3
          maximum: 5
        per_messages:
          type: number
          format: float
          minimum: 1
          maximum: 15
        per_first_purchase:
          type: number
          format: float
          minimum: 5
          maximum: 60
        per_paid_subscription:
          type: number
          format: float
          minimum: 3
          maximum: 99
          description: Paid-model only.
        free_trial_enabled:
          type: boolean
          description: Paid-model only.
        free_trial_days:
          type: integer
          minimum: 1
          description: Required when `free_trial_enabled=true`. Number of free trial days.
        trial_order_enabled:
          type: boolean
        trial_fan_count:
          type: integer
          minimum: 1
          description: >-
            Required when `trial_order_enabled=true`. Number of trial fans for
            first-touch experiments.
        max_per_day:
          type: integer
          minimum: 1
        total_budget:
          type: number
          format: float
          minimum: 1000
        content_channels:
          type: array
          minItems: 1
          items:
            type: string
            enum:
              - lifestyle
              - tiktok
              - lingerie
              - light_nudes
              - nudes
        blocked_sources:
          type: array
          items:
            type: string
            enum:
              - instagram
              - tiktok
              - twitter
              - reddit
              - google
              - telegram
              - tinder
              - facebook
              - youtube
              - onlyfans
        description:
          type: string
          maxLength: 5000
        approved_cpl_terms:
          type: boolean
          enum:
            - true
          description: Must be true.
    ErrorResponse:
      type: object
      description: Standard error envelope for all 4xx/5xx responses.
      required:
        - success
        - error
        - message
      properties:
        success:
          type: boolean
          enum:
            - false
          description: Always false on error responses.
        error:
          type: string
          description: Stable snake_case machine-readable error code. Branch on this.
          example: validation_failed
        message:
          type: string
          description: >-
            Human-friendly text. For 5xx this is always the literal `Server
            error`. For 4xx an actionable validation/auth message is returned.
        details:
          type: object
          nullable: true
          description: >-
            Optional per-field diagnostic information. On 422 carries `{<field>:
            ["error_code", ...]}`. On 402 (`insufficient_balance`) carries
            `{required, current}`. On 426 (`unpaid_invoices`) carries `{count,
            total, oldest_date_ts}`. Absent on most other errors.
          additionalProperties: true
        retry_after:
          type: integer
          nullable: true
          description: >-
            Seconds until the next request will succeed. Present only on 429
            responses (rate limit). Mirrors the `Retry-After` HTTP header.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Your API key from the Studio Dashboard

````