User Management API
Invite Users
Programmatically invite users to your Langdock workspace via email
POST
Documentation Index
Fetch the complete documentation index at: https://docs.langdock.com/llms.txt
Use this file to discover all available pages before exploring further.
⚠️ Using our API via a dedicated deployment? Just replace
api.langdock.com with your deployment’s base URL: <deployment-url>/api/publicPrerequisites
- API Key with the
USER_MANAGEMENT_APIscope - 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
invalidEmailsbut doesn’t fail the request. - If SAML is not enabled for the workspace, the invitation email includes a magic link for passwordless sign-in.
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.
Authorizations
API key as Bearer token. Format "Bearer YOUR_API_KEY"
Body
application/json
List of users to invite. At least one user is required.
Minimum array length:
1Response
Invitations processed successfully
Always "success" when the request is processed
Available options:
success Example:
"success"
Human-readable summary of the result
Example:
"Invitations processed"
Email addresses that were successfully invited
Example:
["alice@example.com", "bob@example.com"]Email addresses that failed deeper validation (e.g., unreachable domain)
Example:
[]