List assignable team roles
List only roles the current account can assign to agency members or invitations. Use these role IDs when inviting members or changing roles.
/v1/agencies/{agencyId}/team/grantable-rolesList only roles the current account can assign to agency members or invitations. Use these role IDs when inviting members or changing roles.
Authorization
bearerAuth In: header
Path Parameters
1 <= lengthResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/agencies/string/team/grantable-roles" \ -H "Authorization: Bearer YOUR_API_KEY"{ "data": [ { "_count": { "members": 0 }, "description": null, "agencyId": "string", "permissions": [ "string" ], "dataVisibility": "SELF", "id": "string", "createdAt": "2019-08-24T14:15:22Z", "name": "string", "updatedAt": "2019-08-24T14:15:22Z", "color": "string", "isSystem": true, "isDefault": true } ], "meta": { "requestId": "string" }}Create team role POST
Create an agency role with permission keys and SELF or ALL data visibility. The role cannot grant access beyond the current account's authority.
List team role audit events GET
List agency role and permission audit events with actor, action, permission and date filters. Use the numeric cursor as an offset for later pages.