Skip to content
Skip to Content
Coder Docs

Get users

GET
/api/v2/users

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Query Parameters

q?string

Search query

after_id?string

After ID

Formatuuid
limit?integer

Page limit

offset?integer

Page offset

Response Body

OK

application/json
  1. response
count?integer
users?array<>

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X GET \	"$CODER_URL/api/v2/users" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
{  "count": 0,  "users": [    {      "avatar_url": "http://example.com",      "created_at": "2019-08-24T14:15:22Z",      "email": "[email protected]",      "has_ai_seat": true,      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "is_service_account": true,      "last_seen_at": "2019-08-24T14:15:22Z",      "login_type": "",      "name": "string",      "organization_ids": [        "7d4232d7-54a0-4c93-9c1e-a8fd2dfcdabe"      ],      "roles": [        {          "display_name": "string",          "name": "string",          "organization_id": "string"        }      ],      "status": "active",      "theme_preference": "string",      "updated_at": "2019-08-24T14:15:22Z",      "username": "string"    }  ]}