/api/whoamiIdentify the organization behind this key
Resolves the credential to exactly one organization; call it first to learn the org_id every org-scoped route needs. An organization API key always resolves; a credential that spans several organizations gets a 409 naming the fix.
認証: AuthorizationヘッダーにBearer形式のAPIキー
レスポンス
200The organization and identity binding of this credential.
レスポンス
org_idstring必須The organization this credential acts for.
org_slugstring必須org_namestring必須identity_idstring | null必須The identity this key is bound to, when it is an identity-scoped key.
customer_plan_identity_idstring | null必須The end-customer plan identity this key is bound to, when it is a customer-plan key.
is_provisioningboolean必須True for a provisioning key, which may manage keys, identities and budgets.
401Missing, unknown or revoked API key.
レスポンス
errorstring必須Human-readable message.
codestringStable machine reason, when the route defines one (for example
pro_required).actionstringStable remediation action, when the route defines one.
detailsobjectCustomer-safe string facts the caller needs to act (for example a suggested identifier).
404The resource does not exist or belongs to another organization.
レスポンス
errorstring必須Human-readable message.
codestringStable machine reason, when the route defines one (for example
pro_required).actionstringStable remediation action, when the route defines one.
detailsobjectCustomer-safe string facts the caller needs to act (for example a suggested identifier).
409The credential acts across several organizations, so there is no single answer.
レスポンス
errorstring必須Human-readable message.
codestringStable machine reason, when the route defines one (for example
pro_required).actionstringStable remediation action, when the route defines one.
detailsobjectCustomer-safe string facts the caller needs to act (for example a suggested identifier).
リクエスト
curl https://api.experientiallabs.ai/api/whoami \
-H "Authorization: Bearer YOUR_API_KEY"レスポンス
{
"org_id": "3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10",
"org_slug": "acme",
"org_name": "Acme",
"identity_id": null,
"customer_plan_identity_id": null,
"is_provisioning": false
}https://api.experientiallabs.ai/api/whoami