Skip to main content
This endpoint lets you programmatically invite one or more users to your workspace. It’s useful for automating onboarding flows, partner integrations, or bulk provisioning.

Base URL

Dedicated deploymentsReplace api.langdock.com with <your-deployment-url>/api/public in all requests.

Prerequisites

  • API Key with the USER_MANAGEMENT_API scope
  • The API key must be created by a workspace admin

Behavior

  • Already a member? Silently skipped.
  • Has a pending join request? Automatically approved.
  • Invalid email domain? Reported in invalidEmails but doesn’t fail the request.
  • SAML disabled? The invitation email includes a magic link for passwordless sign-in.
  • SAML enabled? Users outside your verified domains get a magic link when Allow External Authentication is on.
A 200 response can still contain invalidEmails — these are emails that passed format validation but failed deeper checks (e.g., unreachable domain). Always check both successfulInvites and invalidEmails in the response.
Langdock intentionally blocks browser-origin requests to protect your API key and ensure your applications remain secure. For more information, please see our guide on API Key Best Practices.