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

# Accept a shared-user invitation

> POST /multi-users/accept-invitation/

Accepts a shared-user invitation and sets the teammate's password, on the **Management API** host (`api.scanova.io`).

```
POST https://api.scanova.io/multi-users/accept-invitation/
```

<Warning>
  Unlike every other endpoint on this page, this one does **not** take a Management API key — it's `AllowAny`. It's meant to be called from the invited teammate's own browser, from the link in their invitation email, not from the inviting account's integration.
</Warning>

<ParamField body="hash" type="string" required>
  The invitation hash from the emailed link, max 250 characters.
</ParamField>

<ParamField body="password1" type="string" required>
  The teammate's new password.
</ParamField>

<ParamField body="password2" type="string" required>
  Password confirmation — must match `password1`.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST "https://api.scanova.io/multi-users/accept-invitation/" \
    -H "Content-Type: application/json" \
    -d '{
      "hash": "a1b2c3d4e5f6...",
      "password1": "correct-horse-battery-staple",
      "password2": "correct-horse-battery-staple"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  "Invitation accepted"
  ```
</ResponseExample>

## Hash validity

A hash is valid only if it exists, hasn't already been used, and was sent within the account's configured invitation-link-validity window — both the original invite and any [resend](/api-reference/management-api/shared-users/resend-invitation) refresh the timestamp this window is measured from. `400` with `"Verification link is invalid or expired."` if the hash fails any of those checks, or if the two passwords don't match or fail password policy.

## Related

* [Invite a shared user](/api-reference/management-api/shared-users/invite) — where the hash in the emailed link comes from.
* [Resend a shared-user's invitation email](/api-reference/management-api/shared-users/resend-invitation) — get a fresh hash if the original expired.
* [Management API overview](/api-reference/management-api/overview) — the auth scheme this endpoint deliberately does **not** use.


## OpenAPI

````yaml api-reference/openapi/management-api.json POST /multi-users/accept-invitation/
openapi: 3.1.0
info:
  title: Scanova Management API (v2)
  description: >-
    The complete Scanova Management API — every endpoint available at
    api.scanova.io (QR codes, folders, tags, leads, forms, analytics, plans,
    shared users & roles), plus the token-creation and usage-stats endpoints
    used to authenticate against it. Every path and request/response shape below
    was verified live against a real API key and the actual running backend
    (Phase 7, 2026-08-16) — not guessed from reading urls.py alone.
  version: 2.0.0
servers:
  - url: https://api.scanova.io
    description: Management API — QR/folder/tag/lead/form/analytics/plans endpoints
security:
  - apiKeyAuth: []
paths:
  /multi-users/accept-invitation/:
    post:
      summary: Accept a shared-user invitation
      description: >-
        Public endpoint — no Management API key required — called by the invited
        teammate's browser from the link in their invitation email, not by the
        inviting account's own integration.
      operationId: acceptManagedInvitation
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                hash:
                  type: string
                  maxLength: 250
                  description: The invitation hash from the emailed link.
                password1:
                  type: string
                password2:
                  type: string
              required:
                - hash
                - password1
                - password2
            example:
              hash: a1b2c3d4e5f6...
              password1: correct-horse-battery-staple
              password2: correct-horse-battery-staple
      responses:
        '200':
          description: Invitation accepted — the shared user can now log in.
        '400':
          description: >-
            Hash invalid/already used/expired (per
            INVITATION_LINK_VALIDITY_DAYS), or the two passwords don't
            match/fail policy.
      security: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Send your Management API key as the raw value of the Authorization
        header — no "Bearer " or "Token " prefix, and no other characters.
        Example: `Authorization: 401f7ac837da42b97f613d789819ff93537bee6a`. A
        header containing more than one space-separated part is rejected
        outright. Requests also require the request's Host header to be the
        management API host (e.g. api.scanova.io) — the same key sent to the
        regular API host will not authenticate.

````