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

# Refresh Token

> Use the following endpoint to refresh the authentication token for continued access to the DDN API.

## Endpoint

```http theme={null}
POST https://api.discountdrugnetwork.com/gateway/auth/refresh
```

## Input Parameters

No specific input parameters are required for this endpoint.


## OpenAPI

````yaml POST /gateway/auth/refresh
openapi: 3.0.0
info:
  title: Discount Drug Network API
  version: 1.0.0
  description: >-
    API for authentication, drug searches, discount information, and related
    data.
servers:
  - url: https://api.discountdrugnetwork.com
    description: Production server
security: []
paths:
  /gateway/auth/refresh:
    post:
      summary: Refresh Token
      description: >-
        Use this endpoint to refresh the authentication token for continued
        access to the DDN API.
      requestBody:
        description: Provide the refresh token to renew the authentication session.
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                refreshToken:
                  type: string
                  description: The refresh token obtained during login.
                  example: 8joiu...
      responses:
        '200':
          description: Token refreshed successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  accessToken:
                    type: string
                    description: >-
                      The renewed JWT Authentication token to use in the
                      Authorization Bearer header for future requests.
                    example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
                  refreshToken:
                    type: string
                    description: >-
                      The new refresh token for extending the authentication
                      session.
                    example: 9klmn...
                  expiresIn:
                    type: integer
                    description: Number of seconds before the new token expires.
                    example: 3600
                  tokenType:
                    type: string
                    description: >-
                      Identifies the type of token. Typically, this will be
                      'Bearer'.
                    example: Bearer
        '400':
          description: Bad request - invalid refresh token.
        '401':
          description: Unauthorized - expired or invalid refresh token.

````