GuidesAuthentication
Guides

Authentication

Learn how to authenticate with Deepvue APIs using client credentials to obtain access tokens, and how to use API keys for specific endpoints.

Overview

Deepvue APIs require authentication for access. You can authenticate using an access token (obtained via client_id and client_secret) or using your client_secret as an API key header.

Authentication methods

Most Deepvue APIs use Bearer token authentication. You obtain a token by calling the Authorization endpoint with your credentials.

header
Authorizationstring
Required

Format: Bearer ACCESS_TOKEN

Authorization tokens remain valid for 24 hours from generation. After expiration, call the Authorize endpoint again to get a new token.

Getting your credentials

Log in to the Dashboard

Visit the Deepvue Dashboard and sign in to your account.

Navigate to Credentials

Go to the credentials tab to find your client_id and client_secret.

Generate an access token

Call the Authorize endpoint with your credentials to get an access token.

Generating an access token

Use your client_id and client_secret to obtain an access token.

curl -X POST 'https://production.deepvue.tech/v1/authorize' \
  -F 'client_id=YOUR_CLIENT_ID' \
  -F 'client_secret=YOUR_CLIENT_SECRET'

Successful response:

{
  "access_token": "eyJhbGciOiJIUzI1NiIs...",
  "token_type": "bearer",
  "expiry": "2026-03-08T00:00:00Z"
}

Making authenticated requests

Include the access token in the Authorization header for all subsequent API calls.

curl -X GET 'https://production.deepvue.tech/v1/verification/panbasic?pan_number=AAAPT0002F' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'x-api-key: YOUR_CLIENT_SECRET'

Security best practices

All API requests must use HTTPS. Unencrypted HTTP calls will fail.

  • Restrict access to API credentials to only the personnel who need them
  • Do not store keys in version control systems
  • Use environment variables or secrets management tools for secure storage
  • Never expose credentials in client-side applications such as mobile apps or frontend code
  • Rotate credentials periodically and monitor usage through the dashboard

Common authentication errors

Status CodeErrorSolution
401Incorrect client_id or client_secretVerify your credentials from the dashboard
401Not authenticatedInclude a valid Bearer token in the Authorization header
403Not a valid tokenYour token may have expired. Generate a new one via the Authorize endpoint
403Access forbiddenYour account may not have access to this API. Contact support