Returns a list of your API keys. Results are paginated to improve retrieval peformance. The meta data indicates how many total records exist.
Successful response
Array of objects (API Key) | |
object (Metadata) |
Authentication error
Authorization error
Array of objects (Error Base) | |||||||||
Array
|
Invalid parameters supplied in request. See HTTP response body for details.
Array of objects (Error Base) | |||||||||
Array
|
{- "data": [
- {
- "id": "f30e7596-586e-44e1-ae7d-53db10f144d3",
- "description": "Tommy's Key",
- "secret": "XXXXXXXXXXXXX",
- "backup_secret": "XXXXXXXXXXXXX",
- "status": "active",
- "permission_groups": [
- "string"
], - "admin": true,
- "record_type": "api_key",
- "created_at": "2018-02-08T18:49:22.998023Z",
- "updated_at": "2018-02-08T18:49:22.998023Z"
}
], - "meta": {
- "total_pages": 13,
- "total_results": 13,
- "page_number": 3,
- "page_size": 1
}
}
Creates a new API key object.
Successful response
object (API Key) | |||||||||||||||||||||
|
Authentication error
Array of objects (Error Base) | |||||||||
Array
|
Authorization error
Array of objects (Error Base) | |||||||||
Array
|
Invalid parameters supplied in request. See HTTP response body for details.
Array of objects (Error Base) | |||||||||
Array
|
{- "description": "Tommy's Key",
- "permission_groups": [
- "string"
], - "admin": true
}
{- "data": {
- "id": "f30e7596-586e-44e1-ae7d-53db10f144d3",
- "description": "Tommy's Key",
- "secret": "XXXXXXXXXXXXX",
- "backup_secret": "XXXXXXXXXXXXX",
- "status": "active",
- "permission_groups": [
- "string"
], - "admin": true,
- "record_type": "api_key",
- "created_at": "2018-02-08T18:49:22.998023Z",
- "updated_at": "2018-02-08T18:49:22.998023Z"
}
}
Retrieves the details of an existing API key.
Successful response
object (API Key) | |||||||||||||||||||||
|
Authentication error
Array of objects (Error Base) | |||||||||
Array
|
Authorization error
Array of objects (Error Base) | |||||||||
Array
|
Resource not found
Array of objects (Error Base) | |||||||||
Array
|
{- "data": {
- "id": "f30e7596-586e-44e1-ae7d-53db10f144d3",
- "description": "Tommy's Key",
- "secret": "XXXXXXXXXXXXX",
- "backup_secret": "XXXXXXXXXXXXX",
- "status": "active",
- "permission_groups": [
- "string"
], - "admin": true,
- "record_type": "api_key",
- "created_at": "2018-02-08T18:49:22.998023Z",
- "updated_at": "2018-02-08T18:49:22.998023Z"
}
}
Updates the specified API key with the values of the parameters passed. Any parameters not included in the request will be left unchanged.
Successful response
object (API Key) | |||||||||||||||||||||
|
Authentication error
Array of objects (Error Base) | |||||||||
Array
|
Authorization error
Array of objects (Error Base) | |||||||||
Array
|
Resource not found
Array of objects (Error Base) | |||||||||
Array
|
Invalid parameters supplied in request. See HTTP response body for details.
Array of objects (Error Base) | |||||||||
Array
|
{- "description": "Tommy's Key",
- "permission_groups": [
- "string"
], - "status": "active"
}
{- "data": {
- "id": "f30e7596-586e-44e1-ae7d-53db10f144d3",
- "description": "Tommy's Key",
- "secret": "XXXXXXXXXXXXX",
- "backup_secret": "XXXXXXXXXXXXX",
- "status": "active",
- "permission_groups": [
- "string"
], - "admin": true,
- "record_type": "api_key",
- "created_at": "2018-02-08T18:49:22.998023Z",
- "updated_at": "2018-02-08T18:49:22.998023Z"
}
}
Generates a new backup secret for an API key.
Successful response
object (API Key) | |||||||||||||||||||||
|
Authentication error
Array of objects (Error Base) | |||||||||
Array
|
Authorization error
Array of objects (Error Base) | |||||||||
Array
|
Resource not found
Array of objects (Error Base) | |||||||||
Array
|
{- "data": {
- "id": "f30e7596-586e-44e1-ae7d-53db10f144d3",
- "description": "Tommy's Key",
- "secret": "XXXXXXXXXXXXX",
- "backup_secret": "XXXXXXXXXXXXX",
- "status": "active",
- "permission_groups": [
- "string"
], - "admin": true,
- "record_type": "api_key",
- "created_at": "2018-02-08T18:49:22.998023Z",
- "updated_at": "2018-02-08T18:49:22.998023Z"
}
}
Replaces an API key's secret with the backup secret. If no backup secret is set, the secret will be replaced with a newly generated value.
Successful response
object (API Key) | |||||||||||||||||||||
|
Authentication error
Array of objects (Error Base) | |||||||||
Array
|
Authorization error
Array of objects (Error Base) | |||||||||
Array
|
Resource not found
Array of objects (Error Base) | |||||||||
Array
|
{- "data": {
- "id": "f30e7596-586e-44e1-ae7d-53db10f144d3",
- "description": "Tommy's Key",
- "secret": "XXXXXXXXXXXXX",
- "backup_secret": "XXXXXXXXXXXXX",
- "status": "active",
- "permission_groups": [
- "string"
], - "admin": true,
- "record_type": "api_key",
- "created_at": "2018-02-08T18:49:22.998023Z",
- "updated_at": "2018-02-08T18:49:22.998023Z"
}
}
Assigns an API key to a user. This controls what they are authorized to do in Mission Control.
Successful response
object (API Key) | |||||||||||||||||||||
|
Authentication error
Array of objects (Error Base) | |||||||||
Array
|
Authorization error
Array of objects (Error Base) | |||||||||
Array
|
Resource not found
Array of objects (Error Base) | |||||||||
Array
|
Invalid parameters supplied in request. See HTTP response body for details.
Array of objects (Error Base) | |||||||||
Array
|
{- "user_id": "e74e0c5c-b185-4e40-8b4a-aae7fc8a9f1d"
}
{- "data": {
- "id": "f30e7596-586e-44e1-ae7d-53db10f144d3",
- "description": "Tommy's Key",
- "secret": "XXXXXXXXXXXXX",
- "backup_secret": "XXXXXXXXXXXXX",
- "status": "active",
- "permission_groups": [
- "string"
], - "admin": true,
- "record_type": "api_key",
- "created_at": "2018-02-08T18:49:22.998023Z",
- "updated_at": "2018-02-08T18:49:22.998023Z"
}
}