LogoLogo
Useful links
  • Home
  • Product guides
  • API
  • SDKs
  • Overview
  • CORE API
    • Authentication
    • Available resources
      • Transaction
      • Onboarding
      • Profile
      • Synchronous services
        • OCR Sync
        • Basic Data Sync (Individual)
    • Transaction details
      • Services
        • Document OCR
        • Documentscopy
        • Face Liveness
        • Facematch
        • Facial Biometrics
        • Private Faceset
        • Shared Faceset
        • Document Liveness
      • Background check
        • Data structure
        • KYC
          • Driver
          • Financial
          • Labor
          • Register data
          • Relationships
          • Risk
        • KYB
          • Financial
          • Labor
          • Register data
          • Risk
        • Vehicle
          • Register data
      • Validation rules
      • Manual reprovals
    • Webhooks
      • Transaction
      • Profile
      • Face authentication
  • MOBILE API
    • Authentication
    • Available resources
      • Face liveness (deprecated)
      • Face registration (deprecated)
      • Face authentication (deprecated)
    • Response signature
  • GLOBAL API
    • Authentication
    • Available resources
      • Services
        • Company search
        • Company record
        • Basic Data Sync (Individual)
        • Sanctions
      • Orchestrations
        • Transactions
          • Services
            • KYB
              • Credit Report
              • Business Identity
            • KYC
              • Adverse Media
              • PEPs
              • Sanctions
              • Warnings
              • Global identity verification
              • Global identity double verification
            • DOC ID
              • Global Document Verification
      • Onboardings
        • Links
    • Webhooks
  • SMART AUTH API
    • Authentication
    • Available resources
      • Authentications
      • Create identity
  • Joint resolution 6 API
    • Authentication
    • Available resources
      • Suspected fraud creation
      • Suspected fraud query
      • Suspected fraud update
      • Suspected fraud deletion
    • Using mTLS
    • Changelog
LogoLogo

2025 © Caf. - All rights reserved

On this page
  • Getting your Smart Auth key
  • Generating your token
  • Recommended method
  • Not recommended method (only for tests)
  • JWT payload parameters
  1. SMART AUTH API

Authentication

Last updated 2 months ago

To use Smart Auth Authentications API, you will need to generate Smart Auth access token. This page shows the steps on how to create the key, generate the access tokens and the recommended ways to do it.

Getting your Smart Auth key

  1. Go to the ;

  2. If you do not have a token, generate one.

  3. Retrieve the clientId and clientSecret from one of the generated tokens.

Do not store these fields directly in your mobile/web application. These values should not leave your backend.

You can repeat this procedure to generate accesses combining different functions and SDKs.

Generating your token

Recommended method

The following steps describe how you can generate a token that is valid only for a specific user. This is the recommended way to generate and distribute tokens because it limits a possible attack to a single user account.

  1. At some point in your application flow, create a JWT with the structure of the example below;

    • Remember to replace the {clientId}, {personId} and {expiresAt} fields.

    • All of these fields are strongly recommended, but you can see which ones are required at the bottom of this page.

  2. Sign the token with your clientSecret;

  3. Send this token to your application.

Example:

{
  "alg": "HS256",
  "typ": "JWT"
}
{
    "iss": "{clientId}", // string
    "exp": {expiresAt}, // number
    "personId": "{personId}" // string
}

Not recommended method (only for tests)

  1. Keep the Header field, do not change;

  2. Edit the payload, only the iss field is required;

  3. Replace **** your-256-bit-secret with your clientSecret;

  4. Click Share JWT to copy the generated token to the clipboard;

  5. Use this token to authenticate the SDK.

JWT payload parameters

Parameter
Required
Description

iss

Yes

Your clientId

exp

No

personId

No

The CPF (Individual Taxpayer Registration Number) for which the token will be valid

Go to ;

Expiration time (seconds since the )

Smart Auth tokens page
jwt.io
Unix Era