Check key and environment
All field references · General
GET /v1/ping
Confirms that the key is valid and returns the organization, environment and enabled scopes. The first call of every connection: it tells you in one line whether you are using the right key and the right environment. Requires no specific scope.
Required scopes: No operation-specific scope.
#Request body
No request body is defined for this operation.
#Response 200
200: Success
Content type: application/json
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | object | Whole value | Not allowed | — |
| data | object | Required when parent is present | Not allowed | Authorized response payload or documented event data. |
| data.organization | object | Required when parent is present | Not allowed | Organization associated with the authenticated API key. |
| data.organization.name | string | Required when parent is present | Not allowed | Name of the organization Example: "Sample Workshop". |
| data.environment | string | Required when parent is present | Not allowed | test = calls never trigger real production. Also visible in the key itself. enum: ["live","test"]. |
| data.scopes | array | Required when parent is present | Not allowed | Scopes this key has. |
| data.scopes[] | string | Every array item | Not allowed | — |
| data.key_prefix | string | Required when parent is present | Not allowed | Visible prefix of the key used — to match it against the list in the dashboard. Example: "mk_live_a1b2c3". |
| data.api_version | string | Required when parent is present | Not allowed | Public API version used for this event or response. Example: "v1". |
#Response 401, 403, 429, 500, 503
401: The key is missing, unknown, revoked or expired. 403: The key lacks a required scope, or the operation requires a live key. 429: A rate limit was reached and the request did not run. Wait for Retry-After, then repeat it unchanged. X-RateLimit-Scope names the limit: key (120 requests per minute), organization (300 per minute across all keys), write (1,000 at once, refilling at 60 per minute) or list (300 unfiltered list pages at once, refilling at 10 per minute). 500: Unexpected error on our side. 503: Temporarily unavailable. Repeat the same request with the same business identity.
Content type: application/json
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | object | Whole value | Not allowed | — |
| error | object | Required when parent is present | Not allowed | Machine-readable error code; use it to select the documented recovery path. |
| error.code | string | Required when parent is present | Not allowed | Machine-readable, permanently stable error code. Program against it, not against message. |
| error.message | string | Required when parent is present | Not allowed | Explanation for humans. May change at any time. |
| error.field | string | Optional | Not allowed | Affected location in the request, if it can be determined. |
| error.doc_url | string | Required when parent is present | Not allowed | Documentation link explaining this API error. format: "uri". |
Machine-readable version of this page: https://www.meykt.com/developers/fields-ping.md