Authentication
3SKey Signing API is available over the Internet and it uses JWT Bearer grant type for issuing access tokens to client applications. Follow the information below to request an access token and use it to call the API endpoints defined in the 3SKey Signing API Reference.
Request Access Token
Authorisation URLs
Refer to the Internet URLs under Authorisation API Base URLs to determine the URL you should use in the Live environment.
Authorization Header
Refer to Authorization Header to learn how to use the consumer-key and consumer-secret from the apps you created.
Request Body
Refer to JWT Bearer grant type to learn the request parameters you should include in the API request and which claims should be included in the JSON Web Token.
Use the following value for Scope in the API request.
| Environments | Scopes |
|---|---|
| Live | 3skey |
When creating the JSON Web Token (JWT), use x5c for the JWT header.
Calling the authorisation API
Call the token API with the Authorization Header and request body explained above. An access token will be returned in the API response. The access_token is valid for 30 minutes. You can use the refresh_token for up to 24 hours.
Use Access Token
When you have obtained an access token, you can use access token to call 3SKey Signing API. You also have the option to refresh access token after it expires. We highly recommend that you dispose access token when it is no longer needed.