Authentication – Cloud Only
Learn how to retrieve API credentials and generate JWT tokens for authenticated API access in Visual Layer Cloud.
How This Helps
Secure API access is essential for integrating Visual Layer with your pipelines or external tools. This guide shows how to retrieve your API credentials and use them to generate a JWT for authenticated requests.
Step 1: Get Your API Key and Secret
To obtain your API key and secret:
Log in to Visual Layer
Go to https://app.visual-layer.com and sign in with your user account.
Visit the API Credentials Page
Navigate to https://app.visual-layer.com/api/v1/api_credentials while logged in.
You must be authenticated in the browser for this to work. The request depends on your active browser session.
Request
Example Response
You can also run this using curl
:
Step 2: Generate JWT Token for Authentication
Use your API key and secret to generate a JWT token, which is required for authenticated API requests.
JWT Token Authentication
JWTs should be passed via the Authorization
header on every request. They are short-lived and must be regenerated regularly.
Example Python Code
JWT tokens expire quickly by design. For best security and performance, regenerate tokens every 10 minutes.