> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ofauth.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate sign headers for a request



## OpenAPI

````yaml https://api.ofauth.com/openapi.json post /v2/dynamic-rules/sign
openapi: 3.1.0
info:
  title: OFAuth API
  version: 1.0.0
  description: >-
    OFAuth API including Account, Connections, Link, Access, Dynamic Rules,
    Vault+, and Realtime webhook contracts
  contact:
    email: support@ofauth.com
    url: https://ofauth.com/
servers:
  - url: https://api.ofauth.com
security:
  - ApiKey: []
tags:
  - name: Account
    description: Account management endpoints.
  - name: Connections
    description: Connection management endpoints.
  - name: Link
    description: Link authentication and session endpoints.
  - name: Access
    description: All Access related endpoints.
  - name: Analytics
    description: 'Access: charts, tops, and performance metrics.'
  - name: Earnings
    description: 'Access: earnings charts, transactions, and chargebacks.'
  - name: Messages
    description: 'Access: messaging, chats, queue, and mass messaging.'
  - name: Posts
    description: 'Access: create, edit, list, and manage posts.'
  - name: Promotions
    description: 'Access: promotions, trials, and bundles.'
  - name: Users
    description: 'Access: user profiles, subscriptions, and actions.'
  - name: Vault
    description: 'Access: vault folders, media, and management.'
  - name: Upload
    description: 'Access: media upload and processing.'
  - name: Self
    description: 'Access: authenticated account details and settings.'
  - name: Stories
    description: 'Access: stories listing and management.'
  - name: Subscriptions
    description: 'Access: subscription offers, discounts, and management.'
  - name: Realtime
    description: >-
      Realtime webhook delivery contracts, including relayed OnlyFans websocket
      events.
  - name: Dynamic Rules
    description: Dynamic signing rules operations.
  - name: Vault+
    description: Vault+ caching and management.
externalDocs:
  description: OFAuth Developer Documentation
  url: https://docs.ofauth.com
paths:
  /v2/dynamic-rules/sign:
    post:
      tags:
        - Dynamic Rules
      summary: Generate sign headers for a request
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                endpoint:
                  type: string
                time:
                  anyOf:
                    - type: number
                    - type: string
                user-id:
                  anyOf:
                    - type: number
                    - type: string
              required:
                - endpoint
      responses:
        '200':
          description: Sign headers generated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  signed:
                    type: object
                    properties:
                      sign:
                        type: string
                      time:
                        type: string
                      user-id:
                        type: string
                      app-token:
                        type: string
                    required:
                      - sign
                      - time
                      - app-token
                  is_public:
                    type: boolean
                  is_early_access:
                    type: boolean
                required:
                  - signed
                  - is_public
                  - is_early_access
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  is_current:
                    type: boolean
                  is_public:
                    type: boolean
                  is_early_access:
                    type: boolean
                required:
                  - error
        '403':
          description: Not enough access
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  is_current:
                    type: boolean
                  is_public:
                    type: boolean
                  is_early_access:
                    type: boolean
                required:
                  - error
        '503':
          description: Rules not current
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  is_current:
                    type: boolean
                  is_public:
                    type: boolean
                  is_early_access:
                    type: boolean
                required:
                  - error
components:
  securitySchemes:
    ApiKey:
      type: apiKey
      name: apiKey
      in: header
      description: >-
        Your OFAuth [API key](/quickstart#2-copy-your-api-key) for
        authenticating requests.

````