Authentication
Sariska utilizes JSON Web Tokens (JWTs) to securely authenticate users and devices. JWTs are a standardized, structured, and self-contained method for conveying information between clients as JSON objects. They serve as a mechanism for asserting claims exchanged between two parties. In the context of a JWT, a claim is a declaration about a company or user, accompanied by additional metadata about the token itself. The payload, which is maintained in JSON format, contains a set of claims. JWTs are digitally signed and encrypted for enhanced security.
Sariska generates these tokens on its servers. A single token can be used to access all Sariska services.
Parameter | Type | Description |
---|---|---|
apiKey | Required | Your Sariska.io API key. |
user | Optional | A unique identifier for the user. If not provided, Sariska will generate one automatically. |
exp | Optional | The expiration time of the token. The default is 24 hours. You can specify a custom expiration time using the following formats: |
nbf | Optional | The time before which the token is not valid. The token will not be accepted for processing until the current date/time is after or equal to the value of this field. You can specify a custom nbf value using the following formats: |
scope | Optional | The scope of the token. By default, tokens can be used for integrating media, messaging, and collaboration services. You can restrict the scope to one or more of these services using the following values: |
Last updated