Get all Application Keys
GET/v2/application-keys
You can use pagination with this resource. For more information, see pagination.
Request
Query Parameters
Possible values: <= 10000
The current offset by number of records, not pages. Offset is zero-based. The maximum records you can offset is 10,000. If no page size is set, the page length store setting is used.
The maximum number of records per page for this response. You can set this value up to 100. If no page size is set, the page length store setting is used.
Responses
- 200
- 401
- default
OK
- application/json
- Schema
- Example (from schema)
- get-keys
Schema
- Array [
- ]
data object[]
Specifies the unique id of the application key.
Specifies the name of the application key.
Represents the type of object being returned. Always application_key
.
Represents the unique client_id
.
Represents the unique client_secret
.
Indicates the reserved rate limit for an application key. For more information, see Application Keys Overview.
meta object
timestamps object
Specifies the creation date of the key.
Specifies the last updated date of the key.
Specifies the approximate last used date of the key. A null
value indicates that the key has not been used.
links object
Represents a link to the specific resource.
meta object
results objectrequired
Total number of results for the entire collection.
page objectrequired
The maximum number of records for all pages.
The current offset by number of pages.
The current number of pages.
The total number of records for the entire collection.
Total reserved rate limit.
links object
Always the current page.
Always the first page.
Always null
if there is only one page.
Always null
if there is only one page.
Always null
if the user is on the first page.
{
"data": [
{
"id": "0c45e4ec-26e0-4043-86e4-c15b9cf985a0",
"name": "App Key",
"type": "string",
"client_id": "Z2dDp1f1Tg30p2C6ZVit7W1AKUtVhMVSTAPOIK4adA",
"client_secret": "jN8qLHneOn8C1rv0r3J3XZK1cRiZG3rajcLi9X1cZZ",
"reserved_rate_limit": 10,
"meta": {
"timestamps": {
"created_at": "2017-01-10T11:41:19.244Z",
"updated_at": "2017-01-10T11:41:19.244Z",
"last_used_at": "2017-01-10T11:41:19.244Z"
}
},
"links": {
"self": "https://useast.api.elasticpath.com/v2/application-keys/0c45e4ec-26e0-4043-86e4-c15b9cf985a0"
}
}
],
"meta": {
"results": {
"total": 0
},
"page": {
"limit": 100,
"offset": 0,
"current": 1,
"total": 1
},
"total_reserved_rate_limit": 0
},
"links": {
"current": "/v2/application-keys?page[offset]=0&page[limit]=100",
"first": "/v2/application-keys?page[offset]=0&page[limit]=100",
"last": "/v2/application-keys?page[offset]=0&page[limit]=100",
"next": null,
"prev": null
}
}
{
"data": [
{
"id": "2a0949f6-661b-4a19-b0ed-e97b41e98623",
"name": "Storefront",
"type": "application_key",
"client_id": "d4fcc576f661778c29fcd7b78461da8291cc6b003d",
"reserved_rate_limit": 50,
"meta": {
"timestamps": {
"last_used_at": "2022-08-24T19:53:52.474283Z",
"created_at": "2022-08-24T19:53:52.474283Z",
"updated_at": "2022-08-24T19:53:52.474283Z"
}
}
},
{
"id": "015b8b6d-36a0-4c7f-b216-3cf233f49b95",
"name": "Search Integration",
"type": "application_key",
"client_id": "ada730106344ad8e62b07abe2fcef7e540014f33c2",
"reserved_rate_limit": 0,
"meta": {
"timestamps": {
"last_used_at": "2022-08-24T20:11:54.347893Z",
"created_at": "2022-08-24T20:11:54.347893Z",
"updated_at": "2022-08-24T20:11:54.347893Z"
}
}
}
],
"links": {
"current": "https://useast.api.elasticpath.com/v2/application-keys?page[offset]=25&page[limit]=0",
"first": "https://useast.api.elasticpath.com/v2/application-keys?page[offset]=0&page[limit]=25",
"last": "https://useast.api.elasticpath.com/v2/application-keys?page[offset]=0&page[limit]=25",
"next": null,
"prev": null
},
"meta": {
"page": {
"limit": 25,
"offset": 0,
"current": 1,
"total": 1
},
"results": {
"total": 2
},
"total_reserved_rate_limit": 50
}
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- unauthorized-error
Schema
- Array [
- ]
errors Error[]required
A brief summary of the error.
The HTTP response code of the error.
Optional additional detail about the error.
{
"errors": [
{
"title": "string",
"status": "string",
"detail": "string"
}
]
}
{
"errors": [
{
"title": "Unauthorized",
"status": "401"
}
]
}
Internal server error. There was a system failure in the platform.
- application/json
- Schema
- Example (from schema)
- internal-server-error
Schema
- Array [
- ]
errors Error[]required
A brief summary of the error.
The HTTP response code of the error.
Optional additional detail about the error.
{
"errors": [
{
"title": "string",
"status": "string",
"detail": "string"
}
]
}
{
"errors": [
{
"title": "Internal Server Error",
"status": "500",
"detail": "there was a problem processing your request"
}
]
}