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

# Refresh Token

> Refresh an expired access token

Get a new access token using a refresh token.

## Request Body

<ParamField body="refresh_token" type="string" required>
  The refresh token from the original login
</ParamField>

## Response

<ResponseField name="access_token" type="string">
  New JWT access token
</ResponseField>

<ResponseField name="expires_in" type="number">
  Token expiration time in seconds
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST "https://api.usegately.com/api/v1/auth/refresh" \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "refresh_token": "your_refresh_token"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "access_token": "eyJhbGciOiJIUzI1NiIs...",
    "expires_in": 3600
  }
  ```
</ResponseExample>
