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

# Overview

> Generate request signatures for direct OnlyFans API access

## Overview

The Dynamic Rules API provides request signing for direct OnlyFans API calls. **Most applications should use the [Access API](/api-reference/access/overview) instead**, which handles signing automatically.

Use Dynamic Rules only when you need to:

* Make direct OnlyFans API calls outside of OFAuth
* Implement custom request handling

<Warning>
  OnlyFans changes signing requirements frequently. If you use Dynamic Rules directly, implement retry logic and handle `503` responses gracefully.
</Warning>

## Base URL

`https://api.ofauth.com/v2/dynamic-rules`

## Endpoints

### Sign Request

Generate a signature for a specific OnlyFans API request.

```http theme={null}
POST /v2/dynamic-rules/sign
```

**Request Body**

| Field      | Type     | Required | Description                                            |
| ---------- | -------- | -------- | ------------------------------------------------------ |
| `endpoint` | `string` | Yes      | The OnlyFans API path (e.g., `/api2/v2/users/me`)      |
| `time`     | `number` | No       | Unix timestamp to sign with (defaults to current time) |
| `user-id`  | `string` | No       | OnlyFans user ID for authenticated requests            |

**Response**

```json theme={null}
{
  "signed": {
    "sign": "generated_signature_string",
    "time": "1698400000000",
    "user-id": "12345",
    "app-token": "...",
    "x-of-rev": "revision_hash"
  },
  "is_public": false,
  "is_early_access": true
}
```

### Get Status

Check if the signing service is operational.

```http theme={null}
GET /v2/dynamic-rules/status
```

**Response**

```json theme={null}
{
  "revision": "revision_hash",
  "early_access_revision": "revision_hash",
  "public_revision": "revision_hash",
  "is_current": true,
  "is_early_access": true,
  "is_public": false,
  "access_granted": true
}
```

## Authentication

```http theme={null}
apikey: YOUR_API_KEY
```

<Tip>
  Subscribe to the `rules.updated` event in [System Webhook Events](/api-reference/system-webhook-events/overview) to be notified when signing requirements change.
</Tip>

## When to Use

| Use Case                | Recommendation                                                              |
| ----------------------- | --------------------------------------------------------------------------- |
| Standard API access     | Use the [Access API](/api-reference/access/overview) - signing is automatic |
| Custom proxy setup      | Use Dynamic Rules `/sign` endpoint                                          |
| Checking service status | Use `/status` endpoint                                                      |
