Skip to the page
Chapters

Account

Get the current API key

GET/api/v1/me

Returns the API key making the request (its name, mode and permissions) and the organization it belongs to. A quick way to check that a key works and what it may do.

Needs a key with read permission.

Request

This request takes no parameters and no body.

Response

The key and its organization. Status 200.

Response fields
NameTypeDescription
idstringAn ID that starts with key_.
objectstringAlways `api_key`.
namestring
modestringOne of: `test`, `live`.
permissionsarray of stringEach item is one of: `read`, `submit`.
organizationobject
organization.idstringAn ID that starts with org_.
organization.objectstringAlways `organization`.
organization.namestring

Errors

Errors
HTTP statusCodeWhat it means
401UNAUTHORIZEDA valid API key is required. Send it as "Authorization: Bearer <key>".
403PERMISSION_DENIEDThis API key is not allowed to do that.
422INVALID_REQUESTThe request is not valid.
504TIMEOUTThe request took too long to finish. It may still have taken effect: look it up before sending it again with a new Idempotency-Key. What it made is found with GET /api/v1/eligibility?request_id=<this request_id>, and the same filter on /api/v1/claims and /api/v1/attachments (a key with read permission).
500INTERNALSomething went wrong on our side. Quote the request ID if you contact us.

Example

Example request

Shell
curl "https://sandbox.myclaimhouse.com/api/v1/me" \
  -H "Authorization: Bearer $CLAIMHOUSE_KEY"

Example response: 200

JSON
{
  "id": "key_01JM000000E008000000000002",
  "object": "api_key",
  "name": "Example integration (test)",
  "mode": "test",
  "permissions": [
    "read",
    "submit"
  ],
  "organization": {
    "id": "org_01JM000000E008000000000001",
    "object": "organization",
    "name": "Example Dental Group"
  }
}