API Explorer: /accounts/{accountId}/invitations
To list the account invitations, you need the accountId of the account you want to get the list of invitations and use an API key that has account admin access. For the sample code on the right, a list of invitations for accountId 123456 is provided. To get a list of invitations for your account, replace the accountId 123456 with the accountId of your account.
If you do not know the accountId of the account, use view the accountId glossary section for the details on where to find this value.
List Account Invitations
curl 'https://a.blazemeter.com/api/v4/accounts/123456/invitations' \
--user 'api_key_id:api_key_secret'
List Account Invitations
All timestamps are in UNIX Epoch time.
Attributes
-
idstringThe unique identifier of the invitation
-
inviteeEmailstringThe email of the invitee of the invitation (the person being invited)
-
tokenstringThe token for the invitation
-
accountRolesarrayThe account role being assigned to the invited user. The following are the available roles:
admin- Account admin rolebilling- Account billing rolestandard- Account standard roleuser_manager- Account user manager role -
workspacesRolesarrayThe workspace role being assigned to the invited user. The following are the available roles:
tester- Workspace tester rolemanager- Workspace manager roleviewer- Workspace viewer role -
attachAutomaticallybooleanDenotes if the use will be added automatically without the need to click the accept link in the invitation email
-
createdintegerThe timestamp for when the invitation was created
-
updatedintegerThe timestamp for when the invitation was updated
-
accountNamestringThe account name of the account for the invitation
-
acceptUrlstringThe URL for accepting the invitation. Must be used by the user invited
-
rejectUrlstringThe URL for rejecting the invitation. Must be used by the user invited
-
invitingEmailstringThe email of the user who created the invitation
-
invitingNamestringThe name of the user who created the invitation
-
workspaceNamesarrayThe name of the workspaces the invitee was invited to
Add User to Account Response Attributes
Response200 OK
{
"limit": 10,
"skip": 0,
"total": 1,
"hidden": 0,
"api_version": 4,
"error": null,
"result": [{
"id": "5eea89603e7ad67f5d35cbf7",
"inviteeEmail": "somebody@example.com",
"token": "4p8M0gseEpHr",
"accountRoles": [
"standard"
],
"workspacesRoles": [
"tester"
],
"attachAutomatically": false,
"created": 1592428896,
"updated": 1592428896,
"accountName": "Travis's Account",
"acceptUrl": "https://a.blazemeter.com/api/v4/accounts/130010/invitations/5eea89603e7ad67f5d35cbf7/accept/4p8M0gseEpHr",
"rejectUrl": "https://a.blazemeter.com/api/v4/accounts/130010/invitations/5eea89603e7ad67f5d35cbf7/reject/4p8M0gseEpHr",
"invitingEmail": "somebody@example.com",
"invitingName": "Travis Lloyd",
"workspaceNames": [
"Default workspace"
]
}],
"request_id": "5eea8978ea87b"
}