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

# Invite a member

> Create a workspace invite and send the invitation email. The API key must have been created by a workspace member because the invite is attributed to a user. Requires the admin scope.



## OpenAPI

````yaml post /members/invites
openapi: 3.0.3
info:
  title: Productlane API
  description: Productlane API v2.
  version: 2.0.0
servers:
  - url: https://productlane.com/api/v2
security: []
paths:
  /members/invites:
    post:
      tags:
        - members
      summary: Invite a member
      description: >-
        Create a workspace invite and send the invitation email. The API key
        must have been created by a workspace member because the invite is
        attributed to a user. Requires the admin scope.
      operationId: members-invite
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                  format: email
                  maxLength: 254
                name:
                  type: string
                  minLength: 1
                  maxLength: 255
                role:
                  type: string
                  enum:
                    - ADMIN
                    - USER
                    - VIEWER
                  description: >-
                    Role granted on acceptance. One of `ADMIN`, `USER`,
                    `VIEWER`.
              required:
                - email
                - name
                - role
              additionalProperties: false
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  email:
                    type: string
                  name:
                    type: string
                    nullable: true
                  role:
                    type: string
                    enum:
                      - ADMIN
                      - USER
                      - VIEWER
                  state:
                    type: string
                    enum:
                      - PENDING
                      - ACCEPTED
                  invited_by_id:
                    type: string
                    nullable: true
                  created_at:
                    type: string
                required:
                  - id
                  - email
                  - name
                  - role
                  - state
                  - invited_by_id
                  - created_at
                additionalProperties: false
        default:
          $ref: '#/components/responses/error'
      security:
        - Authorization: []
components:
  responses:
    error:
      description: Error response
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
              code:
                type: string
              issues:
                type: array
                items:
                  type: object
                  properties:
                    message:
                      type: string
                  required:
                    - message
                  additionalProperties: false
            required:
              - message
              - code
            additionalProperties: false
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer

````