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

# Пауза доступа

> Pauses our access to the OnlyFans account: while paused we make no requests to OnlyFans for it, so stats, analytics and publishing stop. Access turns back on by itself after `days` days, or earlier with Resume access.

With running RevShare campaigns, CPL orders that use access or swaps on the account, a pause lasts up to 5 days and only 2 such pauses are allowed in 30 days; after a repeat pause running CPL and CPC orders may be closed at their full cost and the RevShare guarantee may be withheld. Without them a pause can last up to 30 days.

Called on an account that is already paused, it sets a new end counted from the pause start. `accept_terms: true` confirms these terms and is required.



## OpenAPI

````yaml POST /accounts/{username}/access/pause
openapi: 3.0.3
info:
  title: OnlyTraffic Studio API
  version: 1.1.0
  description: >-
    External API for OnlyTraffic Studio. Manage and retrieve data about your
    subscribers, CPL campaigns, CPC orders and CPC campaigns.
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).
  - name: Cross-promo
    description: Cross-promo pools, creatives and the publication log.
paths:
  /accounts/{username}/access/pause:
    post:
      tags:
        - Accounts
      summary: Pause access
      description: >-
        Pauses our access to the OnlyFans account: while paused we make no
        requests to OnlyFans for it, so stats, analytics and publishing stop.
        Access turns back on by itself after `days` days, or earlier with Resume
        access.


        With running RevShare campaigns, CPL orders that use access or swaps on
        the account, a pause lasts up to 5 days and only 2 such pauses are
        allowed in 30 days; after a repeat pause running CPL and CPC orders may
        be closed at their full cost and the RevShare guarantee may be withheld.
        Without them a pause can last up to 30 days.


        Called on an account that is already paused, it sets a new end counted
        from the pause start. `accept_terms: true` confirms these terms and is
        required.
      operationId: pauseAccountAccess
      parameters:
        - $ref: '#/components/parameters/UsernamePath'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - accept_terms
              properties:
                days:
                  type: integer
                  minimum: 1
                  maximum: 30
                  default: 5
                  description: >-
                    Pause length in days. Up to 5 while RevShare campaigns, CPL
                    orders that use access or swaps run on the account.
                accept_terms:
                  type: boolean
                  description: 'Must be `true`: you accept the pause terms described above.'
      responses:
        '200':
          description: Done
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: object
                    properties:
                      of_account_id:
                        type: integer
                      resume_at:
                        type: integer
                        nullable: true
                        description: Unix time when access turns back on.
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Account not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: >-
            Refused. `error` is one of `terms_required`, `nothing_to_pause` (no
            OnlyFans access to pause), `pause_limit` (2 pauses in 30 days with
            running orders; `details.next_pause_at`), `duration_not_allowed`
            (`details.max_days`), `account_disabled`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  parameters:
    UsernamePath:
      name: username
      in: path
      required: true
      schema:
        type: string
        pattern: ^[a-zA-Z0-9_.-]+$
        maxLength: 30
      description: OnlyFans username of the model owned by your account.
      example: mymodel
  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

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.