Skip to content

Retrieve API Key

fiskaly Management API (v0.1.0-draft)

Download OpenAPI specification:

Introduction

The fiskaly Management API is a RESTful API that can be used for automatizing concerns within the fiskaly dashboard.

Authentication

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...
Security Scheme Type: HTTP
HTTP Authorization Scheme: bearer
Bearer format: JWT

Retrieve 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
One of
api_key
required
string
api_secret
required
string

Responses

Request samples

Content type
application/json
{
  • "refresh_token": "string",
  • "api_key": "...",
  • "api_secret": "..."
}

Response samples

Content type
application/json
{
  • "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
}

Organizations

Endpoints for managing Organizations.

List Organizations

foo

Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
{ }

Create an Organization

foo

Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
{ }

Retrieve an Organization

foo

Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
{ }

Update an Organization

foo

Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
{ }

Delete an Organization

foo

Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
{ }

Users

Endpoints for managing User Accounts / Logins.

List Users

foo

Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
{ }

Invite a User

foo

Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
{ }

Retrieve a User

foo

Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
{ }

API Keys

Endpoints for managing API Keys.

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

Content type
application/json
{
  • "data": [],
  • "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

Content type
application/json
{}

Response samples

Content type
application/json
{}

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

Content type
application/json
{
  • "status": "enabled"
}

Response samples

Content type
application/json
{}

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

Content type
application/json
{}

Delete API Key

Delete an existing API Key

path Parameters
key_name
required
string^[a-z0-9-]{3,30}$

Name of the API Key

Responses

Response samples

Content type
application/json
{
  • "deleted": true
}

Was this page helpful?