Workspace, teams and members
GET /api/v1/whoami says who a key acts as. GET /api/v1/workspace, /teams and /members read the workspace, its teams and its members, with no email or login id. All need Read.
Overview
Six operations read who you are and who is in your workspace. All six need the Read permission, and none of them writes anything.
| Operation | What it returns |
|---|---|
GET /api/v1/whoami | The member your key acts as, the workspace and the key's permissions |
GET /api/v1/workspace | The workspace |
GET /api/v1/teams | The teams you can see |
GET /api/v1/teams/{id} | One team |
GET /api/v1/members | The members of the workspace |
GET /api/v1/members/{id} | One member |
A member here carries a name, an id, an avatar, a role and team ids. The API leaves out every member's email address and login id. The role is read only, because no operation changes it.
A key limited to some teams, and a guest's key, get only those teams and only the members on them. Authentication covers team access.
Who am I
GET /api/v1/whoami returns the member your key or sign-in acts as, its workspace and its permissions. It takes no query parameters, so one gets a 400 with the code invalid-request.
curl "https://attia.app/api/v1/whoami" \ -H "Authorization: Bearer $ATTIA_API_KEY"{ "data": { "member": { "id": "0192f3b4-2c18-7a5e-9d07-6e1f4a8b2c93", "name": "Kari Eksempel" }, "workspace": { "id": "0192f3b4-1a02-7c11-8e44-2b9d10c3f7aa", "name": "Eksempelbedriften", "slug": "eksempelbedriften" }, "scopes": ["read", "write"] }}| Field | Type | Meaning |
|---|---|---|
member | object or null | The member you act as, with an id and a name. The name is null when the member has none. member is null when the key acts as no member |
workspace | object | The workspace, with an id, a name and a slug |
scopes | array of strings | The permissions of the key or sign-in, as the API names them: read, write, admin, candidates:read and candidates:write |
Get the workspace
GET /api/v1/workspace returns the workspace of your key or sign-in. It takes no query parameters.
curl "https://attia.app/api/v1/workspace" \ -H "Authorization: Bearer $ATTIA_API_KEY"{ "data": { "id": "0192f3b4-1a02-7c11-8e44-2b9d10c3f7aa", "name": "Eksempelbedriften", "slug": "eksempelbedriften", "logo_url": null }}| Field | Type | Meaning |
|---|---|---|
id | UUID | The workspace's id. It never changes |
name | string | The workspace's name |
slug | string | The workspace's part of an app address: attia.app/<slug> |
logo_url | string or null | The address of the workspace's logo |
List teams
GET /api/v1/teams returns the teams you can see in the app, a page at a time. It leaves out archived and retired teams.
curl "https://attia.app/api/v1/teams?limit=50" \ -H "Authorization: Bearer $ATTIA_API_KEY"All three query parameters are optional.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
limit | integer, 1 to 100 | 25 | How many teams to return |
cursor | string | none | The next_cursor of the previous page |
updated_since | RFC 3339 timestamp | none | Only teams updated at or after this time |
A parameter outside this table gets a 400 with the code invalid-request. So does a parameter sent twice.
The answer holds the teams in data, sorted by updated_at and then id, oldest change first. next_cursor is a string when more teams exist and null on the last page. Pagination explains how to page and how to poll for changes.
{ "data": [ { "id": "0192f3b4-3d71-7f20-a1c8-5e6f7a8b9c01", "name": "Engineering", "identifier": "ENG", "description": null, "visibility": "public", "retired_at": null, "created_at": "2026-09-25T12:04:51.220417Z", "updated_at": "2026-10-01T09:42:10.118305Z" } ], "next_cursor": null}| Field | Type | Meaning |
|---|---|---|
id | UUID | The team's id. It never changes |
name | string | The team's name |
identifier | string | The team's short key |
description | string or null | The team's description |
visibility | public or private | Whether every member can see the team, or only the members on it |
retired_at | timestamp or null | When the team was retired. Only Get one team can return a retired team |
created_at | timestamp | When the team was created |
updated_at | timestamp | When the team last changed |
Version 1 can gain a field, so ignore one you do not know. Timestamps, nulls and enums describes each format.
Get one team
GET /api/v1/teams/{id} returns the team with that id, with the same fields as a team in the list. A retired team comes back with retired_at set. It takes no query parameters.
curl "https://attia.app/api/v1/teams/0192f3b4-3d71-7f20-a1c8-5e6f7a8b9c01" \ -H "Authorization: Bearer $ATTIA_API_KEY"A 404 with the code not-found means no team your key can see has that id. The team may not exist, may be archived, may be private, may belong to another workspace, or may sit outside your key's teams. Every one of these gets the same answer, so a 404 never tells you whether the team exists. An id that is not a UUID gets the same 404.
List members
GET /api/v1/members returns the active members of your workspace, a page at a time. A key limited to some teams, and a guest's key, get only members on one of those teams.
curl "https://attia.app/api/v1/members?limit=50" \ -H "Authorization: Bearer $ATTIA_API_KEY"All three query parameters are optional, and they work as they do for List teams.
| Parameter | Type | Default | Meaning |
|---|---|---|---|
limit | integer, 1 to 100 | 25 | How many members to return |
cursor | string | none | The next_cursor of the previous page |
updated_since | RFC 3339 timestamp | none | Only members updated at or after this time |
{ "data": [ { "id": "0192f3b4-2c18-7a5e-9d07-6e1f4a8b2c93", "name": "Kari Eksempel", "avatar_url": null, "role": "member", "team_ids": ["0192f3b4-3d71-7f20-a1c8-5e6f7a8b9c01"], "updated_at": "2026-10-01T09:42:10.118305Z" } ], "next_cursor": null}| Field | Type | Meaning |
|---|---|---|
id | UUID | The member's id in your workspace. It never changes |
name | string or null | The member's name in this workspace. null when the member has none |
avatar_url | string or null | The address of the member's picture |
role | owner, admin or member | The member's workspace role. No operation changes it |
team_ids | array of UUIDs | The member's teams that you can see, leaving out retired teams. A private team you are not on stays out, so two callers can get different lists |
updated_at | timestamp | When the membership changed, or the member's place on a team you can see |
Changing a name or a picture on the person's account does not move updated_at, and neither does archiving or retiring a team. Polling with updated_since misses those changes, so read the whole list now and then if you keep a copy.
Get one member
GET /api/v1/members/{id} returns the member with that id, with the same fields as a member in the list. It takes no query parameters.
curl "https://attia.app/api/v1/members/0192f3b4-2c18-7a5e-9d07-6e1f4a8b2c93" \ -H "Authorization: Bearer $ATTIA_API_KEY"A 404 with the code not-found means no member your key can see has that id. The member may not exist, may have left, may belong to another workspace, or may sit outside your key's teams. Every one of these gets the same answer. An id that is not a UUID gets the same 404.