Skip to main content

Create Team

POST /teams

Request Body

{
  "name": "Finance Team",
  "organization_id": 1,
  "settings": {
    "notifications_enabled": true
  }
}

Response

{
  "id": 1,
  "name": "Finance Team",
  "organization_id": 1,
  "settings": {
    "notifications_enabled": true
  },
  "created_at": "2024-01-01T12:00:00Z"
}

Example

import httpx

async with httpx.AsyncClient() as client:
    response = await client.post(
        "https://api.humancheck.dev/reviews",
        headers={
            "Authorization": "Bearer your-api-key-here",
            "Content-Type": "application/json"
        },
        json={
            "name": "Finance Team",
            "organization_id": 1,
            "settings": {
                "notifications_enabled": True
            }
        }
    )
    team = response.json()