레퍼런스HTTP APITeams

A team and its members

GET
/v1/teams/{team_id}

An owner or an admin reads any team. Anyone else reads only a team they are in now, read only: changing it stays with owners and admins. Any other team is 403.

Auth: cookie session only; no scope.

Authorization

cookieSession
cookie__Host-werft_session<token>

For the web console: the browser session cookie set by POST /v1/auth/login. It holds the scopes of the user's workspace role (owner: all; admin and member: all but sessions:recover). Requests other than GET must also send X-Requested-With: werft-web.

Path Parameters

team_id*string

The team's id.

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Response Body

The team and the people in it now.

application/json
  1. response
id*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
workspace_id*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
name*string
Length1 <= length <= 100
member_count*integer
Range0 <= value <= 9007199254740991
created_by*|null
created_at*string
Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
Formatdate-time
revision*integer
Range0 < value <= 9007199254740991
members*array<>
Example Request
curl -X GET 'https://example.com/v1/teams/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "id": "019a0000-0000-7000-8000-00000000b0a1",  "workspace_id": "9d2c4e61-8a3b-4f70-b1e5-6c0a7d3f2b98",  "name": "research admins",  "member_count": 2,  "created_by": "3e7f1a90-5c2d-4b8e-8f61-2a9d0c4b7e35",  "created_at": "2026-10-23T09:00:00Z",  "revision": 3,  "members": [    {      "user_id": "3e7f1a90-5c2d-4b8e-8f61-2a9d0c4b7e35",      "email": "ada@example.com",      "display_name": "Ada Owner",      "role": "lead",      "added_by": "3e7f1a90-5c2d-4b8e-8f61-2a9d0c4b7e35",      "added_at": "2026-10-23T09:00:00Z",      "disabled_at": null    },    {      "user_id": "5b9e2d7c-1a4f-4c3b-9e8d-7f6a5b4c3d21",      "email": "grace@example.com",      "display_name": null,      "role": "member",      "added_by": "3e7f1a90-5c2d-4b8e-8f61-2a9d0c4b7e35",      "added_at": "2026-10-24T09:00:00Z",      "disabled_at": "2026-10-25T09:00:00Z"    }  ]}