API-REFERENZ
Credential-Identität abrufen
Prüfen Sie Firma, Berechtigungen und Scopes Ihres Nachweises.
Auf dieser Seite
GET
/api/auth/public/v1/whoamiSo nutzt du diesen Endpunkt
Authentifizierung
X-Karwa-App-Key: <APP_KEY>
Authorization: Bearer <SECRET_KEY>Parameter
Anfragetext
Anfragebeispiel
curl --fail-with-body "$KARWA_API_BASE/whoami" \
-H "X-Karwa-App-Key: $KARWA_APP_KEY" \
-H "Authorization: Bearer $KARWA_SECRET_KEY"Antwort
organization_idErforderlichcompany_nameErforderlichkey_idErforderlichpurposeErforderlichpermissionsErforderlichscopes
{
"organization_id": 1,
"company_name": "Example Company",
"key_id": 1,
"purpose": "both",
"permissions": [
"read",
"write"
],
"scopes": [
"jobs:read",
"applications:write"
]
}Fehler & Recovery
- 401
- 403
- 404
- 422
- 429
{
"detail": "Invalid API key"
}