GET
/
users
/
{user_id}
curl --request GET \
  --url https://app.getcensus.com/api/v1/users/{user_id} \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "created_at": "2023-08-20T10:00:00Z",
    "email": "john.doe@example.com",
    "id": "12345",
    "role": "admin"
  },
  "status": "success"
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

user_id
integer
required

ID of the user

Response

200 - application/json
data
object
required
status
enum<string>
required

The outcome of the fetch request

Available options:
success