MeyktAPI Documentation

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.

How to read these tables

#Request body

No request body is defined for this operation.

#Response 200

200: Success

Content type: application/json

FieldTypePresencenullMeaning, limits and examples
$ (whole value)objectWhole valueNot allowed—
dataobjectRequired when parent is presentNot allowedAuthorized response payload or documented event data.
data.organizationobjectRequired when parent is presentNot allowedOrganization associated with the authenticated API key.
data.organization.namestringRequired when parent is presentNot allowedName of the organization Example: "Sample Workshop".
data.environmentstringRequired when parent is presentNot allowedtest = calls never trigger real production. Also visible in the key itself. enum: ["live","test"].
data.scopesarrayRequired when parent is presentNot allowedScopes this key has.
data.scopes[]stringEvery array itemNot allowed—
data.key_prefixstringRequired when parent is presentNot allowedVisible prefix of the key used — to match it against the list in the dashboard. Example: "mk_live_a1b2c3".
data.api_versionstringRequired when parent is presentNot allowedPublic 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

FieldTypePresencenullMeaning, limits and examples
$ (whole value)objectWhole valueNot allowed—
errorobjectRequired when parent is presentNot allowedMachine-readable error code; use it to select the documented recovery path.
error.codestringRequired when parent is presentNot allowedMachine-readable, permanently stable error code. Program against it, not against message.
error.messagestringRequired when parent is presentNot allowedExplanation for humans. May change at any time.
error.fieldstringOptionalNot allowedAffected location in the request, if it can be determined.
error.doc_urlstringRequired when parent is presentNot allowedDocumentation link explaining this API error. format: "uri".

Machine-readable version of this page: https://www.meykt.com/developers/fields-ping.md