Skip to content

API reference

Account

Inspect the account and API key behind a request.

Download OpenAPI

Retrieve the current account#

GET/v1/meAny valid API key

Returns 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

GET/v1/me
curl https://api.omnimessage.co/v1/me \
  -H "Authorization: Bearer om_live_xxxxxxxxxxxxxxxxxxxxxxxx"
Response · 200
{
  "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"
  ]
}

    Loading