---
title: "Get a single group (team) by id"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.cloudraker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a single group (team) by id

Path: CloudRaker Workspace API › Authorization

`GET /authorization/groups/{groupId}`

Fetches one team by its `groupId` path parameter. Authorization: any authenticated organization member. Returns the group.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `groupId` (`getGroup.path.groupId`; string, required)

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.cloudraker.com/authorization/groups/<groupId>' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/authorization/groups/<groupId>';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/authorization/groups/<groupId>"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

The requested group.

#### Example

```json
{
  "id": "string",
  "organizationId": "string",
  "name": "Legal",
  "description": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z"
}
```

- `id` (`getGroup.response.200.id`; string, required)
- `organizationId` (`getGroup.response.200.organizationId`; string, required)
- `name` (`getGroup.response.200.name`; string, required)
  - example `"Legal"`
- `description` (`getGroup.response.200.description`; string | null, required)
- `createdAt` (`getGroup.response.200.createdAt`; string, required)
  - format `date-time`; pattern `^(?:(?:\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))$`
- `updatedAt` (`getGroup.response.200.updatedAt`; string, required)
  - format `date-time`; pattern `^(?:(?:\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))$`


Source: https://docs.cloudraker.com/workspace/api/authorization/get-group/index.md
