Check your API key
GET
/developer/v1/key/get/documentNo scope needed
Returns the API key the request was made with: its name, its mode (test or prod), what it
may do, the company it belongs to and the number of calls per minute it may make. Use it to
confirm that a key works and has the access you expect. It needs no scope.
Response 200
company_idstringrequiredThe ID of your company.
company_namestringrequiredThe name of your company.
company_statusenumrequiredThe status of your company:
Sandbox,LiveorSuspended.SandboxLiveSuspended
key_idstringrequiredThe ID of the key.
modeenumrequiredtestfor the sandbox,prodfor production.testprod
namestringrequiredThe name you gave the key.
rate_limit_per_minuteintegerrequiredThe number of calls per minute your company may make with this key's mode.
scopesarray of enumrequiredWhat this key may do right now: the scopes of the key that your company still holds.
Errors
Every error has this shape. Branch on code, not on message. request_id equals the X-Request-Id response header.
{
"error": {
"code": "not_found",
"message": "The object does not exist.",
"request_id": "req_0123456789abcdef0123456789abcdef"
}
}| Status | Code | Meaning |
|---|---|---|
401 | invalid_api_key | The API key is missing or not valid. |
403 | company_archived | This company is archived. |
403 | company_not_live | The company must be live to use prod keys. |
403 | company_suspended | This company is suspended. |
429 | rate_limited | Too many requests. Wait before calling again. |
500 | internal_error | Something went wrong on our side. Please try again later. |
502 | upstream_error | A Nurish'd service could not complete the request. |
503 | upstream_unavailable | A Nurish'd service is unavailable. Please try again later. |
504 | upstream_timeout | A Nurish'd service did not answer in time. Please try again. |