List API Keys
fiskaly Management API (v0.1.0-draft)
Download OpenAPI specification:
Imprint: fiskaly.com/impressum | Privacy Policy: fiskaly.com/datenschutz
The fiskaly Management API is a RESTful API that can be used for automatizing concerns within the fiskaly dashboard.
Our API uses JWT tokens to authenticate requests. API requests without authentication will fail. All API requests have to be made over HTTPS, while requests made over plain HTTP will fail.
JWT
A JSON Web Token (JWT) used for access control and authorization.
API keys have to be obtained via the fiskaly dashboard.
- Usage format:
Bearer <JWT> - Example HTTP header:
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
bearerJWTRetrieve a token
Access to our API is only granted with a valid JWT / authorization token that must be obtained using this endpoint.
Note: If you don't have an api_key yet, you can request an API key.
Request Body schema: application/json
| api_key required | string |
| api_secret required | string |
Responses
Request samples
- Payload
{- "refresh_token": "string",
- "api_key": "...",
- "api_secret": "..."
}Response samples
- 200
{- "access_token": "string",
- "access_token_expires_in": 300,
- "access_token_expires_at": 1577833200,
- "refresh_token": "string",
- "refresh_token_expires_in": 300,
- "refresh_token_expires_at": 1577833200
}List API Keys
List API Keys
query Parameters
| order_by | string Enum: "name" "kind" "status" Specifies the property to sort by |
| order | string Default: "asc" Enum: "asc" "desc" Determines the sorting order |
| limit | integer <= 100 Default: 100 Limits the number of returned results |
| offset | integer Default: 0 Skips the specified number of results from the result set |
| kind | Array of strings[ items unique ] Items Enum: "test" "live" Filter to include only a specific kind |
| status | Array of strings[ items unique ] Items Enum: "enabled" "disabled" Filter to include only a specific status |
Responses
Response samples
- 200
- 403
{- "data": [
- {
- "name": "string",
- "kind": "test",
- "status": "enabled",
- "metadata": {
- "my_property_1": "1234",
}, - "_id": "string",
- "_name": "string",
- "_type": "API_KEY"
}
], - "count": 9007199254740991,
- "_type": "API_KEY_LIST"
}Create API Key
Create an API Key
path Parameters
| key_name required | string^[a-z0-9-]{3,30}$ Name of the API Key |
Request Body schema: application/json
| kind required | string Enum: "test" "live" |
| status required | string Enum: "enabled" "disabled" |
object <= 20 properties You can use this parameter to attach custom key-value data to an object. Metadata is useful for storing additional, structured information on an object. Note: You can specify up to 20 keys, with key names up to 40 characters long and values up to 500 characters long. |
Responses
Request samples
- Payload
{- "kind": "test",
- "status": "enabled",
- "metadata": {
- "my_property_1": "1234",
}
}Response samples
- 200
- 400
- 403
{- "name": "string",
- "kind": "test",
- "status": "enabled",
- "metadata": {
- "my_property_1": "1234",
}, - "_id": "string",
- "_name": "string",
- "_type": "API_KEY",
- "secret": "string"
}Update API Key Status
Update an API Key Status
path Parameters
| key_name required | string^[a-z0-9-]{3,30}$ Name of the API Key |
Request Body schema: application/json
| status | string Enum: "enabled" "disabled" |
Responses
Request samples
- Payload
{- "status": "enabled"
}Response samples
- 200
- 403
{- "name": "string",
- "kind": "test",
- "status": "enabled",
- "metadata": {
- "my_property_1": "1234",
}, - "_id": "string",
- "_name": "string",
- "_type": "API_KEY"
}Retrieve API Key
Retrieve an existing API Key
path Parameters
| key_name required | string^[a-z0-9-]{3,30}$ Name of the API Key |
Responses
Response samples
- 200
- 403
{- "name": "string",
- "kind": "test",
- "status": "enabled",
- "metadata": {
- "my_property_1": "1234",
}, - "_id": "string",
- "_name": "string",
- "_type": "API_KEY"
}Was this page helpful?