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

# Get v2orgsjoin

> Join an organization with an invite code or email token. Redirects to the console on success or to the sign-in page with an error parameter on failure.



## OpenAPI

````yaml /api-reference/swagger.yml get /v2/orgs/join
openapi: 3.0.0
info:
  version: 1.0.0
  title: Prisme.ai APIs
  description: Prisme.ai APIs specifications
  termsOfService: https://www.prisme.ai/mentions-legales
  contact:
    name: Prisme.ai Support Team
    email: support@prisme.ai
    url: https://www.prisme.ai
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://api.eda.prisme.ai
  - url: http://localhost:3001
security:
  - BearerAuth: []
  - WorkspaceApiKeyAuth: []
  - BearerAuth: []
    WorkspaceApiKeyAuth: []
paths:
  /v2/orgs/join:
    get:
      tags:
        - Organizations
      description: >-
        Join an organization with an invite code or email token. Redirects to
        the console on success or to the sign-in page with an error parameter on
        failure.
      operationId: joinOrganization
      parameters:
        - name: code
          in: query
          schema:
            type: string
          description: Invite code to join with
        - name: token
          in: query
          schema:
            type: string
          description: Email invite token to join with
      responses:
        '302':
          description: >-
            Redirect to console on success or to sign-in page with error on
            failure
        '401':
          description: AuthenticationError
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthenticationError'
components:
  schemas:
    AuthenticationError:
      type: object
      properties:
        error:
          type: string
          example: AuthenticationError
        message:
          type: string
          example: Unauthenticated
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    WorkspaceApiKeyAuth:
      type: apiKey
      in: header
      name: x-prismeai-api-key

````