Authentication Overview

Overview of authentication methods for Vainu API

Authentication

The Vainu API supports multiple authentication methods depending on your use case:

Authentication Methods

1. JWT (JSON Web Tokens)

Token-based authentication using refresh and access tokens. Ideal for user-based applications and trial access.

Learn about JWT Authentication →

Client Credentials (OAuth 2.0)

OAuth 2.0 Client Credentials flow for server-to-server authentication. Recommended for backend applications and integrations.

You can create OAuth 2.0 Application in the Vainu Platform UI Direct: https://vainu.app/settings/api-access (Settings -> API Access).

Choosing Your Authentication Method

MethodUse CaseBest For
Client CredentialsApplication-to-application accessProduction backend services, integrations
JWTUser-based access, trial tokensPersonal projects, trial evaluation

Getting Started

To authenticate:

  1. Obtain your credentials from the Vainu API console
  2. Choose the appropriate authentication method for your use case
  3. Include authentication headers in all API requests

Authentication Headers

Include your authentication access token in the request headers. Use JWT Refresh token or Client ID / Client Secret to obtain Access Token.

Authorization: Bearer {your_access_token}
🔒

Never share your API keys or tokens publicly. Always keep them secure and rotate them regularly.