For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
SupportDeveloper ForumLogin
  • Overview
    • Introduction
    • Getting Started
    • Integration Example (PSA)
    • Authentication
    • Error Handling
    • Pagination
    • Filtering
    • Ordering
    • Rate Limits
    • Permissions
    • Webhooks
    • MCP Server
    • Versioning
    • Changelog
    • Support
  • API v1 Reference
    • Projects Overview
    • Tasks Overview
    • Time Tracking Overview
    • Documents Overview
    • Search Overview
    • Companies Overview
    • Users Overview
    • Files & Images Overview
    • Custom Fields Overview
    • Workload & Planning Overview
    • Project Templates Overview
    • Workflows Overview
    • Login & Access Overview
    • API Management Overview
LogoLogo
SupportDeveloper ForumLogin
On this page
  • Inviting Users
API v1 Reference

Users

Was this page helpful?
Edit this page
Previous

Returns the currently logged-in user and workspace.

Next
Built with

Users represent the people who are part of an awork workspace. They can be assigned to tasks, projects, and other resources. Users can have different roles and permissions in the workspace.

Inviting Users

To invite a new user to an awork workspace, you need to make a request to POST /invitations. This is one of the few requests that requires a workspaceId.

Request
1curl -X POST https://api.awork.com/api/v1/invitations \
2 -H 'Content-Type: application/json' \
3 -d '{
4 "email": "carla.creative@ncnstn.com",
5 "invitationFlow": "invite",
6 "workspaceId": "123e4567-e89b-12d3-a456-426614174000",
7 "roleId": "123e4567-e89b-12d3-a456-426614174000"
8 }'

You can find the workspace id of the current user by making a request to the /users/me endpoint.

Request
1curl -X GET https://api.awork.com/api/v1/users/me
Response
1{
2 "id": "123e4567-e89b-12d3-a456-426614174000",
3 "workspace": {
4 "id": "123e4567-e89b-12d3-a456-426614174000",
5 "name": "NCNSTN",
6 "url": "https://ncnstn.awork.com"
7 }
8}