# Sharing and study groups

> See what the user shares, read what others share with them, and read their study groups and the leaderboards.

Source: https://workroad.app/docs/api/sharing

## What the user shares

`GET /notes/{noteId}/sharing` and `GET /sets/{setId}/sharing` say whether a public link is on, how many people hold access or have an invitation, and which study groups' folders hold it. They don't name the people, and they never return the public link: anyone holding it can read the content. The list of who holds access is in the app's Share panel. `GET /schedules/{scheduleId}/sharing` lists the people a timetable is shared with by name and username, as its Share panel does.

## What others share with the user

- `GET /shared/notes` lists notes shared with the user directly, with invitations they haven't answered first. `GET /shared/notes/{noteId}` reads an accepted one as Markdown.
- `GET /shared/sets` lists accepted sets, `GET /shared/sets/invitations` the invitations waiting for an answer, and `GET /shared/sets/{setId}` reads an accepted set with its terms.
- A note or set in a study group's folder is read the same way, by the `targetId` that `GET /groups/{groupId}/items` gives. The user's own items in the folder are read with `GET /notes/{noteId}` and `GET /sets/{setId}`.

Shared notes and sets are read only. Other people appear by their name and username, as on their public profile; no response carries an email address.

## Study groups and leaderboards

`GET /groups` lists the groups the user is in, and only members can read a group. Reading a group and its folder needs `notes:view` or `sets:view`, and the folder lists notes only with `notes:view` and sets only with `sets:view`. Its tasks also need `tasks:view`, and its activity feed, which names notes, sets and tasks, needs all three.

`GET /leaderboards` returns the tasks board with `tasks:view` and the streaks board with `activity:view`. People who hid themselves from the leaderboards aren't on them.

## What the API can't change

Everything here is read only. Turning a public link on or off, inviting people or taking access away, answering an invitation, saving a copy of someone's shared note or set, creating, joining or leaving a group, changing its folder or tasks, and hiding the user from the leaderboards all happen in the app, because each reaches other people.

## See whether a note is shared

`GET https://workroad.app/api/v1/notes/{noteId}/sharing`

Whether the note's public link is on, how many people it is shared with or who are invited to it, and the study groups whose folder holds it. It doesn't name the people: the list of who holds access is in the app's Share panel. The public link itself is never returned. Sharing is changed in the app.

- MCP tool: `getNoteSharing` on `https://workroad.app/api/mcp`
- Required scopes: notes:view
- Test mode: `GET https://workroad.app/api/test/v1/notes/{noteId}/sharing` checks the request and returns the example response without changing anything.

### Path parameters

- `noteId`: string (uuid), required. Note id, scoped to the key's user.

### Response

`200` OK

- `data`: object, required
  - `publicLink`: boolean, required. Whether a public link is on, which lets anyone holding it read the content. The link itself is never returned.
  - `people`: object, required
    - `withAccess`: integer, required. People who accepted access, by a direct share.
    - `invited`: integer, required. People invited who haven't answered yet.
  - `groups`: array of objects, required. Study groups whose folder holds it. Every member can read it there.
    - `id`: string (uuid), required. Study group id, for `GET /groups/{groupId}`.
    - `name`: string, required. The group's name.

#### Example

```json
{
  "data": {
    "publicLink": false,
    "people": {
      "withAccess": 2,
      "invited": 1
    },
    "groups": [
      {
        "id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
        "name": "Biology revision"
      }
    ]
  }
}
```

### Errors

Every error has the body `{ "error": { "code", "message", "details" } }`.

- `400`: Invalid request body or query
- `401`: Missing, invalid, disabled or expired API key
- `402`: `api_allowance_reached`: this month's API and AI app requests on the free plan are used up. `details` has `limit`, `used`, `resetsAt` and `upgradeUrl`. Nothing ran; WorkRoad Plus has no monthly limit.
- `403`: The API key lacks the required scope
- `404`: No note with that id exists for this key's user.
- `405`: Method not allowed. Use a method from the Allow header.
- `429`: Rate limit exceeded. Wait for Retry-After before retrying. The rate-limit headers are absent when the key's own limiter rejected the request before the per-endpoint bucket check ran.
- `500`: Internal server error

## See whether a study set is shared

`GET https://workroad.app/api/v1/sets/{setId}/sharing`

Whether the set's public link is on, how many people it is shared with or who are invited to it, and the study groups whose folder holds it. It doesn't name the people: the list of who holds access is in the app's Share panel. The public link itself is never returned. Sharing is changed in the app.

- MCP tool: `getSetSharing` on `https://workroad.app/api/mcp`
- Required scopes: sets:view
- Test mode: `GET https://workroad.app/api/test/v1/sets/{setId}/sharing` checks the request and returns the example response without changing anything.

### Path parameters

- `setId`: string (uuid), required. Study set id, scoped to the key's user.

### Response

`200` OK

- `data`: object, required
  - `publicLink`: boolean, required. Whether a public link is on, which lets anyone holding it read the content. The link itself is never returned.
  - `people`: object, required
    - `withAccess`: integer, required. People who accepted access, by a direct share.
    - `invited`: integer, required. People invited who haven't answered yet.
  - `groups`: array of objects, required. Study groups whose folder holds it. Every member can read it there.
    - `id`: string (uuid), required. Study group id, for `GET /groups/{groupId}`.
    - `name`: string, required. The group's name.

#### Example

```json
{
  "data": {
    "publicLink": false,
    "people": {
      "withAccess": 2,
      "invited": 1
    },
    "groups": [
      {
        "id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
        "name": "Biology revision"
      }
    ]
  }
}
```

### Errors

Every error has the body `{ "error": { "code", "message", "details" } }`.

- `400`: Invalid request body or query
- `401`: Missing, invalid, disabled or expired API key
- `402`: `api_allowance_reached`: this month's API and AI app requests on the free plan are used up. `details` has `limit`, `used`, `resetsAt` and `upgradeUrl`. Nothing ran; WorkRoad Plus has no monthly limit.
- `403`: The API key lacks the required scope
- `404`: No study set with that id exists for this key's user.
- `405`: Method not allowed. Use a method from the Allow header.
- `429`: Rate limit exceeded. Wait for Retry-After before retrying. The rate-limit headers are absent when the key's own limiter rejected the request before the per-endpoint bucket check ran.
- `500`: Internal server error

## See who a timetable is shared with

`GET https://workroad.app/api/v1/schedules/{scheduleId}/sharing`

The people who can see the timetable, by name and username, as its Share panel lists them. For a rotating timetable a share covers every slot, so any slot's id gives the same answer. Sharing is changed in the app.

- MCP tool: `getScheduleSharing` on `https://workroad.app/api/mcp`
- Required scopes: schedule:view
- Test mode: `GET https://workroad.app/api/test/v1/schedules/{scheduleId}/sharing` checks the request and returns the example response without changing anything.

### Path parameters

- `scheduleId`: string (uuid), required. Schedule id, scoped to the key's user.

### Response

`200` OK

- `data`: object, required
  - `people`: array of objects, required. Everyone the timetable is shared with, oldest share first.
    - `name`: string, required. Their display name.
    - `username`: string, required. Their username, as on their public profile.
    - `sharedAt`: string (date-time), required. When it was shared with them.
  - `slots`: array of string, required. For a rotating timetable, the names of the slots a share covers, since sharing one shares them all. Empty for a single timetable.
  - `limit`: integer, required. How many people a timetable can be shared with.

#### Example

```json
{
  "data": {
    "people": [
      {
        "name": "Grace Hopper",
        "username": "grace",
        "sharedAt": "2026-01-15T09:30:00.000Z"
      }
    ],
    "slots": [],
    "limit": 20
  }
}
```

### Errors

Every error has the body `{ "error": { "code", "message", "details" } }`.

- `400`: Invalid request body or query
- `401`: Missing, invalid, disabled or expired API key
- `402`: `api_allowance_reached`: this month's API and AI app requests on the free plan are used up. `details` has `limit`, `used`, `resetsAt` and `upgradeUrl`. Nothing ran; WorkRoad Plus has no monthly limit.
- `403`: The API key lacks the required scope
- `404`: No schedule with that id exists for this key's user.
- `405`: Method not allowed. Use a method from the Allow header.
- `429`: Rate limit exceeded. Wait for Retry-After before retrying. The rate-limit headers are absent when the key's own limiter rejected the request before the per-endpoint bucket check ran.
- `500`: Internal server error

## List notes shared with the user

`GET https://workroad.app/api/v1/shared/notes`

Notes other people shared with the user directly: invitations the user hasn't answered first, then the notes they accepted, most recently edited first. Notes in a study group's folder are listed by `GET /groups/{groupId}/items`. Invitations are answered in the app.

- MCP tool: `listSharedNotes` on `https://workroad.app/api/mcp`
- Required scopes: notes:view
- Test mode: `GET https://workroad.app/api/test/v1/shared/notes` checks the request and returns the example response without changing anything.
- Next: `getSharedNote` reads an accepted note.

### Response

`200` OK

- `data`: array of objects, required
  - `id`: string (uuid), required. Note id, for `GET /shared/notes/{noteId}` once accepted.
  - `name`: string, required. The note's title.
  - `updatedAt`: string (date-time), required. When its owner last changed it.
  - `permission`: one of `"VIEW"`, `"EDIT"`, required. What the owner granted. Through the API both read the note; editing someone's note happens in the app.
  - `status`: one of `"pending"`, `"accepted"`, required. `pending` is an invitation the user hasn't answered in the app yet, and its note can't be read until they accept.
  - `sharedBy`: object or null, required. The note's owner. Null when their account is gone.
    - `name`: string, required. Their display name.
    - `username`: string, required. Their username, as on their public profile.

#### Example

```json
{
  "data": [
    {
      "id": "3c2b1a09-8f7e-4d6c-9b5a-4f3e2d1c0b9a",
      "name": "Krebs cycle",
      "updatedAt": "2026-02-01T12:00:00.000Z",
      "permission": "VIEW",
      "status": "accepted",
      "sharedBy": {
        "name": "Grace Hopper",
        "username": "grace"
      }
    }
  ]
}
```

### Errors

Every error has the body `{ "error": { "code", "message", "details" } }`.

- `400`: Invalid request body or query
- `401`: Missing, invalid, disabled or expired API key
- `402`: `api_allowance_reached`: this month's API and AI app requests on the free plan are used up. `details` has `limit`, `used`, `resetsAt` and `upgradeUrl`. Nothing ran; WorkRoad Plus has no monthly limit.
- `403`: The API key lacks the required scope
- `404`: No endpoint exists at this path.
- `405`: Method not allowed. Use a method from the Allow header.
- `429`: Rate limit exceeded. Wait for Retry-After before retrying. The rate-limit headers are absent when the key's own limiter rejected the request before the per-endpoint bucket check ran.
- `500`: Internal server error

## Read a note shared with the user

`GET https://workroad.app/api/v1/shared/notes/{noteId}`

A note someone else owns, shared with the user directly or through a study group's folder, with its content as Markdown. Read only: none of the owner's folders, tags, subject or summary comes with it. An invitation the user hasn't accepted can't be read.

- MCP tool: `getSharedNote` on `https://workroad.app/api/mcp`
- Required scopes: notes:view
- Test mode: `GET https://workroad.app/api/test/v1/shared/notes/{noteId}` checks the request and returns the example response without changing anything.

### Path parameters

- `noteId`: string (uuid), required. Id of a note someone shared with the key's user, from `GET /shared/notes`.

### Response

`200` OK

- `data`: object, required
  - `id`: string (uuid), required. Note id.
  - `name`: string, required. The note's title.
  - `icon`: string or null, required. The note's emoji, if it has one.
  - `markdown`: string or null, required. The note's content as Markdown. Null when the stored content isn't an editor document.
  - `markdownLosses`: array of one of `"empty-paragraphs"`, `"collapsed-spaces"`, `"image-size"`, `"table-layout"`, `"table-cell-blocks"`, `"table-header"`, `"table-cell-background"`, `"ordered-list-type"`, `"image-upload-state"`, `"inline-math"`, `"mention-label"`, `"formatting-edges"`, `"highlight"`, `"text-colour"`, `"toggle-summary-formatting"`, `"toggle-heading-level"`, `"code-block-language"`, `"code-block-filename"`, `"code-block-wrap"`, `"block-math"`, `"image-address"`, `"image-loading"`, `"link-address"`, `"link-title"`, `"link-attributes"`, `"mention-target"`, `"date-chip"`, `"heading-level"`, `"ordered-list-start"`, `"callout-kind"`, `"callout-nesting"`, `"columns"`, `"table-of-contents"`, `"footnote-orphan"`, `"youtube-embed"`, `"pdf-embed"`, `"recording-embed"`, `"bookmark-card"`, `"citation-text"`, `"bibliography"`, `"invalid-structure"`, `"unsupported-mark"`, `"unsupported-content"`, `"exceeds-write-limit"`, required. What the Markdown leaves out of the note, as on `GET /notes/{noteId}`.
  - `owner`: object or null, required. The note's owner. Null when their account is gone.
    - `name`: string, required. Their display name.
    - `username`: string, required. Their username, as on their public profile.
  - `groupName`: string or null, required. The study group whose folder opens it to the user, if one does. Null for a direct share alone.
  - `createdAt`: string (date-time), required. When the note was created.
  - `updatedAt`: string (date-time), required. When its owner last changed it.

#### Example

```json
{
  "data": {
    "id": "3c2b1a09-8f7e-4d6c-9b5a-4f3e2d1c0b9a",
    "name": "Krebs cycle",
    "icon": null,
    "markdown": "# Krebs cycle\n\nEight steps in the mitochondrial matrix.\n",
    "markdownLosses": [],
    "owner": {
      "name": "Grace Hopper",
      "username": "grace"
    },
    "groupName": "Biology revision",
    "createdAt": "2026-01-15T09:30:00.000Z",
    "updatedAt": "2026-02-01T12:00:00.000Z"
  }
}
```

### Errors

Every error has the body `{ "error": { "code", "message", "details" } }`.

- `400`: Invalid request body or query
- `401`: Missing, invalid, disabled or expired API key
- `402`: `api_allowance_reached`: this month's API and AI app requests on the free plan are used up. `details` has `limit`, `used`, `resetsAt` and `upgradeUrl`. Nothing ran; WorkRoad Plus has no monthly limit.
- `403`: The API key lacks the required scope
- `404`: No note with that id is shared with this key's user, by them or by a study group, and accepted. The user's own notes are read with `GET /notes/{noteId}`.
- `405`: Method not allowed. Use a method from the Allow header.
- `429`: Rate limit exceeded. Wait for Retry-After before retrying. The rate-limit headers are absent when the key's own limiter rejected the request before the per-endpoint bucket check ran.
- `500`: Internal server error

## List study sets shared with the user

`GET https://workroad.app/api/v1/shared/sets`

Sets other people shared with the user directly and the user accepted, newest share first. Invitations waiting for an answer are `GET /shared/sets/invitations`, and sets in a study group's folder are listed by `GET /groups/{groupId}/items`.

- MCP tool: `listSharedSets` on `https://workroad.app/api/mcp`
- Required scopes: sets:view
- Test mode: `GET https://workroad.app/api/test/v1/shared/sets` checks the request and returns the example response without changing anything.
- Next: `getSharedSet` reads one with its terms.

### Response

`200` OK

- `data`: array of objects, required
  - `id`: string (uuid), required. Study set id, for `GET /shared/sets/{setId}`.
  - `name`: string, required. The set's name.
  - `cards`: integer, required. How many terms it has.
  - `sharedBy`: object, required. The set's owner.
    - `name`: string, required. Their display name.
    - `username`: string, required. Their username, as on their public profile.

#### Example

```json
{
  "data": [
    {
      "id": "7e6d5c4b-3a2f-4e1d-8c0b-9a8f7e6d5c4b",
      "name": "Enzymes",
      "cards": 24,
      "sharedBy": {
        "name": "Grace Hopper",
        "username": "grace"
      }
    }
  ]
}
```

### Errors

Every error has the body `{ "error": { "code", "message", "details" } }`.

- `400`: Invalid request body or query
- `401`: Missing, invalid, disabled or expired API key
- `402`: `api_allowance_reached`: this month's API and AI app requests on the free plan are used up. `details` has `limit`, `used`, `resetsAt` and `upgradeUrl`. Nothing ran; WorkRoad Plus has no monthly limit.
- `403`: The API key lacks the required scope
- `404`: No endpoint exists at this path.
- `405`: Method not allowed. Use a method from the Allow header.
- `429`: Rate limit exceeded. Wait for Retry-After before retrying. The rate-limit headers are absent when the key's own limiter rejected the request before the per-endpoint bucket check ran.
- `500`: Internal server error

## List study set invitations

`GET https://workroad.app/api/v1/shared/sets/invitations`

Sets other people invited the user to that the user hasn't answered yet, newest first. A set can't be read until the user accepts it, which they do in the app.

- MCP tool: `listSetInvitations` on `https://workroad.app/api/mcp`
- Required scopes: sets:view
- Test mode: `GET https://workroad.app/api/test/v1/shared/sets/invitations` checks the request and returns the example response without changing anything.

### Response

`200` OK

- `data`: array of objects, required
  - `id`: string (uuid), required. Study set id. The set can't be read until the user accepts in the app.
  - `name`: string, required. The set's name.
  - `permission`: one of `"VIEW"`, `"EDIT"`, required. What the owner granted.
  - `invitedAt`: string (date-time), required. When the invitation was sent.
  - `sharedBy`: object, required. The set's owner.
    - `name`: string, required. Their display name.
    - `username`: string, required. Their username, as on their public profile.

#### Example

```json
{
  "data": [
    {
      "id": "7e6d5c4b-3a2f-4e1d-8c0b-9a8f7e6d5c4b",
      "name": "Enzymes",
      "permission": "VIEW",
      "invitedAt": "2026-01-15T09:30:00.000Z",
      "sharedBy": {
        "name": "Grace Hopper",
        "username": "grace"
      }
    }
  ]
}
```

### Errors

Every error has the body `{ "error": { "code", "message", "details" } }`.

- `400`: Invalid request body or query
- `401`: Missing, invalid, disabled or expired API key
- `402`: `api_allowance_reached`: this month's API and AI app requests on the free plan are used up. `details` has `limit`, `used`, `resetsAt` and `upgradeUrl`. Nothing ran; WorkRoad Plus has no monthly limit.
- `403`: The API key lacks the required scope
- `404`: No endpoint exists at this path.
- `405`: Method not allowed. Use a method from the Allow header.
- `429`: Rate limit exceeded. Wait for Retry-After before retrying. The rate-limit headers are absent when the key's own limiter rejected the request before the per-endpoint bucket check ran.
- `500`: Internal server error

## Read a study set shared with the user

`GET https://workroad.app/api/v1/shared/sets/{setId}`

A set someone else owns, shared with the user directly or through a study group's folder, with every term. Read only: the user can't practise it or change it through the API. Saving their own copy happens in the app.

- MCP tool: `getSharedSet` on `https://workroad.app/api/mcp`
- Required scopes: sets:view
- Test mode: `GET https://workroad.app/api/test/v1/shared/sets/{setId}` checks the request and returns the example response without changing anything.

### Path parameters

- `setId`: string (uuid), required. Id of a set someone shared with the key's user, from `GET /shared/sets`.

### Response

`200` OK

- `data`: object, required
  - `id`: string (uuid), required. Study set id.
  - `name`: string, required. The set's name.
  - `description`: string or null, required. The set's description.
  - `terms`: array of objects, required. Every term, in the set's order.
    - `term`: string, required. The term.
    - `definition`: string, required. Its definition.
    - `hints`: array of string, required. Its hints.
  - `owner`: object, required. The set's owner.
    - `name`: string, required. Their display name.
    - `username`: string, required. Their username, as on their public profile.
  - `groupName`: string or null, required. The study group whose folder opens it to the user, if one does. Null for a direct share alone.

#### Example

```json
{
  "data": {
    "id": "7e6d5c4b-3a2f-4e1d-8c0b-9a8f7e6d5c4b",
    "name": "Enzymes",
    "description": null,
    "terms": [
      {
        "term": "Catalyst",
        "definition": "Speeds a reaction up without being used.",
        "hints": []
      }
    ],
    "owner": {
      "name": "Grace Hopper",
      "username": "grace"
    },
    "groupName": null
  }
}
```

### Errors

Every error has the body `{ "error": { "code", "message", "details" } }`.

- `400`: Invalid request body or query
- `401`: Missing, invalid, disabled or expired API key
- `402`: `api_allowance_reached`: this month's API and AI app requests on the free plan are used up. `details` has `limit`, `used`, `resetsAt` and `upgradeUrl`. Nothing ran; WorkRoad Plus has no monthly limit.
- `403`: The API key lacks the required scope
- `404`: No study set with that id is shared with this key's user, by them or by a study group, and accepted. The user's own sets are read with `GET /sets/{setId}`.
- `405`: Method not allowed. Use a method from the Allow header.
- `429`: Rate limit exceeded. Wait for Retry-After before retrying. The rate-limit headers are absent when the key's own limiter rejected the request before the per-endpoint bucket check ran.
- `500`: Internal server error

## List the user's study groups

`GET https://workroad.app/api/v1/groups`

The study groups the user owns or is a member of, newest first. A group shares a folder of notes and sets, a task list and an activity feed among its members.

- MCP tool: `listGroups` on `https://workroad.app/api/mcp`
- Required scopes: notes:view or sets:view
- Test mode: `GET https://workroad.app/api/test/v1/groups` checks the request and returns the example response without changing anything.
- Next: `getGroup` lists its members, and `listGroupItems` its folder.

### Response

`200` OK

- `data`: array of objects, required
  - `id`: string (uuid), required. Study group id.
  - `name`: string, required. The group's name.
  - `description`: string, required. The group's description. Empty when it has none.
  - `role`: one of `"owner"`, `"member"`, required. The user's role in the group.
  - `memberCount`: integer, required. How many people are in it.
  - `itemCount`: integer, required. How many notes and sets its folder holds.
  - `createdAt`: string (date-time), required. When the group was made.

#### Example

```json
{
  "data": [
    {
      "id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
      "name": "Biology revision",
      "description": "",
      "role": "member",
      "memberCount": 4,
      "itemCount": 6,
      "createdAt": "2026-01-15T09:30:00.000Z"
    }
  ]
}
```

### Errors

Every error has the body `{ "error": { "code", "message", "details" } }`.

- `400`: Invalid request body or query
- `401`: Missing, invalid, disabled or expired API key
- `402`: `api_allowance_reached`: this month's API and AI app requests on the free plan are used up. `details` has `limit`, `used`, `resetsAt` and `upgradeUrl`. Nothing ran; WorkRoad Plus has no monthly limit.
- `403`: The API key lacks the required scope
- `404`: No endpoint exists at this path.
- `405`: Method not allowed. Use a method from the Allow header.
- `429`: Rate limit exceeded. Wait for Retry-After before retrying. The rate-limit headers are absent when the key's own limiter rejected the request before the per-endpoint bucket check ran.
- `500`: Internal server error

## Get a study group

`GET https://workroad.app/api/v1/groups/{groupId}`

The group with its members, by name and username, in the order they joined. Invite links aren't returned: inviting happens in the app.

- MCP tool: `getGroup` on `https://workroad.app/api/mcp`
- Required scopes: notes:view or sets:view
- Test mode: `GET https://workroad.app/api/test/v1/groups/{groupId}` checks the request and returns the example response without changing anything.

### Path parameters

- `groupId`: string (uuid), required. Study group id, from `GET /groups`. Only the group's members can read it.

### Response

`200` OK

- `data`: object, required
  - `id`: string (uuid), required. Study group id.
  - `name`: string, required. The group's name.
  - `description`: string, required. The group's description. Empty when it has none.
  - `role`: one of `"owner"`, `"member"`, required. The user's role in the group.
  - `createdAt`: string (date-time), required. When the group was made.
  - `members`: array of objects, required. Everyone in the group, in the order they joined.
    - `name`: string, required. Their display name.
    - `username`: string, required. Their username, as on their public profile.
    - `id`: string, required. Their user id, which `assigneeId` on the group's tasks names.
    - `owner`: boolean, required. Whether they own the group.
    - `me`: boolean, required. Whether this is the key's user.
    - `joinedAt`: string (date-time), required. When they joined.

#### Example

```json
{
  "data": {
    "id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
    "name": "Biology revision",
    "description": "",
    "role": "member",
    "createdAt": "2026-01-15T09:30:00.000Z",
    "members": [
      {
        "name": "Grace Hopper",
        "username": "grace",
        "id": "u_grace",
        "owner": true,
        "me": false,
        "joinedAt": "2026-01-15T09:30:00.000Z"
      }
    ]
  }
}
```

### Errors

Every error has the body `{ "error": { "code", "message", "details" } }`.

- `400`: Invalid request body or query
- `401`: Missing, invalid, disabled or expired API key
- `402`: `api_allowance_reached`: this month's API and AI app requests on the free plan are used up. `details` has `limit`, `used`, `resetsAt` and `upgradeUrl`. Nothing ran; WorkRoad Plus has no monthly limit.
- `403`: The API key lacks the required scope
- `404`: No study group with that id has the key's user as a member.
- `405`: Method not allowed. Use a method from the Allow header.
- `429`: Rate limit exceeded. Wait for Retry-After before retrying. The rate-limit headers are absent when the key's own limiter rejected the request before the per-endpoint bucket check ran.
- `500`: Internal server error

## List a study group's folder

`GET https://workroad.app/api/v1/groups/{groupId}/items`

The notes and sets the group's members put in its folder, newest first. Notes are listed only with `notes:view` and sets only with `sets:view`. Every member can read each of them, but none can change another member's.

- MCP tool: `listGroupItems` on `https://workroad.app/api/mcp`
- Required scopes: notes:view or sets:view
- Test mode: `GET https://workroad.app/api/test/v1/groups/{groupId}/items` checks the request and returns the example response without changing anything.
- Next: `getSharedNote` or `getSharedSet` reads another member's item by its `targetId`; the user's own are `getNote` and `getSet`.

### Path parameters

- `groupId`: string (uuid), required. Study group id, from `GET /groups`. Only the group's members can read it.

### Response

`200` OK

- `data`: array of objects, required
  - `id`: string (uuid), required. The folder entry's id.
  - `kind`: one of `"note"`, `"set"`, required. A note or a study set.
  - `targetId`: string (uuid), required. The note's or set's id.
  - `title`: string, required. Its title.
  - `icon`: string or null, required. A note's emoji, if it has one.
  - `mine`: boolean, required. Whether it is the user's own. Read the user's own with `getNote` or `getSet`, and another member's with `getSharedNote` or `getSharedSet`.
  - `addedBy`: string or null, required. The name of the member who added it.
  - `addedAt`: string (date-time), required. When it was added.

#### Example

```json
{
  "data": [
    {
      "id": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
      "kind": "note",
      "targetId": "3c2b1a09-8f7e-4d6c-9b5a-4f3e2d1c0b9a",
      "title": "Krebs cycle",
      "icon": null,
      "mine": false,
      "addedBy": "Grace Hopper",
      "addedAt": "2026-01-15T09:30:00.000Z"
    }
  ]
}
```

### Errors

Every error has the body `{ "error": { "code", "message", "details" } }`.

- `400`: Invalid request body or query
- `401`: Missing, invalid, disabled or expired API key
- `402`: `api_allowance_reached`: this month's API and AI app requests on the free plan are used up. `details` has `limit`, `used`, `resetsAt` and `upgradeUrl`. Nothing ran; WorkRoad Plus has no monthly limit.
- `403`: The API key lacks the required scope
- `404`: No study group with that id has the key's user as a member.
- `405`: Method not allowed. Use a method from the Allow header.
- `429`: Rate limit exceeded. Wait for Retry-After before retrying. The rate-limit headers are absent when the key's own limiter rejected the request before the per-endpoint bucket check ran.
- `500`: Internal server error

## List a study group's tasks

`GET https://workroad.app/api/v1/groups/{groupId}/tasks`

The group's shared task list, open tasks first. These are the group's, not the user's own tasks in `GET /tasks`. Adding and ticking them off happens in the app.

- MCP tool: `listGroupTasks` on `https://workroad.app/api/mcp`
- Required scopes: tasks:view; notes:view or sets:view
- Test mode: `GET https://workroad.app/api/test/v1/groups/{groupId}/tasks` checks the request and returns the example response without changing anything.

### Path parameters

- `groupId`: string (uuid), required. Study group id, from `GET /groups`. Only the group's members can read it.

### Response

`200` OK

- `data`: array of objects, required
  - `id`: string (uuid), required. Group task id.
  - `title`: string, required. What to do.
  - `dueDay`: string or null, required. The day it is due, as `YYYY-MM-DD`.
  - `assigneeId`: string or null, required. The member it is assigned to, by the `id` in the group's `members`.
  - `createdById`: string or null, required. The member who added it, by the `id` in the group's `members`.
  - `doneAt`: string (date-time) or null, required. When it was ticked off. Null while open.
  - `createdAt`: string (date-time), required. When it was added.

#### Example

```json
{
  "data": [
    {
      "id": "4d5e6f7a-8b9c-4d0e-9f1a-2b3c4d5e6f7a",
      "title": "Summarise chapter 3",
      "dueDay": "2026-01-20",
      "assigneeId": "u_grace",
      "createdById": "u_grace",
      "doneAt": null,
      "createdAt": "2026-01-15T09:30:00.000Z"
    }
  ]
}
```

### Errors

Every error has the body `{ "error": { "code", "message", "details" } }`.

- `400`: Invalid request body or query
- `401`: Missing, invalid, disabled or expired API key
- `402`: `api_allowance_reached`: this month's API and AI app requests on the free plan are used up. `details` has `limit`, `used`, `resetsAt` and `upgradeUrl`. Nothing ran; WorkRoad Plus has no monthly limit.
- `403`: The API key lacks the required scope
- `404`: No study group with that id has the key's user as a member.
- `405`: Method not allowed. Use a method from the Allow header.
- `429`: Rate limit exceeded. Wait for Retry-After before retrying. The rate-limit headers are absent when the key's own limiter rejected the request before the per-endpoint bucket check ran.
- `500`: Internal server error

## List a study group's activity

`GET https://workroad.app/api/v1/groups/{groupId}/activity`

What happened in the group, newest first, 30 entries a page: who joined or left, what was added to its folder, which tasks were added and ticked off. It names notes, sets and tasks, so it needs `notes:view`, `sets:view` and `tasks:view`.

- MCP tool: `listGroupActivity` on `https://workroad.app/api/mcp`
- Required scopes: notes:view and sets:view and tasks:view
- Test mode: `GET https://workroad.app/api/test/v1/groups/{groupId}/activity` checks the request and returns the example response without changing anything.

### Path parameters

- `groupId`: string (uuid), required. Study group id, from `GET /groups`. Only the group's members can read it.

### Query parameters

- `cursor`: string or null, up to 512 characters. Opaque. Pass `nextCursor` from the previous page unchanged.

### Response

`200` OK

- `data`: array of objects, required
  - `id`: string (uuid), required. Activity entry id.
  - `kind`: one of `"GROUP_CREATED"`, `"GROUP_RENAMED"`, `"MEMBER_JOINED"`, `"MEMBER_LEFT"`, `"MEMBER_REMOVED"`, `"NOTE_ADDED"`, `"SET_ADDED"`, `"ITEM_REMOVED"`, `"TASK_ADDED"`, `"TASK_DONE"`, `"TASK_REOPENED"`, `"TASK_DELETED"`, required. What happened, such as `MEMBER_JOINED`, `NOTE_ADDED` or `TASK_DONE`.
  - `title`: string, required. The note, set or task it is about. Empty when none.
  - `actorName`: string or null, required. The name of the member who did it. Null when it was nobody or they left.
  - `createdAt`: string (date-time), required. When it happened.
- `nextCursor`: string or null, required. Opaque. Pass as `?cursor=` unchanged to fetch the next page. `null` on the last page.

#### Example

```json
{
  "data": [
    {
      "id": "5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b",
      "kind": "NOTE_ADDED",
      "title": "Krebs cycle",
      "actorName": "Grace Hopper",
      "createdAt": "2026-01-15T09:30:00.000Z"
    }
  ],
  "nextCursor": null
}
```

### Errors

Every error has the body `{ "error": { "code", "message", "details" } }`.

- `400`: Invalid request body or query
- `401`: Missing, invalid, disabled or expired API key
- `402`: `api_allowance_reached`: this month's API and AI app requests on the free plan are used up. `details` has `limit`, `used`, `resetsAt` and `upgradeUrl`. Nothing ran; WorkRoad Plus has no monthly limit.
- `403`: The API key lacks the required scope
- `404`: No study group with that id has the key's user as a member.
- `405`: Method not allowed. Use a method from the Allow header.
- `429`: Rate limit exceeded. Wait for Retry-After before retrying. The rate-limit headers are absent when the key's own limiter rejected the request before the per-endpoint bucket check ran.
- `500`: Internal server error

## Read the leaderboards

`GET https://workroad.app/api/v1/leaderboards`

Everyone's tasks completed and current study streaks, top 50 each, as the leaderboards page shows them. `me` marks the user, who isn't listed while hidden (`optedOut`). The tasks board needs `tasks:view` and the streaks board `activity:view`; each is null without its scope.

- MCP tool: `getLeaderboards` on `https://workroad.app/api/mcp`
- Required scopes: tasks:view or activity:view
- Test mode: `GET https://workroad.app/api/test/v1/leaderboards` checks the request and returns the example response without changing anything.

### Response

`200` OK

- `data`: object, required
  - `tasks`: array of objects or null, required. Everyone by tasks completed, top 50. Null without `tasks:view`. People who left the leaderboards aren't on it.
    - `rank`: integer, required. Their place, from 1.
    - `name`: string, required. Their display name.
    - `username`: string, required. Their username, as on their public profile.
    - `imageUrl`: string or null, required. Their profile picture, if they have one.
    - `score`: integer, required. Tasks completed, or days in the current streak.
    - `me`: boolean, required. Whether this is the key's user.
  - `streaks`: array of objects or null, required. Everyone by their current study streak in days, top 50. Null without `activity:view`.
    - `rank`: integer, required. Their place, from 1.
    - `name`: string, required. Their display name.
    - `username`: string, required. Their username, as on their public profile.
    - `imageUrl`: string or null, required. Their profile picture, if they have one.
    - `score`: integer, required. Tasks completed, or days in the current streak.
    - `me`: boolean, required. Whether this is the key's user.
  - `optedOut`: boolean, required. Whether the user hid themselves from the leaderboards in their settings.

#### Example

```json
{
  "data": {
    "tasks": [
      {
        "rank": 1,
        "name": "Grace Hopper",
        "username": "grace",
        "imageUrl": null,
        "score": 42,
        "me": false
      }
    ],
    "streaks": null,
    "optedOut": false
  }
}
```

### Errors

Every error has the body `{ "error": { "code", "message", "details" } }`.

- `400`: Invalid request body or query
- `401`: Missing, invalid, disabled or expired API key
- `402`: `api_allowance_reached`: this month's API and AI app requests on the free plan are used up. `details` has `limit`, `used`, `resetsAt` and `upgradeUrl`. Nothing ran; WorkRoad Plus has no monthly limit.
- `403`: The API key lacks the required scope
- `404`: No endpoint exists at this path.
- `405`: Method not allowed. Use a method from the Allow header.
- `429`: Rate limit exceeded. Wait for Retry-After before retrying. The rate-limit headers are absent when the key's own limiter rejected the request before the per-endpoint bucket check ran.
- `500`: Internal server error
