API SpecificationPRIVATEAccounts
Get Account
Retrieves the full account details for the authenticated user, including connected external accounts and application enrollments.
Required scopes: private
Authorization
BearerAuth AuthorizationBearer <token>
JWT access token for internal API access. Requires 'private' scope for most endpoints, 'admin' scope for administrative operations.
In: header
Header Parameters
Connect-Protocol-Version*number
Define the version of the Connect protocol
Value in
1Connect-Timeout-Ms?number
Define the timeout, in ms
Request Body
application/json
[key: string]?never
Response Body
application/json
application/json
curl -X POST "https://auth.xeonr.io/xeonr.auth.private.v1.AccountService/GetAccount" \ -H "Connect-Protocol-Version: 1" \ -H "Content-Type: application/json" \ -d '{}'{
"account": {
"id": "usr_a1b2c3d4e5f6",
"username": "johndoe",
"email": "[email protected]",
"connections": [
{
"type": "ACCOUNT_CONNECTION_TYPE_UNSPECIFIED",
"username": "johndoe_github",
"createdAt": "2023-01-15T01:30:15.01Z",
"externalId": "12345678"
}
],
"createdAt": "2023-01-15T01:30:15.01Z",
"updatedAt": "2023-01-15T01:30:15.01Z",
"status": "ACCOUNT_STATUS_UNSPECIFIED",
"isAdmin": true
},
"enrollments": [
{
"application": {
"applicationId": "app_prod_myapp",
"name": "My Application",
"slug": "my-application",
"websiteUrl": "app.example.com",
"enabledIdps": [
"github",
"discord"
]
},
"enrolledAt": "2023-01-15T01:30:15.01Z"
}
]
}{
"code": "not_found",
"message": "string",
"details": [
{
"type": "string",
"value": "string",
"debug": {}
}
]
}