API Reference
Virtual Keys
Prompts
- POSTCreate Prompt
- GETList Prompts
- GETRetrieve Prompt
- PUTUpdate Prompt
- DELDelete Prompt
- PUTPublish Prompt
- GETList Prompt Versions
- GETRetrieve Prompt Version
- PUTUpdate Prompt Version
- Prompt Partials
- Prompt Labels
- Prompt Collections
API Keys
Analytics [BETA]
- Summary
- Groups Paginated Data
- Graphs - Time Series Data
User Invites
Workspaces
Workspace Members
Audit Logs
OpenAPI
Retrieve a user
GET
/
admin
/
users
/
{userId}
curl --request GET \
--url https://api.portkey.ai/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
Path Parameters
Response
200 - application/json
OK
The response is of type object
.
Was this page helpful?
curl --request GET \
--url https://api.portkey.ai/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"
]
}