Accounts

Get the account the API key belongs to

Returns the same document as GET /v1/accounts/{id}, resolving the account from the API key so no id is needed, plus caller: the calling key's mode and, for an OAuth connection, the client it was granted to.

Requires account:r.

get/v1/accounts/me

Request

  • Base URL: https://api.honkio.ca
  • URL: https://api.honkio.ca/v1/accounts/me
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-Key

Response

The account the API key belongs to, and who is calling.

Example response

{
  "api_keys": [
    {
      "permissions": {
        "messages": "rw",
        "contacts": "r",
        "phone_numbers": "r"
      }
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.