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": "horace.slughorn@example.com",
"created_at": "2024-01-25 11:35:07",
"last_updated_at": "2024-01-25 11:35:07",
"workspace_ids": [
"ws-shared-123"
]
}
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": "horace.slughorn@example.com",
"created_at": "2024-01-25 11:35:07",
"last_updated_at": "2024-01-25 11:35:07",
"workspace_ids": [
"ws-shared-123"
]
}
OK
The response is of type object
.
Was this page helpful?