Account API
GET List Keys
Retrieve all API keys associated with your account. Each key includes its name, current status, and the key value itself.
Resource URL
Resource Information
| Response Formats | JSON |
| Authentication | Yes (Requires Key) |
| Rate Limited | Yes |
Request Parameters
| Request Parameter | Description | Required |
|---|---|---|
| key | The API Key, which is needed to make requests to MapQuest services. | Yes |
Response Object
| Field | Type | Description |
|---|---|---|
| keys | array | An array of key objects associated with the authenticated account. |
| keys[].name | string | The display name assigned to the key when it was created. |
| keys[].key | string | The API key value used to authenticate requests. |
| keys[].status | string | The current status of the key. One of: "APPROVED", "REVOKED". |
Error Responses
Errors are returned as application/problem+json. Refer to the status codes page for more details.
| Status | Description |
|---|---|
| 401 | Missing or invalid consumer identity. The request could not be authenticated. |
| 404 | Consumer not found. No account matches the authenticated identity. |
| 500 | An internal error occurred. Please retry. |
Example Request
Example Response
json
{
"keys": [
{
"name": "my-production-app",
"key": "IL1deIyHyQA40WpeLeA1bIUXuvTwlGjo",
"status": "APPROVED"
},
{
"name": "staging-app",
"key": "Bcq45hgAPyN8yXUClwubFZeIJgFvAj1V",
"status": "APPROVED"
}
]
}json
{
"keys": []
}