AuthSessionStateResponse
0data objectrequired
principal object
Possible values: [admin_key, admin_session, user_session, api_key]
Possible values: [system.admin, users.read, users.manage, roles.read, roles.manage, api_keys.manage_self, api_keys.manage_all, projects.create, projects.read_public, projects.read_all, projects.manage_own, projects.manage_all, projects.delete, projects.upload, projects.publish, projects.download_source, runs.create, runs.read_own, runs.read_project, runs.cancel, env.manage, kv.read, knowledge.manage, embed.manage, webhook.manage, run_queue.manage, schedule.manage, terminal.use, audit.read, audit.export]
The current API Key expiration. A successfully authenticated Desktop Key uses sliding renewal.
The API Key plaintext returned when a non-Web client requests source=desktop or source=cli; it is returned only once.
apiKey object
user object
{
"errCode": 0,
"errMessage": "string",
"data": {
"authenticated": true,
"principal": {
"kind": "admin_key",
"userId": "string",
"displayName": "string",
"email": "user@example.com",
"permissions": [
"system.admin"
],
"apiKeyId": "string",
"expiresAt": "2024-07-29T15:51:28.071Z",
"roleNames": [
"string"
]
},
"accessToken": "string",
"apiKey": {
"id": "string",
"userId": "string",
"name": "string",
"prefix": "string",
"source": "string",
"scopes": [
"string"
],
"createdByUserId": "string",
"createdAt": "2024-07-29T15:51:28.071Z",
"expiresAt": "2024-07-29T15:51:28.071Z",
"revokedAt": "2024-07-29T15:51:28.071Z",
"lastUsedAt": "2024-07-29T15:51:28.071Z",
"lastUsedIp": "string",
"userAgent": "string"
},
"user": {
"userId": "string",
"email": "user@example.com",
"displayName": "string"
},
"expiresAt": "2024-07-29T15:51:28.071Z"
}
}