API reference
Account
Inspect the account and API key behind a request.
Download OpenAPIRetrieve the current account#
GET
/v1/meAny valid API keyReturns the account, mode and API key behind the request, and the capabilities of the API for this account. Any valid key can call it, whatever its scopes, which makes it the simplest way to check that a key works. Integrations check capabilities instead of probing endpoints.
Responses
- 200
The account and key. Account object.
- 401
The API key is missing, invalid, revoked or expired.
api_key_missingapi_key_invalidapi_key_revokedapi_key_expired
- 403
The API key is not allowed to make this request.
- 429
Too many requests. Wait for
Retry-Afterseconds. - 500
Unexpected error on our side. Safe to retry with the same
Idempotency-Key.
GET
/v1/mecurl https://api.omnimessage.co/v1/me \
-H "Authorization: Bearer om_live_xxxxxxxxxxxxxxxxxxxxxxxx"{
"object": "account",
"id": "acc_8nM3bV6cX9zL2kJ5hG1f",
"name": "Acme Logistics",
"mode": "live",
"api_key": {
"id": "key_1qW4eR7tY0uI3oP6aS9d",
"name": "Production backend",
"scopes": [
"messages:write",
"messages:read",
"channels:read"
]
},
"capabilities": [
"automation_events",
"webhook_filters",
"test_inbound",
"events_feed"
]
}