Create an Application Key
POST/v2/application-keys
Create an Application Key
Request
- application/json
Body
required
data ApplicationKeyrequired
Possible values: non-empty
and <= 255 characters
Specifies the name of the application key.
Indicates the reserved rate limit for an application key. For more information, see Application Keys Overview.
Represents the type of object being returned. Always application_key
.
Responses
- 201
- 400
- 409
- default
Created
- application/json
- Schema
- Example (from schema)
Schema
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.
{
"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"
}
}
}
Bad request. The request failed validation.
- application/json
- Schema
- Example (from schema)
- missing-name
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"
}
]
}
Required field missing
{
"errors": [
{
"title": "Bad Request",
"status": "400",
"detail": "The field 'name' is required."
}
]
}
Conflict
- application/json
- Schema
- Example (from schema)
- exceeds-limit
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"
}
]
}
Requested limit exceeds maximum
{
"errors": [
{
"detail": "requested reserved rate limit will exceed the maximum",
"status": "409",
"title": "Conflict"
}
]
}
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"
}
]
}
Internal server error
{
"errors": [
{
"title": "Internal Server Error",
"status": "500",
"detail": "there was a problem processing your request"
}
]
}