crews.list

The shop's crews and their current workers. Any worker in the shop can read it. Archived crews only with include_archived.

WhoAgents can call this
RESTGET /v1/crews
MCP toolcrews_list
Writesno
AreaShop

When to use it

The shop's crews and their current workers. Any worker in the shop can read it.

What to tell the owner

Tell them what you found in plain words. Don't read back raw fields.

Input

FieldTypeRequired
shop_idstring (uuid)yes
include_archivedbooleanno

Example

GET https://doingwork.work/v1/crews?shop_id=00000000-0000-4000-8000-000000000000

Output

FieldTypeAlways there
crewsarrayyes
crews[].crew_idstring (uuid)yes
crews[].namestringyes
crews[].person_idsarrayyes
crews[].archivedbooleanyes
{
  "crews": [
    {
      "crew_id": "00000000-0000-4000-8000-000000000000",
      "name": "Ruiz Plumbing",
      "person_ids": [
        "00000000-0000-4000-8000-000000000000"
      ],
      "archived": true
    }
  ]
}

Errors

CodeStatusWhat to do
invalid_input, invalid_token, rate_limitedCan happen on any call. See errors.