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

# List invitations

> Get all pending invitations for a workspace (requires owner or admin role)



## OpenAPI

````yaml openapi.json get /api/v1/workspaces/{id}/invitations
openapi: 3.0.0
info:
  description: Dualship backend API for workflow automation and API management.
  title: Dualship API
  termsOfService: https://dualship.run/terms
  contact:
    name: Dualship Support
    url: https://dualship.run/support
    email: support@dualship.run
  version: '1.0'
servers:
  - url: https://api.dualship.run
security: []
paths:
  /api/v1/workspaces/{id}/invitations:
    get:
      tags:
        - workspace-invitations
      summary: List invitations
      description: >-
        Get all pending invitations for a workspace (requires owner or admin
        role)
      parameters:
        - description: Workspace ID
          name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: List of invitations
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/internal_api_handler.InvitationListResponse
        '400':
          description: Invalid workspace ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_api_handler.BadRequestError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_api_handler.UnauthorizedError'
        '403':
          description: Insufficient permissions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_api_handler.ForbiddenError'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_api_handler.InternalServerError'
      security:
        - BearerAuth: []
components:
  schemas:
    internal_api_handler.InvitationListResponse:
      description: List of workspace invitations
      type: object
      properties:
        invitations:
          type: array
          items:
            $ref: '#/components/schemas/internal_api_handler.InvitationResponse'
    internal_api_handler.BadRequestError:
      description: Bad request error
      type: object
      properties:
        code:
          type: string
          example: BAD_REQUEST
        error:
          type: string
          example: invalid request parameters
    internal_api_handler.UnauthorizedError:
      description: Unauthorized error
      type: object
      properties:
        code:
          type: string
          example: UNAUTHORIZED
        error:
          type: string
          example: unauthorized
    internal_api_handler.ForbiddenError:
      description: Forbidden error
      type: object
      properties:
        code:
          type: string
          example: FORBIDDEN
        error:
          type: string
          example: insufficient permissions
    internal_api_handler.InternalServerError:
      description: Internal server error
      type: object
      properties:
        code:
          type: string
          example: INTERNAL_ERROR
        error:
          type: string
          example: internal server error
    internal_api_handler.InvitationResponse:
      type: object
      properties:
        created_at:
          type: string
        email:
          type: string
        expires_at:
          type: string
        id:
          type: string
        invite_url:
          type: string
        inviter_name:
          type: string
        role:
          $ref: '#/components/schemas/internal_api_handler.RoleInfo'
        token:
          type: string
        workspace_name:
          type: string
    internal_api_handler.RoleInfo:
      description: Role information
      type: object
      properties:
        id:
          type: string
          example: 550e8400-e29b-41d4-a716-446655440002
        name:
          type: string
          example: admin
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT Bearer token authentication

````