Developers

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.

OperationWhat it returns
GET /api/v1/whoamiThe member your key acts as, the workspace and the key's permissions
GET /api/v1/workspaceThe workspace
GET /api/v1/teamsThe teams you can see
GET /api/v1/teams/{id}One team
GET /api/v1/membersThe 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"]  }}
FieldTypeMeaning
memberobject or nullThe 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
workspaceobjectThe workspace, with an id, a name and a slug
scopesarray of stringsThe 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  }}
FieldTypeMeaning
idUUIDThe workspace's id. It never changes
namestringThe workspace's name
slugstringThe workspace's part of an app address: attia.app/<slug>
logo_urlstring or nullThe 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.

ParameterTypeDefaultMeaning
limitinteger, 1 to 10025How many teams to return
cursorstringnoneThe next_cursor of the previous page
updated_sinceRFC 3339 timestampnoneOnly 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}
FieldTypeMeaning
idUUIDThe team's id. It never changes
namestringThe team's name
identifierstringThe team's short key
descriptionstring or nullThe team's description
visibilitypublic or privateWhether every member can see the team, or only the members on it
retired_attimestamp or nullWhen the team was retired. Only Get one team can return a retired team
created_attimestampWhen the team was created
updated_attimestampWhen 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.

ParameterTypeDefaultMeaning
limitinteger, 1 to 10025How many members to return
cursorstringnoneThe next_cursor of the previous page
updated_sinceRFC 3339 timestampnoneOnly 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}
FieldTypeMeaning
idUUIDThe member's id in your workspace. It never changes
namestring or nullThe member's name in this workspace. null when the member has none
avatar_urlstring or nullThe address of the member's picture
roleowner, admin or memberThe member's workspace role. No operation changes it
team_idsarray of UUIDsThe 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_attimestampWhen 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.