Access
Preview

Get a team

GET
/teams/{teamId}
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

teamId*string

Response Body

The team.

application/json
  1. response
id*string
name*string
memberCount*integer
Formatint64
createdAt*string
Formatdate-time
owners*array<string>

User ids of the team's owners, oldest first.

leads*array<string>

User ids of the team's leads, oldest first.

groups*array<>
Example Request
curl -X GET 'https://wardn.example.com/api/v1/teams/string'
Example Response
{  "id": "string",  "name": "string",  "memberCount": 0,  "createdAt": "2019-08-24T14:15:22Z",  "owners": [    "string"  ],  "leads": [    "string"  ],  "groups": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string"    }  ]}