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

# Accept an organization invitation

> Accepts a pending invitation identified by its magic-link token. The organization is resolved from the token, not the URL. The authenticated user must have the same email as the invitation target (verified server-side from the user profile). On success the user becomes an active member of the organization and the response is `{ success, orgId, membershipId, role }`. Requires a Nevermined API key or a Privy identity token.



## OpenAPI

````yaml /api-reference/organizations-openapi.json post /organizations/invitations/{token}/accept
openapi: 3.0.0
info:
  title: Nevermined Organizations API
  description: >-
    Manage a Nevermined organization programmatically — members, tiers, groups &
    budgets, treasury wallets, customers, webhooks, analytics, and
    agent-discovery surfaces.
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.sandbox.nevermined.app/api/v1
    description: Sandbox
  - url: https://api.live.nevermined.app/api/v1
    description: Live
security: []
tags:
  - name: Organizations
    x-group: General
    description: Organization settings, members & roles, and workspace context.
  - name: Organizations - Billing
    x-group: Billing
    description: Tiers, subscriptions, invoices, checkout, and the public tier catalog.
  - name: Groups
    x-group: Groups & Budgets
    description: Organization groups, per-group budgets, and shared payment methods.
  - name: Organizations - Wallets
    x-group: Wallets
    description: Custodial stablecoin treasury wallets.
  - name: Organizations - Customers
    x-group: Customers
    description: The white-label customer CRM (Enterprise).
  - name: Organizations - Analytics
    x-group: Analytics
    description: Revenue, MRR, usage, conversion, and per-member metrics.
  - name: Organizations - Webhooks
    x-group: Webhooks
    description: Outbound webhook subscriptions and deliveries.
  - name: Organizations - Activity
    x-group: Activity
    description: The organization activity feed.
  - name: Organizations - Realtime
    x-group: Realtime
    description: Realtime WebSocket secret management (Enterprise).
  - name: Invitations
    x-group: Invitations
    description: Invite people to an organization.
  - name: Organizations - Integration
    x-group: Agent Discovery
    description: >-
      Public agent-discovery surfaces (llms.txt, agentic-instructions.md,
      ai-catalog.json).
paths:
  /organizations/invitations/{token}/accept:
    post:
      tags:
        - Invitations
      summary: Accept an organization invitation
      description: >-
        Accepts a pending invitation identified by its magic-link token. The
        organization is resolved from the token, not the URL. The authenticated
        user must have the same email as the invitation target (verified
        server-side from the user profile). On success the user becomes an
        active member of the organization and the response is `{ success, orgId,
        membershipId, role }`. Requires a Nevermined API key or a Privy identity
        token.
      operationId: OrganizationInvitationsController_acceptInvitation
      parameters:
        - name: token
          required: true
          in: path
          description: Raw token from the magic-link URL
          schema:
            example: a1b2c3d4e5f6a1b2c3d4e5f6
            type: string
      responses:
        '200':
          description: Invitation accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AcceptInvitationResponseDto'
        '401':
          description: Missing or invalid Nevermined API key or Privy token
        '403':
          description: Authenticated user's email does not match the invitation target
        '404':
          description: Token invalid, already used, or expired
      security:
        - Authorization: []
components:
  schemas:
    AcceptInvitationResponseDto:
      type: object
      properties:
        orgId:
          type: string
          description: Organization ID the user was added to
        membershipId:
          type: string
          description: New membership row ID
        role:
          type: string
          enum:
            - Admin
            - Member
      required:
        - orgId
        - membershipId
        - role
  securitySchemes:
    Authorization:
      scheme: bearer
      bearerFormat: JWT
      type: http

````

## Related topics

- [List organization invitations](/docs/api-reference/invitations/list-organization-invitations.md)
- [Revoke an invitation](/docs/api-reference/invitations/revoke-an-invitation.md)
- [Get public info for a pending invitation by token](/docs/api-reference/invitations/get-public-info-for-a-pending-invitation-by-token.md)
- [Organizations & Workspaces](/docs/integrate/patterns/organizations.md)
- [Workspaces & Members](/docs/solutions/organizations/workspaces-and-members.md)
