Docs Blog Sign in

Teams

Teams allow you to organize users into groups and manage permissions at a team level. This is useful for large organizations where different teams need access to different resources.

The team object

Attributes

AttributeTypeDescription
idstringUnique identifier for the team
namestringTeam name
descriptionstringOptional team description
member_countintegerNumber of users in the team
created_attimestampWhen the team was created
updated_attimestampWhen the team was last updated

Example object

{
  "id": "team_1234567890",
  "name": "Engineering",
  "description": "Product development team",
  "member_count": 15,
  "created_at": "2025-01-15T10:30:00Z",
  "updated_at": "2025-10-20T14:20:00Z"
}

List all teams

GET /playbook/api/v1/teams

Query parameters

ParameterTypeDescription
limitintegerNumber of teams to return (1-100)
cursorstringPagination cursor
searchstringSearch by team name

Example request

curl "https://app.airclou.com/playbook/api/v1/teams" \
  -H "Authorization: Bearer YOUR_API_KEY"

Example response

{
  "data": [
    {
      "id": "team_1234567890",
      "name": "Engineering",
      "description": "Product development team",
      "member_count": 15,
      "created_at": "2025-01-15T10:30:00Z"
    }
  ],
  "pagination": {
    "next_cursor": null,
    "has_more": false,
    "total_count": 1
  }
}

Create a team

POST /playbook/api/v1/teams

Request body

FieldTypeRequiredDescription
namestringYesTeam name
descriptionstringNoTeam description

Example request

curl -X POST "https://app.airclou.com/playbook/api/v1/teams" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Marketing",
    "description": "Marketing and growth team"
  }'

Add a user to a team

POST /playbook/api/v1/teams/{team_id}/members

Request body

FieldTypeRequiredDescription
user_idstringYesID of the user to add

Example request

curl -X POST "https://app.airclou.com/playbook/api/v1/teams/team_1234567890/members" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "user_id": "usr_1234567890"
  }'

Remove a user from a team

DELETE /playbook/api/v1/teams/{team_id}/members/{user_id}

Example request

curl -X DELETE "https://app.airclou.com/playbook/api/v1/teams/team_1234567890/members/usr_1234567890" \
  -H "Authorization: Bearer YOUR_API_KEY"