API
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:superis used for statistics endpoints (VocatisStatisticController).vocatisapi:adminis used for appointment management (VocatisAppointmentController).- All other endpoints require
vocatisapi:control.
Vocatis scopes are linked to Vocatis user roles.
| Scope | Purpose |
|---|---|
vocatisapi:control | General user access |
vocatisapi:admin | Administrative access |
vocatisapi:super | Access to superuser features |
identity:user-profile | Retrieve user profiles |
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:
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:vocatisapioridentity.scope-name: Name of the required scope.
To request multiple scopes, repeat the complete --permission parameter.
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).