Login & Access
The Login & Access endpoints help you identify the current account, invite workspace members, and inspect the roles and permissions that control API access. Use the Authentication guide to obtain the Bearer token before calling these endpoints.
Inspecting the current user’s access
Start with GET /me/permissions to discover the features available to the authenticated user. This is useful for integrations that enable or hide functionality based on workspace permissions:
To identify the user and workspace the token belongs to, call GET /users/me:
Inviting a workspace member
Invitations are one of the few API calls that require an explicit workspaceId. Get that id from /users/me, then provide the role that the new member should receive:
The caller must have permission to invite users. Use GET /roles to list valid role ids before creating the invitation. The recipient completes the process with the invitation link; integrations do not need to handle the acceptance request themselves.
Learn more about awork’s permission management.

