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

# GET /api/external/v1/agency-invites/{token} — Get an agency invite as the creator

> What accepting an agency invite means for the creator: who the agency is, what it may do on the account, and the revenue-split agreement when the invite carries one. Nothing changes.

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

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

What accepting an agency invite means for the creator: who the agency is, what it may do on the account, and the revenue-split agreement when the invite carries one. Nothing changes.

Call it with the **creator's own key** (the `apiKey` from [create-account](https://www.dropfans.io/developers/reference/create-account.md)) to build your consent screen, then [accept](https://www.dropfans.io/developers/reference/accept-agency-invite.md) once the creator agrees.

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

## Responses

### 200

The invite.

| Field | Type | Required | Description |
|---|---|---|---|
| `status` | `pending` \\| `accepted` | yes | `accepted` when this creator already accepted this invite. |
| `agency` | object | yes | The agency that sent the invite: `id`, `username`, `name`, `image`. |
| `message` | string \\| null |  | The agency’s personal note, or null. |
| `expiresAt` | string | yes | When the invite stops working (72 hours after it was created). |
| `permissions` | object | yes | What the agency may do on the creator’s account once accepted. |
| `split` | object \\| null |  | Null for an invite without a revenue split (every invite created through the API). Otherwise `agencyPercent`, `creatorPercent` and `agreement` (`bodyMarkdown` to show the creator, `bodyHash` to send back when accepting). |

```json
{
  "status": "pending",
  "agency": {
    "id": "cmh1agc0q0001ab7k2p9q4r8s",
    "username": "northlight",
    "name": "Northlight",
    "image": null
  },
  "message": "Hi Valeria — excited to work with you!",
  "expiresAt": "2026-11-23T18:00:00.000Z",
  "permissions": {
    "canEditProfile": true,
    "canManageDrops": true,
    "canManageVault": true,
    "canViewStats": true
  },
  "split": null
}
```

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

## 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 "https://www.dropfans.io/api/external/v1/agency-invites/$TOKEN" \
  -H "Authorization: Bearer $DROPFANS_API_KEY"
```

### Node

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

const res = await fetch(`https://www.dropfans.io/api/external/v1/agency-invites/${token}`, {
  headers: {
    Authorization: `Bearer ${process.env.DROPFANS_API_KEY}`,
  },
});
console.log(await res.json());
```

### Python

```python
import os
import requests

token = "…"  # from an earlier response

res = requests.get(
    f"https://www.dropfans.io/api/external/v1/agency-invites/{token}",
    headers={"Authorization": f"Bearer {os.environ['DROPFANS_API_KEY']}"},
)
print(res.json())
```

## OpenAPI

```json
{
  "method": "GET",
  "path": "/api/external/v1/agency-invites/{token}",
  "operationId": "getAgencyInviteForCreator",
  "tags": [
    "crm"
  ],
  "summary": "Get an agency invite as the creator",
  "description": "What accepting an agency invite means for the creator: who the agency is, what it may do on the account, and the revenue-split agreement when the invite carries one. Nothing changes.\n\nCall it with the **creator's own key** (the `apiKey` from [create-account](https://www.dropfans.io/developers/reference/create-account.md)) to build your consent screen, then [accept](https://www.dropfans.io/developers/reference/accept-agency-invite.md) once the creator agrees.",
  "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"
    }
  ],
  "responses": {
    "200": {
      "description": "The invite.",
      "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": {
              "status": {
                "type": "string",
                "description": "`accepted` when this creator already accepted this invite.",
                "enum": [
                  "pending",
                  "accepted"
                ]
              },
              "agency": {
                "type": "object",
                "description": "The agency that sent the invite: `id`, `username`, `name`, `image`."
              },
              "message": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The agency’s personal note, or null."
              },
              "expiresAt": {
                "type": "string",
                "description": "When the invite stops working (72 hours after it was created).",
                "format": "date-time"
              },
              "permissions": {
                "type": "object",
                "description": "What the agency may do on the creator’s account once accepted."
              },
              "split": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "Null for an invite without a revenue split (every invite created through the API). Otherwise `agencyPercent`, `creatorPercent` and `agreement` (`bodyMarkdown` to show the creator, `bodyHash` to send back when accepting)."
              }
            },
            "required": [
              "status",
              "agency",
              "expiresAt",
              "permissions"
            ]
          },
          "example": {
            "status": "pending",
            "agency": {
              "id": "cmh1agc0q0001ab7k2p9q4r8s",
              "username": "northlight",
              "name": "Northlight",
              "image": null
            },
            "message": "Hi Valeria — excited to work with you!",
            "expiresAt": "2026-11-23T18:00:00.000Z",
            "permissions": {
              "canEditProfile": true,
              "canManageDrops": true,
              "canManageVault": true,
              "canViewStats": true
            },
            "split": null
          }
        }
      }
    },
    "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: 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"
          }
        }
      }
    },
    "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 \"https://www.dropfans.io/api/external/v1/agency-invites/$TOKEN\" \\\n  -H \"Authorization: Bearer $DROPFANS_API_KEY\""
    },
    {
      "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}`, {\n  headers: {\n    Authorization: `Bearer ${process.env.DROPFANS_API_KEY}`,\n  },\n});\nconsole.log(await res.json());"
    },
    {
      "lang": "Python",
      "source": "import os\nimport requests\n\ntoken = \"…\"  # from an earlier response\n\nres = requests.get(\n    f\"https://www.dropfans.io/api/external/v1/agency-invites/{token}\",\n    headers={\"Authorization\": f\"Bearer {os.environ['DROPFANS_API_KEY']}\"},\n)\nprint(res.json())"
    }
  ],
  "x-dropfans-docs": "https://www.dropfans.io/developers/reference/get-agency-invite",
  "x-dropfans-category": "account"
}
```

---

Previous: [Create an ID-check link for an account](https://www.dropfans.io/developers/reference/create-kyc-session.md) · Next: [Accept an agency invite as the creator](https://www.dropfans.io/developers/reference/accept-agency-invite.md) · All pages: [llms.txt](https://www.dropfans.io/developers/llms.txt)
