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

# Get dynamic rules

> Get the values needed to sign your own OnlyFans requests.

Access signs OnlyFans requests for you. Use Dynamic Rules if you make and sign OnlyFans requests yourself.

## Retrieve rules

```bash theme={null}
curl https://api.ofauth.com/v3/dynamic-rules/rules \
	-H "Authorization: Bearer $ACCESS_TOKEN"
```

Send an OAuth bearer token for your organization and environment. Your organization must have Dynamic Rules access. This request does not need `x-linked-account-id`. API keys are not accepted.

Sandbox returns mock signing rules. Test and Live return rules only if your organization has access to them.

## Response fields

| Field | Meaning |
| - | - |
| `rules` | Signing parameters, including `static_param`, `format`, checksum fields, `app_token`, and the rules revision. |
| `is_current` | Whether these rules are marked current. |
| `is_early_access` | Whether these rules are marked early access. |
| `is_public` | Whether these rules are marked public. |
| `revision` | Details about the current rules version. |
| `early_access_revision` | Details about the early-access rules version. |
| `public_revision` | Details about the public rules version. |
| `requestId` | Request ID to include when asking support for help. |

To get current rules, your organization needs latest-rules access. To get early-access rules, it needs preview-rules access. Either type of access includes public rules. Responses include `x-request-id`, `Cache-Control: no-store`, and `Pragma: no-cache`.

## Status codes

| Status | Meaning |
| - | - |
| `200` | Rules returned. |
| `401` | Bearer token missing or invalid, or API-key headers supplied. |
| `403` | Your organization does not have access to these rules. |
| `503` | The rules are out of date, OFAuth cannot check your access, or OFAuth cannot load the rules. |

## Failure behavior

A missing or invalid bearer token returns `401`. The error tells you how to get a valid token. If OFAuth cannot check your access, it returns `503` with `recovery.action: "retry"`.

If rules are missing or out of date, the response is `503`. If your organization lacks access, the response is `403`. Both responses include rule status details and an error message. They do not include the recovery actions used by other API errors.

This endpoint returns rules. It does not sign requests or provide a separate rules status check. Rules do not include account credentials, session cookies, or the user’s permission to access an account. Use [Access](https://docs.ofauth.com/v3/api-reference/authentication.md) to let OFAuth make and sign API requests for you.


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