Skip to main content
Version: iSign 9

API

tip

This guide requires technical experience.

The Vocatis API is a microservice integrated into Vocatis and is also used internally. Its URL depends on your system. It is usually available under the server's base address at the VocatisApi path, for example https://designo.isigncloud.de/VocatisApi/.

The API uses JSON data.

Authentication​

The API requires a bearer token (access token).

Authorization: Bearer eyJhbGciOiJSUzI1NiIsIn...

Obtain the token from an iSign identity provider. The user or client (for scripts) must be registered in iSign and authenticate with the identity provider. The resulting token contains the required authorization information.

Authorization​

The Vocatis API uses scopes. The scopes in the token determine which endpoints are available.

  • vocatisapi:super is used for statistics endpoints (VocatisStatisticController).
  • vocatisapi:admin is used for appointment management (VocatisAppointmentController).
  • All other endpoints require vocatisapi:control.

Vocatis scopes are linked to Vocatis user roles.

ScopePurpose
vocatisapi:controlGeneral user access
vocatisapi:adminAdministrative access
vocatisapi:superAccess to superuser features
identity:user-profileRetrieve user profiles
warning

The attached example script also needs access to the Identity API to retrieve user data. It therefore requires the identity:user-profile scope as well.

Configuration​

An administrator must create client credentials on the iSign Server by running this command:

warning

Replace every placeholder in angle brackets, such as <client_id>, with the appropriate value:

  • client_id: Name of the application that needs access (your choice).
  • secret: Password for the application (your choice).
  • api-scope-domain: API for which to grant the scope: vocatisapi or identity.
  • scope-name: Name of the required scope.

To request multiple scopes, repeat the complete --permission parameter.

tip

The example script linked below requires these scopes:

--permission scp:vocatisapi:control --permission scp:identity:user-profile

issrvconfig identity default app add <client_id> --permission gt:client_credentials --permission ept:token --permission scp:<api-scope-domain>:<scope-name> --client-secret <secret> --policy GrantAllScopesPolicy

Endpoints and Data Types​

Find the endpoints and data types in the Vocatis API specification (OpenAPI).

Example Script​

VocatisAPI.zip