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

# Accept workspace invitation



## OpenAPI

````yaml /openapi.yaml post /workspace_invitations/accept
openapi: 3.0.1
info:
  title: GetSpecs REST API
  description: REST API documentation for GetSpecs.
  version: 1.0.0
servers:
  - url: /v1
  - url: https://demo-api.getspecs.io/v1
security: []
paths:
  /workspace_invitations/accept:
    post:
      tags:
        - WorkspaceInvitation
      summary: Accept workspace invitation
      operationId: workspace_invitations#accept
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/requestBodyWorkspaceInvitationAccept'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/workspace_user'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
components:
  schemas:
    requestBodyWorkspaceInvitationAccept:
      type: object
      properties:
        token:
          type: string
      required:
        - token
    workspace_user:
      type: object
      properties:
        id:
          type: integer
        position:
          type: integer
        user:
          type: object
          properties:
            id:
              type: integer
            email:
              type: string
            logo_url:
              type: string
              nullable: true
            first_name:
              type: string
            last_name:
              type: string
        unread_notifications:
          type: boolean
          nullable: true
        role:
          type: object
          properties:
            id:
              type: integer
            key:
              type: string
            name:
              type: string
    error:
      type: object
      properties:
        error:
          type: string
        errors:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
                nullable: true
              code:
                type: string
                nullable: true
              message:
                type: string
            required:
              - message

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.