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

# Invite a user

> Emails an invitation to join the organization. The invitee joins with no roles until they are granted some.



## OpenAPI

````yaml https://api.select.dev/v2/openapi.json post /invitations
openapi: 3.1.0
info:
  title: SELECT API (v2)
  version: 0.1.0
servers:
  - url: https://api.select.dev/v2
    description: SELECT API v2
security: []
paths:
  /invitations:
    post:
      tags:
        - invitations
      summary: Invite a user
      description: >-
        Emails an invitation to join the organization. The invitee joins with no
        roles until they are granted some.
      operationId: create_invitation_route_invitations_post
      parameters:
        - name: x-tenant-id
          in: header
          required: true
          schema:
            type: string
            description: The organization ID the request is scoped to.
            title: X-Tenant-Id
          description: The organization ID the request is scoped to.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InvitationCreateV2'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvitationV2'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    InvitationCreateV2:
      properties:
        invitee_email_address:
          type: string
          pattern: ^[^@\s]+@[^@\s]+\.[^@\s]+$
          title: Invitee Email Address
          description: Email address to send the invitation to.
          x-doit-confidentiality: customer-data
          x-doit-pii: true
      type: object
      required:
        - invitee_email_address
      title: InvitationCreate
      description: The details needed to invite someone to the organization.
    InvitationV2:
      properties:
        id:
          type: string
          title: Id
          description: The unique identifier of the invitation.
          readOnly: true
          x-terraform-computed: true
        inviter_name:
          type: string
          title: Inviter Name
          description: >-
            Name shown to the invitee as the sender — the inviting member's
            email address, or the creator of the API key the invitation was sent
            with.
          readOnly: true
          x-doit-confidentiality: customer-data
          x-doit-pii: true
          x-terraform-computed: true
        invitee_email_address:
          type: string
          title: Invitee Email Address
          description: Email address the invitation was sent to.
          readOnly: true
          x-doit-confidentiality: customer-data
          x-doit-pii: true
          x-terraform-computed: true
        create_time:
          type: string
          title: Create Time
          description: >-
            When the invitation was sent — RFC 3339 UTC, e.g.
            2026-06-05T10:30:00Z.
          readOnly: true
          x-terraform-computed: true
        expiry_time:
          type: string
          title: Expiry Time
          description: >-
            When the invitation stops being redeemable — RFC 3339 UTC. After
            this the invitee must be invited again.
          readOnly: true
          x-terraform-computed: true
        invitation_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Invitation Url
          description: >-
            One-time link that redeems the invitation. Anyone holding it can
            join the organization as the invitee, so share it only with them.
          readOnly: true
          x-doit-confidentiality: sensitive
          x-doit-pii: true
          x-terraform-computed: true
      type: object
      required:
        - id
        - inviter_name
        - invitee_email_address
        - create_time
        - expiry_time
        - invitation_url
      title: Invitation
      description: A pending invitation for someone to join the organization.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      description: Organization API key (sl_…).
      scheme: bearer

````