Docs
Čeština Slovenčina English
Developer

Authorization

The Money S5 API uses authentication based on the OAuth2 standard. Keys are generated in the Money environment under Administration – Data Exchange – REST API – API Keys. A key is associated with a Money user, whose permissions for endpoints are defined.

Authentication methods

The following methods can be used as the authentication type:

  • Client credentials

  • Authorization code


Each request must include the header:
Authorization: Bearer [access_token]

ImageImage

Keys can be created using the Generate button in the top bar, or simply entered manually.

api_klice_generovani-768x768


API permissions are managed using a separate Money user and their API role. Permissions can be used to restrict the usual view, add, edit, and delete rights, including more detailed filters for individual lists.

Client credentials

Request to the /token endpoint

POST http(s)://[adresa API]/connect/token

Content-Type: application/x-www-form-urlencoded

grant_type=client_credentials&client_id=[vygenerované Client ID]&client_secret=[vygenerované Client Secret]&scope=S5Api


The identity server returns the generated token (JSON):
{„access_token“:“[vygenerovaný token]“,“expires_in“:3600,“token_type“:“Bearer“}

postman_auth


Token
The token can be decoded to view its contents, for example here: https://jwt.io/.

Authorization code

Request to the /authorize endpoint

GET http(s)://[adresa API]/connect/authorize?client_id=[vygenerované Client ID]&response_type=code&redirect_uri=http://[adresa API]/oauth2-redirect.html&scope=S5Api offline_access

redirect_uri – the address to which the authorization code is sent after the user signs in; this code is exchanged for an access token. The address must be assigned to the client in S5.

Request to the /token endpoint

POST http(s)://[adresa API]/connect/token

Content-Type: application/x-www-form-urlencoded

grant_type=authorization_code&client_id=[vygenerované Client ID]&client_secret=[vygenerované Client Secret]&scope=S5Api&code=[autorizační kód vrácený v předchozím kroku]&redirect_uri=http://[adresa API]/oauth2-redirect.html

The identity server returns the generated token (JSON):

{„access_token“:“[vygenerovaný token]“,“expires_in“:3600,“token_type“:“Bearer“,“refresh_token“: „[vygenerovaný refresh token]“}

code – the authorization code returned after redirection to redirect_uri (the code can be used only once)

redirect_uri – the address specified in the request to the authorize endpoint

Scope: S5Api offline_access

Refreshing token validity

POST http(s)://[adresa API]/connect/token

Content-Type: application/x-www-form-urlencoded

grant_type=refresh_token&client_id=[vygenerované Client ID]&client_secret=[vygenerované Client Secret]&scope=S5Api&redirect_uri=http://[adresa API]/oauth2-redirect.html&refresh_token=[vygenerovaný refresh token]

Last edited 13.11.2026