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

# Create Offer



## OpenAPI

````yaml POST /swaps/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:
  /swaps/offers:
    post:
      tags:
        - Swaps
      summary: Create a swap offer.
      operationId: createSwapOffer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - of_account_id
                - description
                - campaign_type
                - content_type
                - trial_days
                - campaigns_count
                - min_quantity
                - max_days
              properties:
                of_account_id:
                  type: integer
                  description: Numeric id of one of your linked OF accounts.
                description:
                  type: string
                  minLength: 20
                  maxLength: 5000
                tags:
                  type: array
                  items:
                    type: string
                    enum:
                      - gay
                      - trans
                      - asian
                      - babyface
                      - plus_size
                      - latina
                      - fox
                      - ebony
                      - milf
                      - teen
                      - fitness
                      - blonde
                      - redhead
                      - brunette
                      - bdsm
                      - mature
                      - petite
                      - curvy
                      - tattoo
                      - cosplay
                      - lesbian
                campaign_type:
                  type: string
                  enum:
                    - free
                    - paid
                content_type:
                  type: string
                  enum:
                    - nude
                    - light
                    - no_nude
                  description: '`no_nude` is normalised to `light` server-side.'
                trial_days:
                  type: integer
                  enum:
                    - 1
                    - 3
                    - 7
                    - 14
                    - 30
                    - 90
                    - 180
                    - 360
                campaigns_count:
                  type: integer
                  minimum: 1
                  maximum: 1000
                min_quantity:
                  type: integer
                  minimum: 100
                  maximum: 1000
                max_quantity:
                  type: integer
                  minimum: 100
                  maximum: 1000
                  description: >-
                    Maximum order size. Must be ≥ `min_quantity` (validated
                    cross-field).
                max_days:
                  type: integer
                  minimum: 10
                  maximum: 500
                price:
                  type: number
                  format: float
                  minimum: 0
                  maximum: 10
                  description: >-
                    Per-fan guaranteed-price floor in USD (capped at $10).
                    Defaults to 0 (no guarantee). The platform charges no
                    commission on top of this price.
                performer_top_required:
                  type: integer
                  minimum: 0
                  maximum: 100
                  description: Lower is better. `0` / omitted = no restriction.
                stats_public_arpu:
                  type: boolean
                  description: Opt-in to expose ARPU and income on accepted orders.
      responses:
        '201':
          description: Created.
          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'
        '422':
          description: >-
            Validation error or model not eligible (insufficient GG content /
            promo texts).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    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

````