Skip to main content
POST
Invite an existing user to this tenant

Authorizations

Authorization
string
header
required

MeshQu API key passed as a bearer token: Authorization: Bearer mqu_…. Mint one in the console (Settings → API keys).

X-MeshQu-Tenant-Id
string
header
required

Tenant UUID for multi-tenant isolation. Required on all authenticated routes — validated before authentication (middleware/tenant.ts), so a missing or non-UUID header returns 400 (MISSING_TENANT_ID / INVALID_TENANT_ID) before the API key is checked.

Body

application/json
user_id
string<uuid>
required

Existing user id

role
enum<string>
required
Available options:
admin,
operator,
auditor,
viewer

Response

Default Response

user_id
string<uuid>
required
tenant_id
string<uuid>
required
role
enum<string>
required
Available options:
admin,
operator,
auditor,
viewer
created_at
string<date-time>
required