agentlyleads docs
Team API

GET /api/v1/team

Returns every user in the workspace, oldest first. Requires the read:team scope (or * for full access).

Use it to map your own user records to agentlyleads user IDs, or to find a manager before assigning work. The Team API is read-only: invites, role changes and deactivation stay in the app, where an owner is signed in.

Request

GET /api/v1/team?active=true HTTP/1.1
Host: agentlyleads.com
Authorization: Bearer alk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Query parameters

ParameterRequiredDescription
activeNotrue for active users only, false for deactivated users only. Omit for everyone

Response: 200

{
  "users": [
    {
      "id": "cmq1user0alk34567890",
      "name": "Dana Ortiz",
      "email": "dana@example.com",
      "role": "OWNER",
      "active": true,
      "manager": null,
      "createdAt": "2026-06-01T10:00:00.000Z"
    },
    {
      "id": "cmq1user1alk34567891",
      "name": "Sam Lee",
      "email": "sam@example.com",
      "role": "MEMBER",
      "active": true,
      "manager": { "id": "cmq1user0alk34567890", "name": "Dana Ortiz" },
      "createdAt": "2026-07-12T09:30:00.000Z"
    }
  ]
}
FieldTypeNotes
idstringThe user ID
namestringDisplay name
emailstringLogin email
rolestringOWNER or MEMBER
activebooleanfalse once an owner deactivates the user
managerobject or null{ id, name } of the person they report to
createdAtstring (ISO 8601)When the user joined

Password hashes, sessions and tokens are never returned.

Errors

StatusWhen
400active is something other than true or false
401Missing, invalid, expired or revoked API key
403The key lacks read:team
429Rate limit exceeded (120 requests per minute per key)

On this page