GET
/
admin
/
users
/
{userId}
curl --request GET \
  --url https://api.portkey.ai/v1/admin/users/{userId} \
  --header 'x-portkey-api-key: <api-key>'
{
  "object": "user",
  "id": "61e08f60-4822-465e-ba23-39f85cd741cb",
  "first_name": "horace",
  "last_name": "slughorn",
  "role": "member",
  "email": "[email protected]",
  "created_at": "2024-01-25 11:35:07",
  "last_updated_at": "2024-01-25 11:35:07",
  "workspace_ids": [
    "ws-shared-123"
  ]
}

Authorizations

x-portkey-api-key
string
header
required

Path Parameters

userId
string
required

Response

200 - application/json
OK
object
enum<string>
Available options:
user
id
string
first_name
string
last_name
string
role
enum<string>
Available options:
admin,
member,
owner
email
string
created_at
string
last_updated_at
string
workspace_ids
string[]