> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tetherai.ca/llms.txt
> Use this file to discover all available pages before exploring further.

# SDK and client patterns

> Implementation patterns for integrating Tether APIs from multiple languages.

Use a shared HTTP client abstraction that handles auth and retries consistently.

## Baseline HTTP requirements

* Base URL per environment.
* Bearer token injection on authenticated calls.
* Structured parsing for non-2xx responses.
* Timeouts and idempotent retry policy.

## JavaScript example

```javascript theme={null}
export async function request(path, options = {}) {
  const token = process.env.TETHER_TOKEN;
  const response = await fetch(`${process.env.TETHER_BASE_URL}${path}`, {
    ...options,
    headers: {
      'Content-Type': 'application/json',
      Authorization: `Bearer ${token}`,
      ...(options.headers || {}),
    },
  });

  if (!response.ok) {
    throw new Error(`API request failed: ${response.status}`);
  }

  return response.json();
}
```

## Next

* See [Authentication](/guides/authentication) for token acquisition.
* Use [API reference](/api-reference/introduction) for exact payload schemas.
