> ## Documentation Index
> Fetch the complete documentation index at: https://www.dropfans.io/developers/llms.txt
> Use this file to discover all available pages before exploring further.

# POST /api/external/v1/agency-invites/{token}/accept — Accept an agency invite as the creator

> The creator agrees to be managed by the agency that sent the invite. No Dropfans page and no sign-in: collect the consent in your own screen and call this with the **creator's own key**.

- Source: https://www.dropfans.io/developers/reference/accept-agency-invite
- Section: API reference
- OpenAPI: https://www.dropfans.io/developers/openapi.json

Also served at `/api/external/agency-invites/{token}/accept` (the unversioned alias).

The creator agrees to be managed by the agency that sent the invite. No Dropfans page and no sign-in: collect the consent in your own screen and call this with the **creator's own key**.

It works straight after [create-account](https://www.dropfans.io/developers/reference/create-account.md), before the ID check is approved. From then on the agency's key can act for the creator with `/v1/creators/{creatorId}/…`, and the creator appears in [GET /agency/creators](https://www.dropfans.io/developers/reference/list-agency-creators.md).

The invite is the agency's consent and the creator's own key is the creator's. A key the agency created for the creator is refused, and so is a request that acts for another account.

## Authentication

`Authorization: Bearer dpfn_...` — an API key generated in the dashboard (Vault → API Connect). By default the key acts for the one account it belongs to. Missing or invalid keys return 401 `{"error":"Unauthorized","code":"unauthorized"}`.

## Path parameters

| Field | Type | Required | Description |
|---|---|---|---|
| `token` | string | yes | `inviteToken` from [POST /agency/invites](https://www.dropfans.io/developers/reference/create-agency-invite.md). |

## Request body (application/json)

| Field | Type | Required | Description |
|---|---|---|---|
| `consent` | boolean | yes | Must be `true`: the creator agreed, in your screen, to be managed by this agency with the listed permissions. |
| `acceptedFromIp` | string | yes | The creator’s **browser** IP when they agreed (IPv4 or IPv6). Stored with the consent. |
| `acceptedUserAgent` | string | yes | The creator’s browser user agent. |
| `agreementHash` | string |  | Only for an invite with a revenue split: `split.agreement.bodyHash` from [GET /agency-invites/{token}](https://www.dropfans.io/developers/reference/get-agency-invite.md), proving which agreement text the creator read. |

Example — Accept:

```json
{
  "consent": true,
  "acceptedFromIp": "203.0.113.7",
  "acceptedUserAgent": "Mozilla/5.0 …"
}
```

## Responses

### 200

The creator is managed by the agency.

| Field | Type | Required | Description |
|---|---|---|---|
| `managedCreatorId` | string | yes | Id of the agency–creator link. |
| `status` | `accepted` | yes | Always `accepted`. |
| `alreadyAccepted` | boolean | yes | True when this creator had already accepted this invite: nothing was changed. Safe to retry. |
| `agency` | object | yes | The agency: `id`, `username`, `name`, `image`. |
| `permissions` | object | yes | What the agency may now do on the creator’s account. |
| `split` | object \\| null |  | The revenue split now in force (`agencyPercent`, `creatorPercent`), or null. |
| `acceptedAt` | string | yes | When the creator accepted. |

```json
{
  "managedCreatorId": "cmh6mc0001ab7k2p9q4r8s",
  "status": "accepted",
  "alreadyAccepted": false,
  "agency": {
    "id": "cmh1agc0q0001ab7k2p9q4r8s",
    "username": "northlight",
    "name": "Northlight",
    "image": null
  },
  "permissions": {
    "canEditProfile": true,
    "canManageDrops": true,
    "canManageVault": true,
    "canViewStats": true
  },
  "split": null,
  "acceptedAt": "2026-11-20T18:30:00.000Z"
}
```

## Errors

| Status | Body | When |
|---|---|---|
| 400 | `{"error":"This endpoint only acts as the key’s own account — send it without X-Dropfans-Account.","code":"account_header_not_allowed"}` | The request named another account (`X-Dropfans-Account`, or `/v1/creators/{creatorId}/…` → `creator_scope_not_allowed`). The creator consents with their own key. |
| 400 | `{"error":"Cannot accept your own invite","code":"own_invite"}` | The key belongs to the agency that sent the invite. |
| 401 | `{"error":"Unauthorized","code":"unauthorized"}` | Missing or invalid API key. |
| 403 | `{"error":"This endpoint needs the creator’s own API key, not a key an agency created for them.","code":"creator_key_required"}` | The key was created by an agency for the creator. Use the key from create-account, or one the creator made themselves. |
| 403 | `{"error":"This account cannot be managed by an agency: it is an agency account itself.","code":"not_eligible"}` | The account is an agency (signed up with `accountType: "agency"`), not a creator. |
| 403 | `{"error":"This agency can no longer take on creators.","code":"agency_unavailable"}` | The agency is no longer verified, or is suspended. |
| 404 | `{"error":"Invalid invite link","code":"invite_not_found"}` | No invite has this token. |
| 410 | `{"error":"Invite has been revoked","code":"invite_revoked"}` | The agency revoked the invite. |
| 410 | `{"error":"Invite already used","code":"invite_used"}` | Another creator accepted this invite. Create a new one. |
| 410 | `{"error":"This invite was declined. Ask the agency for a new one.","code":"invite_declined"}` | A creator declined this invite. Create a new one. |
| 410 | `{"error":"Invite expired","code":"invite_expired"}` | The invite is older than 72 hours. Create a new one. |
| 400 | `{"error":"The creator must agree to be managed by this agency (consent: true).","code":"invalid_input","field":"consent"}` | `consent`, `acceptedFromIp` or `acceptedUserAgent` is missing or malformed; `field` names it. |
| 400 | `{"error":"Read and sign the revenue-split agreement first.","code":"agreement_required"}` | The invite carries a revenue split and `agreementHash` was not sent. |
| 400 | `{"error":"Invalid JSON body"}` | The body is not valid JSON. |
| 409 | `{"error":"You are already managed by Northlight. Leave your current agency first before joining another.","code":"already_managed"}` | The creator already has an agency. A creator has one agency at a time. |
| 409 | `{"error":"…","code":"no_room"}` | The creator’s revenue-share places are all taken, so the agency cannot be added. |
| 409 | `{"error":"The agreement changed since you opened this page. Reload it and read it again.","code":"agreement_changed"}` | `agreementHash` does not match the current agreement text. Fetch the invite again. |
| 400 | `{"error":"This endpoint acts as the key’s own account or app — call it without /creators/{creatorId}.","code":"creator_scope_not_allowed"}` | Called under /api/external/v1/creators/{creatorId}/ — this endpoint always acts as the key’s own account, agency or app. |

## Notes

An invite works once. Two creators accepting the same invite at the same moment: one gets 200, the other 410 `invite_used`.

## Rate limiting

Per-key fixed windows by tier (Personal 60/min · 5,000/day; approved apps 300/min · 50,000/day; Dropfans-operated integrations exempt). Read the live values from X-RateLimit-Tier, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset and their -Day variants; a 429 carries Retry-After and `{"error":"Rate limit exceeded","code":"rate_limited"}`. See [Rate limits](https://www.dropfans.io/developers/concepts/rate-limits.md).

## Code samples

### curl

```bash
curl -X POST "https://www.dropfans.io/api/external/v1/agency-invites/$TOKEN/accept" \
  -H "Authorization: Bearer $DROPFANS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "consent": true,
  "acceptedFromIp": "203.0.113.7",
  "acceptedUserAgent": "Mozilla/5.0 …"
}'
```

### Node

```javascript
const token = '…'; // from an earlier response

const res = await fetch(`https://www.dropfans.io/api/external/v1/agency-invites/${token}/accept`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.DROPFANS_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "consent": true,
    "acceptedFromIp": "203.0.113.7",
    "acceptedUserAgent": "Mozilla/5.0 …"
  }),
});
console.log(await res.json());
```

### Python

```python
import os
import requests

token = "…"  # from an earlier response

res = requests.post(
    f"https://www.dropfans.io/api/external/v1/agency-invites/{token}/accept",
    headers={"Authorization": f"Bearer {os.environ['DROPFANS_API_KEY']}"},
    json={
        "consent": True,
        "acceptedFromIp": "203.0.113.7",
        "acceptedUserAgent": "Mozilla/5.0 …",
    },
)
print(res.json())
```

## OpenAPI

```json
{
  "method": "POST",
  "path": "/api/external/v1/agency-invites/{token}/accept",
  "operationId": "acceptAgencyInvite",
  "tags": [
    "crm"
  ],
  "summary": "Accept an agency invite as the creator",
  "description": "The creator agrees to be managed by the agency that sent the invite. No Dropfans page and no sign-in: collect the consent in your own screen and call this with the **creator's own key**.\n\nIt works straight after [create-account](https://www.dropfans.io/developers/reference/create-account.md), before the ID check is approved. From then on the agency's key can act for the creator with `/v1/creators/{creatorId}/…`, and the creator appears in [GET /agency/creators](https://www.dropfans.io/developers/reference/list-agency-creators.md).\n\nThe invite is the agency's consent and the creator's own key is the creator's. A key the agency created for the creator is refused, and so is a request that acts for another account.",
  "parameters": [
    {
      "name": "token",
      "in": "path",
      "required": true,
      "description": "`inviteToken` from [POST /agency/invites](https://www.dropfans.io/developers/reference/create-agency-invite.md).",
      "schema": {
        "type": "string"
      },
      "example": "3f9c2a7e5b1d4c8f9a0b6e2d7c4f1a8b3e5d9c0f7a2b6e1d4c8f3a9b5e7d2c1f"
    }
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "consent": {
              "type": "boolean",
              "description": "Must be `true`: the creator agreed, in your screen, to be managed by this agency with the listed permissions."
            },
            "acceptedFromIp": {
              "type": "string",
              "description": "The creator’s **browser** IP when they agreed (IPv4 or IPv6). Stored with the consent.",
              "example": "203.0.113.7"
            },
            "acceptedUserAgent": {
              "type": "string",
              "description": "The creator’s browser user agent.",
              "example": "Mozilla/5.0 …",
              "maxLength": 500
            },
            "agreementHash": {
              "type": "string",
              "description": "Only for an invite with a revenue split: `split.agreement.bodyHash` from [GET /agency-invites/{token}](https://www.dropfans.io/developers/reference/get-agency-invite.md), proving which agreement text the creator read."
            }
          },
          "required": [
            "consent",
            "acceptedFromIp",
            "acceptedUserAgent"
          ]
        },
        "examples": {
          "accept": {
            "summary": "Accept",
            "value": {
              "consent": true,
              "acceptedFromIp": "203.0.113.7",
              "acceptedUserAgent": "Mozilla/5.0 …"
            }
          }
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "The creator is managed by the agency.",
      "headers": {
        "X-RateLimit-Tier": {
          "description": "Rate-limit tier of the key: personal, app or first_party (first_party is unlimited).",
          "schema": {
            "type": "string",
            "enum": [
              "personal",
              "app",
              "first_party"
            ]
          }
        },
        "X-RateLimit-Limit": {
          "description": "Requests allowed per minute for this key (absent on first_party).",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Remaining": {
          "description": "Requests left in the current minute window.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Reset": {
          "description": "Epoch seconds when the minute window resets.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Limit-Day": {
          "description": "Requests allowed per UTC day for this key (absent on first_party).",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Remaining-Day": {
          "description": "Requests left in the current UTC day window.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Reset-Day": {
          "description": "Epoch seconds when the day window resets.",
          "schema": {
            "type": "integer"
          }
        },
        "X-Dropfans-Account": {
          "description": "The id of the account this request acted on — the key’s own account, or the managed account named in the X-Dropfans-Account request header. Assert it when acting for several accounts.",
          "schema": {
            "type": "string"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "managedCreatorId": {
                "type": "string",
                "description": "Id of the agency–creator link."
              },
              "status": {
                "type": "string",
                "description": "Always `accepted`.",
                "enum": [
                  "accepted"
                ]
              },
              "alreadyAccepted": {
                "type": "boolean",
                "description": "True when this creator had already accepted this invite: nothing was changed. Safe to retry."
              },
              "agency": {
                "type": "object",
                "description": "The agency: `id`, `username`, `name`, `image`."
              },
              "permissions": {
                "type": "object",
                "description": "What the agency may now do on the creator’s account."
              },
              "split": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The revenue split now in force (`agencyPercent`, `creatorPercent`), or null."
              },
              "acceptedAt": {
                "type": "string",
                "description": "When the creator accepted.",
                "format": "date-time"
              }
            },
            "required": [
              "managedCreatorId",
              "status",
              "alreadyAccepted",
              "agency",
              "permissions",
              "acceptedAt"
            ]
          },
          "example": {
            "managedCreatorId": "cmh6mc0001ab7k2p9q4r8s",
            "status": "accepted",
            "alreadyAccepted": false,
            "agency": {
              "id": "cmh1agc0q0001ab7k2p9q4r8s",
              "username": "northlight",
              "name": "Northlight",
              "image": null
            },
            "permissions": {
              "canEditProfile": true,
              "canManageDrops": true,
              "canManageVault": true,
              "canViewStats": true
            },
            "split": null,
            "acceptedAt": "2026-11-20T18:30:00.000Z"
          }
        }
      }
    },
    "400": {
      "description": "The request named another account (`X-Dropfans-Account`, or `/v1/creators/{creatorId}/…` → `creator_scope_not_allowed`). The creator consents with their own key. Also: The key belongs to the agency that sent the invite. Also: `consent`, `acceptedFromIp` or `acceptedUserAgent` is missing or malformed; `field` names it. Also: The invite carries a revenue split and `agreementHash` was not sent. Also: The body is not valid JSON. Also: Called under /api/external/v1/creators/{creatorId}/ — this endpoint always acts as the key’s own account, agency or app.",
      "headers": {
        "X-RateLimit-Tier": {
          "description": "Rate-limit tier of the key: personal, app or first_party (first_party is unlimited).",
          "schema": {
            "type": "string",
            "enum": [
              "personal",
              "app",
              "first_party"
            ]
          }
        },
        "X-RateLimit-Limit": {
          "description": "Requests allowed per minute for this key (absent on first_party).",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Remaining": {
          "description": "Requests left in the current minute window.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Reset": {
          "description": "Epoch seconds when the minute window resets.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Limit-Day": {
          "description": "Requests allowed per UTC day for this key (absent on first_party).",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Remaining-Day": {
          "description": "Requests left in the current UTC day window.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Reset-Day": {
          "description": "Epoch seconds when the day window resets.",
          "schema": {
            "type": "integer"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "error": {
                "type": "string",
                "description": "Human-readable message.",
                "example": "Rate limit exceeded"
              },
              "code": {
                "type": "string",
                "description": "Machine-readable code: unauthorized, app_suspended, first_party_only, api_category_disabled, rate_limited, username_required, invalid_account_header, account_not_managed, permission_denied, account_header_not_allowed, agency_key_required — plus endpoint-specific codes listed on each reference page.",
                "example": "rate_limited"
              }
            },
            "required": [
              "error",
              "code"
            ]
          },
          "example": {
            "error": "This endpoint only acts as the key’s own account — send it without X-Dropfans-Account.",
            "code": "account_header_not_allowed"
          }
        }
      }
    },
    "401": {
      "description": "Missing or invalid API key.",
      "headers": {
        "X-RateLimit-Tier": {
          "description": "Rate-limit tier of the key: personal, app or first_party (first_party is unlimited).",
          "schema": {
            "type": "string",
            "enum": [
              "personal",
              "app",
              "first_party"
            ]
          }
        },
        "X-RateLimit-Limit": {
          "description": "Requests allowed per minute for this key (absent on first_party).",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Remaining": {
          "description": "Requests left in the current minute window.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Reset": {
          "description": "Epoch seconds when the minute window resets.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Limit-Day": {
          "description": "Requests allowed per UTC day for this key (absent on first_party).",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Remaining-Day": {
          "description": "Requests left in the current UTC day window.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Reset-Day": {
          "description": "Epoch seconds when the day window resets.",
          "schema": {
            "type": "integer"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "error": {
                "type": "string",
                "description": "Human-readable message.",
                "example": "Rate limit exceeded"
              },
              "code": {
                "type": "string",
                "description": "Machine-readable code: unauthorized, app_suspended, first_party_only, api_category_disabled, rate_limited, username_required, invalid_account_header, account_not_managed, permission_denied, account_header_not_allowed, agency_key_required — plus endpoint-specific codes listed on each reference page.",
                "example": "rate_limited"
              }
            },
            "required": [
              "error",
              "code"
            ]
          },
          "example": {
            "error": "Unauthorized",
            "code": "unauthorized"
          }
        }
      }
    },
    "403": {
      "description": "The key was created by an agency for the creator. Use the key from create-account, or one the creator made themselves. Also: The account is an agency (signed up with `accountType: \"agency\"`), not a creator. Also: The agency is no longer verified, or is suspended.",
      "headers": {
        "X-RateLimit-Tier": {
          "description": "Rate-limit tier of the key: personal, app or first_party (first_party is unlimited).",
          "schema": {
            "type": "string",
            "enum": [
              "personal",
              "app",
              "first_party"
            ]
          }
        },
        "X-RateLimit-Limit": {
          "description": "Requests allowed per minute for this key (absent on first_party).",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Remaining": {
          "description": "Requests left in the current minute window.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Reset": {
          "description": "Epoch seconds when the minute window resets.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Limit-Day": {
          "description": "Requests allowed per UTC day for this key (absent on first_party).",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Remaining-Day": {
          "description": "Requests left in the current UTC day window.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Reset-Day": {
          "description": "Epoch seconds when the day window resets.",
          "schema": {
            "type": "integer"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "error": {
                "type": "string",
                "description": "Human-readable message.",
                "example": "Rate limit exceeded"
              },
              "code": {
                "type": "string",
                "description": "Machine-readable code: unauthorized, app_suspended, first_party_only, api_category_disabled, rate_limited, username_required, invalid_account_header, account_not_managed, permission_denied, account_header_not_allowed, agency_key_required — plus endpoint-specific codes listed on each reference page.",
                "example": "rate_limited"
              }
            },
            "required": [
              "error",
              "code"
            ]
          },
          "example": {
            "error": "This endpoint needs the creator’s own API key, not a key an agency created for them.",
            "code": "creator_key_required"
          }
        }
      }
    },
    "404": {
      "description": "No invite has this token.",
      "headers": {
        "X-RateLimit-Tier": {
          "description": "Rate-limit tier of the key: personal, app or first_party (first_party is unlimited).",
          "schema": {
            "type": "string",
            "enum": [
              "personal",
              "app",
              "first_party"
            ]
          }
        },
        "X-RateLimit-Limit": {
          "description": "Requests allowed per minute for this key (absent on first_party).",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Remaining": {
          "description": "Requests left in the current minute window.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Reset": {
          "description": "Epoch seconds when the minute window resets.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Limit-Day": {
          "description": "Requests allowed per UTC day for this key (absent on first_party).",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Remaining-Day": {
          "description": "Requests left in the current UTC day window.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Reset-Day": {
          "description": "Epoch seconds when the day window resets.",
          "schema": {
            "type": "integer"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "error": {
                "type": "string",
                "description": "Human-readable message.",
                "example": "Rate limit exceeded"
              },
              "code": {
                "type": "string",
                "description": "Machine-readable code: unauthorized, app_suspended, first_party_only, api_category_disabled, rate_limited, username_required, invalid_account_header, account_not_managed, permission_denied, account_header_not_allowed, agency_key_required — plus endpoint-specific codes listed on each reference page.",
                "example": "rate_limited"
              }
            },
            "required": [
              "error",
              "code"
            ]
          },
          "example": {
            "error": "Invalid invite link",
            "code": "invite_not_found"
          }
        }
      }
    },
    "409": {
      "description": "The creator already has an agency. A creator has one agency at a time. Also: The creator’s revenue-share places are all taken, so the agency cannot be added. Also: `agreementHash` does not match the current agreement text. Fetch the invite again.",
      "headers": {
        "X-RateLimit-Tier": {
          "description": "Rate-limit tier of the key: personal, app or first_party (first_party is unlimited).",
          "schema": {
            "type": "string",
            "enum": [
              "personal",
              "app",
              "first_party"
            ]
          }
        },
        "X-RateLimit-Limit": {
          "description": "Requests allowed per minute for this key (absent on first_party).",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Remaining": {
          "description": "Requests left in the current minute window.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Reset": {
          "description": "Epoch seconds when the minute window resets.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Limit-Day": {
          "description": "Requests allowed per UTC day for this key (absent on first_party).",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Remaining-Day": {
          "description": "Requests left in the current UTC day window.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Reset-Day": {
          "description": "Epoch seconds when the day window resets.",
          "schema": {
            "type": "integer"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "error": {
                "type": "string",
                "description": "Human-readable message.",
                "example": "Rate limit exceeded"
              },
              "code": {
                "type": "string",
                "description": "Machine-readable code: unauthorized, app_suspended, first_party_only, api_category_disabled, rate_limited, username_required, invalid_account_header, account_not_managed, permission_denied, account_header_not_allowed, agency_key_required — plus endpoint-specific codes listed on each reference page.",
                "example": "rate_limited"
              }
            },
            "required": [
              "error",
              "code"
            ]
          },
          "example": {
            "error": "You are already managed by Northlight. Leave your current agency first before joining another.",
            "code": "already_managed"
          }
        }
      }
    },
    "410": {
      "description": "The agency revoked the invite. Also: Another creator accepted this invite. Create a new one. Also: A creator declined this invite. Create a new one. Also: The invite is older than 72 hours. Create a new one.",
      "headers": {
        "X-RateLimit-Tier": {
          "description": "Rate-limit tier of the key: personal, app or first_party (first_party is unlimited).",
          "schema": {
            "type": "string",
            "enum": [
              "personal",
              "app",
              "first_party"
            ]
          }
        },
        "X-RateLimit-Limit": {
          "description": "Requests allowed per minute for this key (absent on first_party).",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Remaining": {
          "description": "Requests left in the current minute window.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Reset": {
          "description": "Epoch seconds when the minute window resets.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Limit-Day": {
          "description": "Requests allowed per UTC day for this key (absent on first_party).",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Remaining-Day": {
          "description": "Requests left in the current UTC day window.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Reset-Day": {
          "description": "Epoch seconds when the day window resets.",
          "schema": {
            "type": "integer"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "error": {
                "type": "string",
                "description": "Human-readable message.",
                "example": "Rate limit exceeded"
              },
              "code": {
                "type": "string",
                "description": "Machine-readable code: unauthorized, app_suspended, first_party_only, api_category_disabled, rate_limited, username_required, invalid_account_header, account_not_managed, permission_denied, account_header_not_allowed, agency_key_required — plus endpoint-specific codes listed on each reference page.",
                "example": "rate_limited"
              }
            },
            "required": [
              "error",
              "code"
            ]
          },
          "example": {
            "error": "Invite has been revoked",
            "code": "invite_revoked"
          }
        }
      }
    },
    "429": {
      "description": "Rate limit exceeded for the current minute or day window. Wait Retry-After seconds and retry.",
      "headers": {
        "X-RateLimit-Tier": {
          "description": "Rate-limit tier of the key: personal, app or first_party (first_party is unlimited).",
          "schema": {
            "type": "string",
            "enum": [
              "personal",
              "app",
              "first_party"
            ]
          }
        },
        "X-RateLimit-Limit": {
          "description": "Requests allowed per minute for this key (absent on first_party).",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Remaining": {
          "description": "Requests left in the current minute window.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Reset": {
          "description": "Epoch seconds when the minute window resets.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Limit-Day": {
          "description": "Requests allowed per UTC day for this key (absent on first_party).",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Remaining-Day": {
          "description": "Requests left in the current UTC day window.",
          "schema": {
            "type": "integer"
          }
        },
        "X-RateLimit-Reset-Day": {
          "description": "Epoch seconds when the day window resets.",
          "schema": {
            "type": "integer"
          }
        },
        "Retry-After": {
          "description": "Seconds to wait before retrying (sent with 429s).",
          "schema": {
            "type": "integer"
          }
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "error": {
                "type": "string",
                "description": "Human-readable message.",
                "example": "Rate limit exceeded"
              },
              "code": {
                "type": "string",
                "description": "Machine-readable code: unauthorized, app_suspended, first_party_only, api_category_disabled, rate_limited, username_required, invalid_account_header, account_not_managed, permission_denied, account_header_not_allowed, agency_key_required — plus endpoint-specific codes listed on each reference page.",
                "example": "rate_limited"
              }
            },
            "required": [
              "error",
              "code"
            ]
          },
          "example": {
            "error": "Rate limit exceeded",
            "code": "rate_limited"
          }
        }
      }
    }
  },
  "x-codeSamples": [
    {
      "lang": "cURL",
      "label": "curl",
      "source": "curl -X POST \"https://www.dropfans.io/api/external/v1/agency-invites/$TOKEN/accept\" \\\n  -H \"Authorization: Bearer $DROPFANS_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"consent\": true,\n  \"acceptedFromIp\": \"203.0.113.7\",\n  \"acceptedUserAgent\": \"Mozilla/5.0 …\"\n}'"
    },
    {
      "lang": "JavaScript",
      "label": "Node",
      "source": "const token = '…'; // from an earlier response\n\nconst res = await fetch(`https://www.dropfans.io/api/external/v1/agency-invites/${token}/accept`, {\n  method: 'POST',\n  headers: {\n    Authorization: `Bearer ${process.env.DROPFANS_API_KEY}`,\n    'Content-Type': 'application/json',\n  },\n  body: JSON.stringify({\n    \"consent\": true,\n    \"acceptedFromIp\": \"203.0.113.7\",\n    \"acceptedUserAgent\": \"Mozilla/5.0 …\"\n  }),\n});\nconsole.log(await res.json());"
    },
    {
      "lang": "Python",
      "source": "import os\nimport requests\n\ntoken = \"…\"  # from an earlier response\n\nres = requests.post(\n    f\"https://www.dropfans.io/api/external/v1/agency-invites/{token}/accept\",\n    headers={\"Authorization\": f\"Bearer {os.environ['DROPFANS_API_KEY']}\"},\n    json={\n        \"consent\": True,\n        \"acceptedFromIp\": \"203.0.113.7\",\n        \"acceptedUserAgent\": \"Mozilla/5.0 …\",\n    },\n)\nprint(res.json())"
    }
  ],
  "x-dropfans-docs": "https://www.dropfans.io/developers/reference/accept-agency-invite",
  "x-dropfans-category": "account"
}
```

---

Previous: [Get an agency invite as the creator](https://www.dropfans.io/developers/reference/get-agency-invite.md) · Next: [Decline an agency invite as the creator](https://www.dropfans.io/developers/reference/decline-agency-invite.md) · All pages: [llms.txt](https://www.dropfans.io/developers/llms.txt)
