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.
| Name | Type | Description |
|---|---|---|
| id | string | An ID that starts with key_. |
| object | string | Always `api_key`. |
| name | string | |
| mode | string | One of: `test`, `live`. |
| permissions | array of string | Each item is one of: `read`, `submit`. |
| organization | object | |
| organization.id | string | An ID that starts with org_. |
| organization.object | string | Always `organization`. |
| organization.name | string | |
| organization.practice_groups_enabled | boolean | Whether practice groups are enabled for the organization (Claim House turns them on on request). Read-only. |
Errors
| HTTP status | Code | What it means |
|---|---|---|
| 401 | UNAUTHORIZED | A valid API key is required. Send it as "Authorization: Bearer <key>". |
| 403 | PERMISSION_DENIED | This API key is not allowed to do that. |
| 422 | INVALID_REQUEST | The request is not valid. |
| 429 | TOO_MANY_REQUESTS | Too many requests of this kind lately. Wait, then try again. |
| 504 | TIMEOUT | The 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>. |
| 500 | INTERNAL | Something went wrong on our side. Quote the request ID if you contact us. |
Example
Example request
curl "https://app.myclaimhouse.com/api/v1/me" \
-H "Authorization: Bearer $CLAIMHOUSE_KEY"Example response: 200
{
"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
}
}