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

# Invite a teammate by email

> Creates a pending invitation for the given email and sends a magic-link email so the invitee can join the organization. The response is `{ success, invitation }`; outside production it also includes `magicLinkUrl` for testing (it is omitted in production, where the link is delivered by email only). Requires a Nevermined API key. Requires organization admin privileges. Requires the organization to be on the Premium tier or higher.



## OpenAPI

````yaml /api-reference/organizations-openapi.json post /organizations/{orgId}/invitations
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/{orgId}/invitations:
    post:
      tags:
        - Invitations
      summary: Invite a teammate by email
      description: >-
        Creates a pending invitation for the given email and sends a magic-link
        email so the invitee can join the organization. The response is `{
        success, invitation }`; outside production it also includes
        `magicLinkUrl` for testing (it is omitted in production, where the link
        is delivered by email only). Requires a Nevermined API key. Requires
        organization admin privileges. Requires the organization to be on the
        Premium tier or higher.
      operationId: OrganizationInvitationsController_createInvitation
      parameters:
        - name: orgId
          required: true
          in: path
          description: Organization ID
          schema:
            type: string
            example: org-abc123
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateInvitationDto'
      responses:
        '201':
          description: Invitation created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvitationResponseDto'
        '401':
          description: Missing or invalid Nevermined API key
        '403':
          description: >-
            Caller is not an organization admin, or the org is not on the
            Premium tier or higher
        '409':
          description: A pending invitation already exists for this email
        '422':
          description: Member seat cap reached for the current tier
      security:
        - Authorization: []
components:
  schemas:
    CreateInvitationDto:
      type: object
      properties:
        email:
          type: string
          description: Email address of the person to invite
          example: colleague@example.com
          maxLength: 254
        name:
          type: string
          description: Display name of the invitee. Used to greet them in the email.
          example: Jane Doe
          maxLength: 120
        role:
          type: string
          description: Role to assign in the organization
          enum:
            - Admin
            - Member
          example: Member
      required:
        - email
        - name
        - role
    InvitationResponseDto:
      type: object
      properties:
        id:
          type: string
          example: oi-550e8400-e29b-41d4-a716-446655440000
        email:
          type: string
          example: colleague@example.com
        name:
          type: string
          example: Jane Doe
          nullable: true
        role:
          type: string
          enum:
            - Admin
            - Member
        status:
          type: string
          enum:
            - pending
            - accepted
            - revoked
            - expired
        expiresAt:
          format: date-time
          type: string
        invitedByUserId:
          type: string
        createdAt:
          format: date-time
          type: string
      required:
        - id
        - email
        - role
        - status
        - expiresAt
        - invitedByUserId
        - createdAt
  securitySchemes:
    Authorization:
      scheme: bearer
      bearerFormat: JWT
      type: http

````

## Related topics

- [Workspaces & Members](/docs/solutions/organizations/workspaces-and-members.md)
- [Organizations & Workspaces](/docs/integrate/patterns/organizations.md)
- [API error codes](/docs/development-guide/api-errors/codes.md)
- [Organizations](/docs/solutions/organizations/overview.md)
- [Programmatic & Agentic Access](/docs/solutions/organizations/programmatic-access.md)
