Skip to the page

Search the titles, headings and text of every guide and API reference 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
    organization.practice_groups_enabledbooleanWhether practice groups are enabled for the organization (Claim House turns them on on request). Read-only.

    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.
    429TOO_MANY_REQUESTSToo many requests of this kind lately. Wait, then try again.
    504TIMEOUTThe request took too long. Send it again with the same Idempotency-Key and body after Retry-After seconds: a 409 means it is still finishing (wait and send again), and any other answer is final. If this 504 comes back, find what the request made by listing with ?idempotency_key=<the key>.
    500INTERNALSomething went wrong on our side. Quote the request ID if you contact us.

    Example

    Example request

    Shell
    curl "https://app.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",
        "practice_groups_enabled": true
      }
    }