API REFERENCE
Retrieve credential identity
Check which company, permissions and scopes belong to your credential.
On this page
GET
/api/auth/public/v1/whoamiHow to use this endpoint
Authentication
X-Karwa-App-Key: <APP_KEY>
Authorization: Bearer <SECRET_KEY>Parameters
Request body
Request example
curl --fail-with-body "$KARWA_API_BASE/whoami" \
-H "X-Karwa-App-Key: $KARWA_APP_KEY" \
-H "Authorization: Bearer $KARWA_SECRET_KEY"Response
organization_idRequiredcompany_nameRequiredkey_idRequiredpurposeRequiredpermissionsRequiredscopes
{
"organization_id": 1,
"company_name": "Example Company",
"key_id": 1,
"purpose": "both",
"permissions": [
"read",
"write"
],
"scopes": [
"jobs:read",
"applications:write"
]
}Errors and recovery
- 401
- 403
- 404
- 422
- 429
{
"detail": "Invalid API key"
}