This includes the users who have UI access to the Tray platform as well as the API users that you can create by issuing tokens.
Invites a user to the organization.
This will send an email to the user with a link to create an account.
If your organization has SSO configured and you do not wish an invitation to be sent, make use of the Create User endpoint.
This endpoint is rate limited to 100 user invites per day per organization.
{- "email": "string",
- "organizationRoleId": "3ed06bb5-3877-4ce1-8371-c21273b858f1"
}
{- "inviteId": "14ca54c2-5d85-4c93-81b5-495a2e7e0ca4",
- "expires": "2019-08-24T14:15:22Z"
}
List all roles in the organization.
When managing APIs you would want to take full control of how your endpoints are accessed.
Role-based policies allow you to build clear and consistent access control.
Read this page for details on creating roles and issuing tokens.
Authorization required | string The authorization token. You must use either an org admin/owner or a master token Example: Bearer 3fd74d349xxxxxxxxxxxxxxxxxxxxxxxxd90df521 |
Array of objects (WorkspaceExternalApiModel) | |
required | object (ExternalApiPageInfoModel) |
Invalid Input
Unauthorized
Forbidden
Not Found
Limit exceeded
Internal Error
{- "elements": [
- {
- "id": "string",
- "name": "string",
- "type": { },
- "description": "string",
- "monthlyTaskLimit": 0
}
], - "pageInfo": {
- "startCursor": "string",
- "endCursor": "string",
- "hasNextPage": true,
- "hasPreviousPage": true
}
}
List all users in the organization
Authorization required | string The authorization token. You must use either an org admin token OR a master token Example: Bearer 3fd74d349xxxxxxxxxxxxxxxxxxxxxxxxd90df521 |
Array of objects (WorkspaceExternalApiModel) | |
required | object (ExternalApiPageInfoModel) |
Invalid Input
Unauthorized
Forbidden
Not Found
Limit exceeded
Internal Error
{- "elements": [
- {
- "id": "string",
- "name": "string",
- "type": { },
- "description": "string",
- "monthlyTaskLimit": 0
}
], - "pageInfo": {
- "startCursor": "string",
- "endCursor": "string",
- "hasNextPage": true,
- "hasPreviousPage": true
}
}
Creates a user in the organization.
This endpoint should be used when you have SSO configured as it will not send an invitation to set up an account.
If an invitation is required, make use of the Invite user to organization workspace endpoint.
Invalid Input
Unauthorized
Forbidden
Not Found
Limit exceeded
Internal Error
{- "name": "string",
- "email": "string",
- "organizationRoleId": "3ed06bb5-3877-4ce1-8371-c21273b858f1"
}
{- "id": "string",
- "email": "string",
- "name": "string",
- "accountType": { },
- "role": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
}
Get user by id
Authorization required | string The authorization token. You must use either an org level token (viewer or higher) OR a master token Example: Bearer 3fd74d349xxxxxxxxxxxxxxxxxxxxxxxxd90df521 |
Invalid Input
Unauthorized
Forbidden
Not Found
Limit exceeded
Internal Error
{- "id": "string",
- "email": "string",
- "name": "string",
- "accountType": { },
- "role": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
}
Delete user by id
Authorization required | string The authorization token. You must use either an org admin token OR a master token Example: Bearer 3fd74d349xxxxxxxxxxxxxxxxxxxxxxxxd90df521 |
Invalid Input
Unauthorized
Forbidden
Not Found
Limit exceeded
Internal Error
{ }
Updates the role of a user in the organization
Authorization required | string The authorization token. You must use either an org admin token OR a master token Example: Bearer 3fd74d349xxxxxxxxxxxxxxxxxxxxxxxxd90df521 |
Invalid Input
Unauthorized
Forbidden
Not Found
Limit exceeded
Internal Error
{- "roleId": "7382d58e-652a-4905-b7c9-bcca1e0e5391"
}
{ }