Südvolt Nominations API (1.0.0)

Download OpenAPI specification:

HTTP API server for Südvolt customers to publish their nominations for the electricity balancing market

Errors

The API uses standard HTTP status codes to indicate the success or failure of the API call. The body of the response — if not defined otherwise — will be JSON in the following format:

{
  "message": "page not found"
}

Versioning

The API is versioned following semantic versioning rules, i.e. within each major version only backwards-compatible changes are made to the API.

The major version is part of the API URL for maximum visibility into which API version a client is calling so that clients operating on resources from the /api/v1/ set of resources will always observe deterministic behaviour.

Future Nomi releases may ship changes to the API in a backwards-incompatible way by incrementing the major version number and only shipping those changes in the /api/v2/ realm of resources.

Authentication

Authentication is performed through the use of API tokens obtained through the /tokens resource. The only way to authenticate to the API server at the moment is by providing the API token as a bearer token in the HTTP Authorization header:

Authentication: Bearer API_TOKEN

Tokens

Token Management

Initiate a token request flow

By initiating a token request flow, a one-time code will be sent to the provided email address that can then be used to exchange the code for an API token.

Authorizations:
None
Request Body schema: text/plain
required
string

Responses

Request samples

Content type
text/plain
foobar@example.org

Exchange a one-time code for an API token.

Authorizations:
None
path Parameters
request-id
required
string

The ID of the token request retrieved previously

Request Body schema: text/plain
required
string

Responses

Request samples

Content type
text/plain
lklasdifj23523ASDFBA

Get a list of tokens for the authenticated user

Returns a list of all the tokens that the authenticated user has created so far

Authorizations:
bearer

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create a new token

Creates a new token for the authenticated user with the given expiration time

Authorizations:
bearer

Users

User Management

Get authenticated user info

Redirects the user to their own info endpoint for retrieving user details

Authorizations:
bearer

Responses