---
updatedAt: 2026-09-02T17:35:26.000Z
agentTools:
  projectIndex: https://docs.go.v7labs.com/llms.txt
---

# Create new invitation into a Workspace

Creates a new invitation into a Workspace. The invitation will be sent to the email address provided.
If the invitation is already pending or expired for this email/workspace combo,
if will be updated with the new role and resend.

An email that the directory of the workspace's organisation manages gets no
invitation: its item has `error_code` `invitation_directory_user`, and an
organisation admin adds the person to the workspace instead.


# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "Common.APIErrorDetails": {
        "description": "Additional structured error context. Shape varies by error code.\n\n- For conflict errors: contains a `conflicts` array with conflicting resources\n- For other errors: may contain arbitrary error-specific context",
        "nullable": true,
        "oneOf": [
          {
            "$ref": "#/components/schemas/Common.ConflictErrorDetails"
          },
          {
            "additionalProperties": true,
            "description": "Generic error details for non-conflict errors",
            "type": "object"
          }
        ],
        "title": "Common.APIErrorDetails"
      },
      "Common.ConflictErrorDetails": {
        "additionalProperties": false,
        "description": "Details for conflict errors",
        "properties": {
          "conflicts": {
            "description": "List of conflicting resources",
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "conflicts"
        ],
        "title": "Common.ConflictErrorDetails",
        "type": "object"
      },
      "Common.UUID": {
        "example": "e23ff3f3-8f77-4e78-9e81-fdb25abfb781",
        "format": "uuid",
        "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
        "title": "Common.UUID",
        "type": "string"
      },
      "Invitations.InvitedUser": {
        "additionalProperties": false,
        "description": "Invited user",
        "oneOf": [
          {
            "$ref": "#/components/schemas/Invitations.InvitedUserSuccess"
          },
          {
            "$ref": "#/components/schemas/Invitations.InvitedUserError"
          }
        ],
        "title": "Invitations.InvitedUser",
        "type": "object"
      },
      "Invitations.InvitedUserError": {
        "additionalProperties": false,
        "description": "Invited user error",
        "properties": {
          "email": {
            "$ref": "#/components/schemas/Common.Email"
          },
          "error_code": {
            "description": "Set for an error that a client can act on. `invitation_directory_user`: the\ndirectory of the workspace's organisation manages the person, so the\nperson gets a workspace assignment and not an invitation.\n",
            "enum": [
              "invitation_directory_user"
            ],
            "nullable": true,
            "type": "string"
          },
          "error_message": {
            "type": "string"
          },
          "role": {
            "$ref": "#/components/schemas/Invitations.Role"
          },
          "state": {
            "enum": [
              "error"
            ],
            "type": "string"
          }
        },
        "required": [
          "state",
          "email",
          "role",
          "error_message"
        ],
        "title": "Invitations.InvitedUserError",
        "type": "object"
      },
      "Invitations.InvitedUserSuccess": {
        "additionalProperties": false,
        "description": "Invited user success",
        "properties": {
          "email": {
            "$ref": "#/components/schemas/Common.Email"
          },
          "id": {
            "$ref": "#/components/schemas/Common.UUID"
          },
          "invite_url": {
            "type": "string"
          },
          "role": {
            "$ref": "#/components/schemas/Invitations.Role"
          },
          "state": {
            "enum": [
              "success"
            ],
            "type": "string"
          }
        },
        "required": [
          "email",
          "role",
          "invite_url"
        ],
        "title": "Invitations.InvitedUserSuccess",
        "type": "object"
      },
      "Invitations.Role": {
        "enum": [
          "admin",
          "editor",
          "contributor",
          "reviewer",
          "reader",
          "worker"
        ],
        "title": "Invitations.Role",
        "type": "string"
      },
      "Common.Email": {
        "example": "email@example.com",
        "format": "email",
        "title": "Common.Email",
        "type": "string"
      },
      "Invitations.CreateInvitationResponse": {
        "additionalProperties": false,
        "description": "Create invitation response. Describes each created invitation (or an error if it failed)",
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/Invitations.InvitedUser"
            },
            "type": "array"
          }
        },
        "required": [
          "data"
        ],
        "title": "Invitations.CreateInvitationResponse",
        "type": "object"
      },
      "Common.APIError": {
        "additionalProperties": false,
        "properties": {
          "code": {
            "example": "bad_request",
            "type": "string"
          },
          "details": {
            "$ref": "#/components/schemas/Common.APIErrorDetails"
          },
          "message": {
            "example": "Bad Request",
            "type": "string"
          }
        },
        "required": [
          "code",
          "message"
        ],
        "title": "Common.APIError",
        "type": "object"
      },
      "Invitations.InviteUser": {
        "additionalProperties": false,
        "description": "Object describing a user to invite to a workspace",
        "properties": {
          "email": {
            "$ref": "#/components/schemas/Common.Email"
          },
          "role": {
            "$ref": "#/components/schemas/Invitations.Role"
          },
          "user_group_ids": {
            "default": [],
            "items": {
              "$ref": "#/components/schemas/Common.UUID"
            },
            "type": "array"
          }
        },
        "required": [
          "email",
          "role"
        ],
        "title": "Invitations.InviteUser",
        "type": "object"
      },
      "Invitations.CreateInvitationRequest": {
        "additionalProperties": false,
        "description": "Create invitation request. Invites one or more users into a workspace",
        "properties": {
          "invitations": {
            "items": {
              "$ref": "#/components/schemas/Invitations.InviteUser"
            },
            "type": "array"
          }
        },
        "required": [
          "invitations"
        ],
        "title": "Invitations.CreateInvitationRequest",
        "type": "object"
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "in": "header",
        "name": "X-API-KEY",
        "type": "apiKey"
      },
      "BearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "title": "V7 Go API",
    "version": "0.1.0"
  },
  "openapi": "3.0.0",
  "paths": {
    "/api/workspaces/{workspace_id}/invitations": {
      "post": {
        "callbacks": {},
        "description": "Creates a new invitation into a Workspace. The invitation will be sent to the email address provided.\nIf the invitation is already pending or expired for this email/workspace combo,\nif will be updated with the new role and resend.\n\nAn email that the directory of the workspace's organisation manages gets no\ninvitation: its item has `error_code` `invitation_directory_user`, and an\norganisation admin adds the person to the workspace instead.\n",
        "operationId": "workspace-invitation-create",
        "parameters": [
          {
            "description": "",
            "in": "path",
            "name": "workspace_id",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Common.UUID"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Invitations.CreateInvitationRequest"
              }
            }
          },
          "description": "Invitations.CreateInvitationRequest",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invitations.CreateInvitationResponse"
                }
              }
            },
            "description": "Invitations.CreateInvitationResponse"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          }
        },
        "summary": "Create new invitation into a Workspace",
        "tags": [
          "WorkspaceInvitations"
        ]
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    },
    {
      "ApiKeyAuth": []
    }
  ],
  "servers": [
    {
      "description": "EU",
      "url": "https://go.v7labs.com",
      "variables": {}
    },
    {
      "description": "US",
      "url": "https://go.us.v7labs.com",
      "variables": {}
    },
    {
      "description": "UAE",
      "url": "https://go.uae.v7labs.com",
      "variables": {}
    }
  ]
}
```