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

# Accept invitation

> Accept an invitation and join a workspace



## OpenAPI

````yaml openapi.json post /invitations/{token}/accept
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:
  /invitations/{token}/accept:
    post:
      tags:
        - invitations
      summary: Accept invitation
      description: Accept an invitation and join a workspace
      parameters:
        - description: Invitation token
          name: token
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Invitation accepted
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/internal_api_handler.AcceptInvitationResponse
        '400':
          description: Token required
          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'
        '404':
          description: Invitation not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_api_handler.NotFoundError'
        '409':
          description: Already a member
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_api_handler.ConflictError'
        '410':
          description: Invitation expired
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_api_handler.GoneError'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_api_handler.InternalServerError'
      security:
        - BearerAuth: []
components:
  schemas:
    internal_api_handler.AcceptInvitationResponse:
      description: Invitation acceptance response
      type: object
      properties:
        role:
          type: string
          example: member
        workspace_id:
          type: string
          example: 550e8400-e29b-41d4-a716-446655440000
    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.NotFoundError:
      description: Not found error
      type: object
      properties:
        code:
          type: string
          example: NOT_FOUND
        error:
          type: string
          example: resource not found
    internal_api_handler.ConflictError:
      description: Conflict error
      type: object
      properties:
        code:
          type: string
          example: CONFLICT
        error:
          type: string
          example: resource already exists
    internal_api_handler.GoneError:
      description: Gone error (expired resource)
      type: object
      properties:
        code:
          type: string
          example: GONE
        error:
          type: string
          example: resource has expired
    internal_api_handler.InternalServerError:
      description: Internal server error
      type: object
      properties:
        code:
          type: string
          example: INTERNAL_ERROR
        error:
          type: string
          example: internal server error
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT Bearer token authentication

````