This application programming interface lets you integrate the Sokordia iSpis services into your own software, e.g. screening in the central enforcement registers as part of your decision process.
The API is based on HTTPS GET/POST. To use it you must:
- Access it only over the secure HTTPS protocol.
- Be registered in the system.
- Authenticate with one of the allowed methods.
- Login e-mail and password in the query parameters
email/password. - HTTP Basic authentication, with the login and password sent in the standard header
Authorization. - OAuth 2.0 authentication: obtain an access token from the
/oauth/tokenendpoint with your login and password, then pass the token in theAuthorization: Bearerheader.TOKEN=$(curl -s -X POST https://ispis.cz/oauth/token -H 'Content-Type: application/x-www-form-urlencoded' -d 'grant_type=client_credentials&client_id=(email)&client_secret=(password)' | jq -r .access_token) && curl -s https://ispis.cz/api/... -H "Authorization: Bearer $TOKEN"
For production access we recommend creating a dedicated account with permissions limited to the given service and using OAuth 2.0. Contact us if you want to restrict API access to specific IP addresses or set other access parameters.