# get_requested_key > Returns the key your user allowed, once: poll it with the device code of POST /v1/keys/request every interval seconds. Returns the key your user allowed, once: poll it with the device code of POST /v1/keys/request every interval seconds. Until your user answers, authorization_pending; sooner than the interval, slow_down; both with Retry-After. The request expired, or its key was already returned: expired_token, ask again. Your user denied it, or their organization could not take another key: access_denied. Free. ## Request ```text POST https://api.megido.io/v1/keys/token ``` The request whose key you wait for. Its JSON Schema: ```json { "type": "object", "properties": { "device_code": { "type": "string", "description": "The device_code that POST /v1/keys/request returned" }, "grant_type": { "description": "The grant, as RFC 8628 names it; it may be left out", "type": "string", "const": "urn:ietf:params:oauth:grant-type:device_code" } }, "required": [ "device_code" ], "additionalProperties": false, "description": "The request whose key you wait for" } ``` ## Answers | Status | Answer | |---|---| | 200 | The key, returned this once: `KeyIssued` | | 400 | The request cannot be served as sent, or not yet: `bad_request`, `invalid_params`, `authorization_pending`, `slow_down`, `expired_token`, `access_denied` | | 413 | The body is larger than the API takes: `bad_request` | | 415 | The body is not sent as application/json: `bad_request` | | 429 | Too many calls: `rate_limited` | | 500 | The call failed on Megido's side: `internal_error` | Every error has the body `{"error": {"code": "…", "message": "…"}}` with the details of its code. The OpenAPI document holds every schema: https://api.megido.io/v1/openapi.json.