API key context

Use GET /v1/me to verify which account, organization, and mode are attached to the developer API key presented in Authorization.

GET/v1/me

Check key context

This endpoint uses developer API-key auth.

Request
curl "https://api-sandbox.emfakt.com/v1/me" \  -H "Authorization: Bearer <YOUR_API_KEY>"
Test API key context
{  "account_id": "acct_Eu81D5X8m1py2TXdWR5fNg",  "organization_id": "org_2kCYq4m4G7YbUjvH0kC1dg",  "api_key": {    "id": "key_3hpj56bnjJm2QXxN1a9oqw",    "mode": "test",    "status": "active",    "display_suffix": "ylOIkvW6Q"  }}

Response fields

  • account_idstring

    Public account ID resolved from the API key.

  • organization_idstring

    Public organization ID attached to the API key.

  • api_key.idstring

    Public API-key resource ID. This is not the raw secret.

  • api_key.modetest | live

    API-key mode.

  • api_key.statusactive

    Current key status for this diagnostic response.

  • api_key.display_suffixstring

    Final characters of the raw secret for display only.