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
| Method | Use Case | Best For |
|---|---|---|
| Client Credentials | Application-to-application access | Production backend services, integrations |
| JWT | User-based access, trial tokens | Personal projects, trial evaluation |
Getting Started
To authenticate:
- Obtain your credentials from the Vainu API console
- Choose the appropriate authentication method for your use case
- 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.