Skip to main content

Create User

POST /users

Request Body

{
  "email": "reviewer@acme.com",
  "name": "Alice Smith",
  "role": "reviewer",
  "organization_id": 1
}

Response

{
  "id": 1,
  "email": "reviewer@acme.com",
  "name": "Alice Smith",
  "role": "reviewer",
  "organization_id": 1,
  "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={
            "email": "reviewer@acme.com",
            "name": "Alice Smith",
            "role": "reviewer",
            "organization_id": 1
        }
    )
    user = response.json()