Every documented API operation is authenticated. Send the dashboard API token in the Authorization header:
Authorization: Bearer YOUR_API_TOKENThe official SDKs read the token from your server-side environment and add this header to every request:
import { LTESocksClient } from '@ltesocks/sdk';
const client = LTESocksClient.withBearerToken( process.env.LTESOCKS_API_TOKEN, { language: 'en' },);import os
from ltesocks_sdk import Client
client = Client.with_bearer_token( os.environ["LTESOCKS_API_TOKEN"], language="en",)<?php
use LTESocks\Client;
require __DIR__ . '/vendor/autoload.php';
$client = Client::builder() ->withBearerToken((string) getenv('LTESOCKS_API_TOKEN')) ->withLanguage('en') ->build();Create or reset a token
Section titled “Create or reset a token”- Sign in to the LTESocks dashboard.
- Open Settings → Profile.
- Locate API Token.
- Create the token, or reset it when rotating credentials.
- Copy the new value immediately and store it as a secret.
Resetting the token invalidates the previous value. Update all server-side integrations before or immediately after rotation.
Server-side use only
Section titled “Server-side use only”Treat the token like an account password:
- inject it through an environment variable or secret manager;
- use HTTPS and validate TLS certificates;
- redact
Authorizationfrom application and proxy logs; - never expose the token in client-side JavaScript;
- use a separate deployment secret for each environment;
- rotate it after any suspected disclosure.
Authentication failures
Section titled “Authentication failures”A missing, invalid, expired, or reset token returns a non-success response. Handle 401 as a permanent credential failure: stop retries, alert the operator, and replace the secret. Do not automatically regenerate tokens from application code.