API Keys
Return a list of all API Keys.
List of Requested API Keys
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
GET /api/v1/api-keys HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"meta": {
"code": 200,
"count": 1
},
"data": [
{
"appname": "my_application",
"description": "API Key for my application",
"roles": [
"app_admin"
],
"last_login": 1691164160466,
"last_ip": "127.0.0.1"
}
]
}Create an API Key from the supplied object.
API Key Create Config
API Key Name
my_applicationAPI Key Description
API Key for my applicationAn array containing strings which include the role name the user should be assigned to.
["app_admin"]Object of a Requested API Key
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
POST /api/v1/api-keys HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 93
{
"appname": "my_application",
"description": "API Key for my application",
"roles": [
"app_admin"
]
}{
"meta": {
"code": 200,
"count": 1
},
"data": {
"appkey": "fMBQnzyGRnHuTEjhOclqZwHTPh7dBP1MkZtV",
"appname": "my_application",
"description": "API Key for my application",
"roles": [
"app_admin"
],
"last_login": 1691164160466,
"last_ip": "127.0.0.1"
}
}Fetches a specific API Key from the appname supplied in the path.
String appname of the API Key to get
Object of a Requested API Key
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
GET /api/v1/api-keys/{appname} HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"meta": {
"code": 200,
"count": 1
},
"data": {
"appname": "my_application",
"description": "API Key for my application",
"roles": [
"app_admin"
],
"last_login": 1691164160466,
"last_ip": "127.0.0.1"
}
}Update a API Key given the provided object. This does not do a diff. You must send the complete object.
String appname of the API Key to get
API Key Update Config
API Key Description
API Key for my applicationAn array containing strings which include the role name the user should be assigned to.
["app_admin"]Object of a Requested API Key
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
PUT /api/v1/api-keys/{appname} HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 66
{
"description": "API Key for my application",
"roles": [
"app_admin"
]
}{
"meta": {
"code": 200,
"count": 1
},
"data": {
"appname": "my_application",
"description": "API Key for my application",
"roles": [
"app_admin"
],
"last_login": 1691164160466,
"last_ip": "127.0.0.1"
}
}Deletes the API Key
String appname of the API Key to get
An empty array
No content
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
DELETE /api/v1/api-keys/{appname} HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Update a API Key given the provided object. This does not do a diff. You must send the complete object.
String appname of the API Key to get
API Key Update Config
API Key Description
API Key for my applicationAn array containing strings which include the role name the user should be assigned to.
["app_admin"]Object of a Requested API Key
Bad Request. Typically due to a malformatted JSON body, or parameter values are not validating.
Access token is missing or invalid
Access is forbidden
Unknown Error Occurred
PUT /api/v1/api-keys/{appname}/regen HTTP/1.1
Host: api.netography.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 66
{
"description": "API Key for my application",
"roles": [
"app_admin"
]
}{
"meta": {
"code": 200,
"count": 1
},
"data": {
"appkey": "fMBQnzyGRnHuTEjhOclqZwHTPh7dBP1MkZtV",
"appname": "my_application",
"description": "API Key for my application",
"roles": [
"app_admin"
],
"last_login": 1691164160466,
"last_ip": "127.0.0.1"
}
}Last updated