Navigation

Sign token

Summary

Use this API endpoint to get a signed token. The signed token can be used in the identify or attach calls in the client libraries.

  • path: token/sign
  • method: POST
  • Base URL: https://api.sabil.io
  • body:
    • user: The ID of the user if present. Pass an empty string if the user id is not available. This must not be null.
  • headers:
    • Authorization: Bearer <api_secret>: where secret is the raw API secret you get when generating an API key.

      Never reveal your secret on the client side. Only make this call from a secure server.

  • response: The response from this endpoint will be similar to:
    {  "secret": "the signed secret to pass to your calls"}