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

# Authentication

> Obtain and refresh bearer tokens for API access.

DynamoSQL API clients authenticate by exchanging their credentials for a bearer token via `POST /v1/auth/token`. When the access token expires, use `POST /v1/auth/refresh` to get a new one.

* [Get Access Token](/api-reference/authentication/get-token) -- exchange `clientId` and `clientSecret` for tokens
* [Refresh Access Token](/api-reference/authentication/refresh-token) -- exchange a refresh token for a new access token

See the [Authentication guide](/guides/authentication) for token caching patterns, scope details, and tenant scoping.
