List invitations
Get details for all claimed and unclaimed invitations in the current organization.
Request schema
Query parameters
Designates which page of results to return. Always starts at 1. If 0 is specified, it defaults to 1.
Determines the number of results on each page. It can't exceed 100.
Organizes the results based on their creation time, either ascending or descending.
Header parameters
HTTP: basicAuth
HTTP AuthorizationScheme: basic
GET /api/v1/invitations?page=SOME_NUMBER_VALUE&per_page=SOME_NUMBER_VALUE&order=SOME_STRING_VALUE HTTP/1.1 Authorization: Bearer REPLACE_BEARER_TOKEN Host: app.getcensus.com
Responses
200
The outcome of the request
An object to help you navigate the list of results.
Total records in the collection.
Records on each page.
The previous page number, or null for the first page.
The current page number.
The next page number, or null if it's the last page.
The number of the last page with records.
The list of results.
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", "pagination": { "total_records": 14, "per_page": 25, "prev_page": 1, "page": 2, "next_page": 3, "last_page": 10 }, "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" } ] } ] }