Lighter icon

Lighter

Interact with Lighter (zkLighter) DEX API - High-performance perpetuals trading

System → Get Auth Token

AI-generated

Summary

Retrieve auth token from Trading Backend

Inputs

None.

Output shape

JSON response from Trading Backend containing the auth token

Returned as a paired data item; no workflow-level output beyond the token response.

Examples

Example 1: Obtain a short-lived auth token for subsequent API calls

Set authTokenExpiry (seconds) as needed; ensure Trading Backend URL is configured in credentials.

Links

Discussion