Create invitation
Create a new invitation for a user to join the current organization.
Request schema
Header parameters
HTTP: basicAuth
HTTP AuthorizationScheme: basic
Request
Email address of the invitee.
Role assigned to the invitee.
List of workspace to which the invitee will be added to once they accept their invitation and the role they'll be assigned for each one. Each workspace must exist as part of the current organization. If the user is already a member of the organization they'll be automatically added to each workspace listed.
Unique identifier for the workspace.
Role assigned to the invitee.
POST /api/v1/invitations HTTP/1.1 Authorization: Bearer REPLACE_BEARER_TOKEN Content-Type: application/json Host: app.getcensus.com Content-Length: 185 { "email": "newuser@example.com", "role": "admin", "workspaces": [ { "id": 1234, "role": "Viewer" }, { "id": 4567, "role": "Editor" } ] }
Responses
200
The outcome of the creation request
Unique identifier for the invitation.
Email address of the invitee.
Timestamp when the invitation was created.
ID of the user who created the invitation.
Timestamp when the invitation was claimed.
ID of the user who claimed the invitation.
Role assigned to the invitee.
The list of invitations to a specific workspace that have not yet been claimed. These will be accepted automatically when the user accepts their invite to the organization.
Unique identifier for the invitation to a specific workspace.
Unique identifier for the workspace.
Role assigned to the invitee. If the Organization does not have Access Controls OR no role is specified the default will be "Owner".
{ "status": "success", "data": { "id": 90967, "email": "newuser@example.com", "created_at": "2023-09-22T20:25:45.185Z", "created_by_id": 13, "claimed_at": "2023-09-22T20:25:45.185Z", "claimed_by_id": 11, "role": "admin", "associated_workspace_invitations": [ { "id": 90967, "workspace_id": 1234, "role": "Viewer" } ] } }