General HTTP API#

This chapter covers some general aspects regarding the HTTP API.

Authentication and permissions#

For most endpoints, authentication is required. This is explained in the API Gateway chapter.

If an endpoint requires authentication, a 401 code is returned. If a caller lacks required permissions, a 403 code is returned.

Pagination#

Most endpoints with list data use pagination in order to limit results and data exchange. The following query parameters are available:

Parameter

Description

limit

Maximum amount of entries to retrieve. Defaults to 20.

offset

Offset for retrieved entries.

order_by

Field to order entries by.

order_dir

Direction for ordering. Supported values are asc and desc with the first being default.

Paginated responses will look like the following:

{
    "total": 0,
    "limit": 0,
    "offset": 0,
    "ordered_by": "<field_name>",
    "order_dir": "<order_direction>",
    "retrieved": 0,
    "entries": []
}

Field

Description

total

Total amounts of available entries.

limit

Applied limit for retrieved entries.

offset

Applied offset for retrieved entries.

ordered_by

Field name the entries were ordered by.

order_dir

Applied direction for ordering entries. As with query parameters, asc and desc are possible values.

retrieved

Amount of entries in the entries-field.

entries

The actual entries. Structure depends on the retrieved data.

Misc#

  • Durations are always represented in nanoseconds.

  • Primitives in JSON, not being string and not stated otherwise, can be any value from the respective value range.