Skip to main content
GET
/
users
/
{userId}
Get a user
curl --request GET \
  --url https://api.phare.io/users/{userId} \
  --header 'Authorization: Bearer <token>'
{
  "id": 1,
  "role": "member",
  "email": "nicolas@phare.io",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}
All users in the organization can be viewed by project-scoped API keys

Authorizations

Authorization
string
header
required

Use a user token to access authenticated routes. The token must be specified in the Authorization HTTP header with the following format 'Authorization: Bearer '.

Headers

X-Phare-Project-Id
integer

A project header is required when using an organization-scoped API key.

Example:

1

X-Phare-Project-Slug
string

A project header is required when using an organization-scoped API key.

Example:

"luminous-guiding-tower"

Path Parameters

userId
integer
required

ID of the user to show

Response

Success, user retrieved

id
number

User ID

Example:

1

role
enum<string>
Available options:
member,
admin
email
string

User email

Example:

"nicolas@phare.io"

created_at
string<date-time>

Date of creation for the entity

updated_at
string<date-time>

Date of last update for the entity