---
title: "Accept an invitation link."
method: GET
path: "/accounts/accept-invitation/{uidb64}/{token}/"
tags: ["accounts"]
---

# Accept an invitation link.

`GET /accounts/accept-invitation/{uidb64}/{token}/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/accounts/accept-invitation/{uidb64}/{token}/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

GET  — validate the token without consuming it. Returns org info so the
       frontend can render a "Set Password" page.
POST — set the user's password, activate the account, accept the invite,
       and return JWT tokens for auto-login.

## Response `200`

OK

- AcceptInvitationPreviewResponse
  - `valid` boolean, required
  - `email` string, email, required
  - `org_name` string, required

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
