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

# Generate Access Token

> Generate a temporary access token to authenticate and initiate transactions through the Hello Clever payment gateway. This token is obtained using your app-id and secret-key credentials and is valid for 3600 seconds (1 hour).




## OpenAPI

````yaml /api/openapi/v1-reference.yaml get /v1/payment_gateways/access_token
openapi: 3.0.3
info:
  title: Payment APIs (AUD only)
  description: >-
    ## Introduction

    The Payment API Solution (AUD) offers developers a comprehensive suite of
    API services to build innovative AUD payment solutions efficiently. These
    APIs enable seamless transactions using various payment methods and
    functionalities, ensuring a robust, reliable, and scalable payment
    infrastructure tailored for the Australian market.

    ### Key Features

    - **Payment Methods**:
      - **Payment Link**: Supports payments via card and PayID.
      - **PayID**: Provides instant payments using a unique identifier.
      - **PayTo**: Enables scheduled or recurring payments.
      - **BSB/Account Number**: Allows direct bank transfers.
      - **Payout**: Manage payouts to designated accounts.

    - **Additional Functionalities**:
      - **Balance Management**: Real-time balance inquiries and updates.
      - **Reporting Services**: Generate detailed transaction and payment reports.

    This documentation provides detailed guidance for integrating these
    capabilities into your application.
  termsOfService: https://helloclever.co/terms
  contact:
    email: support@helloclever.co
  version: 1.0.11
servers:
  - url: https://api.cleverhub.co/api
    description: Sandbox Environment
  - url: https://api-merchant.helloclever.co/api
    description: Production Environment
security: []
paths:
  /v1/payment_gateways/access_token:
    get:
      tags:
        - Payment Gateway
      summary: Generate Access Token
      description: >
        Generate a temporary access token to authenticate and initiate
        transactions through the Hello Clever payment gateway. This token is
        obtained using your app-id and secret-key credentials and is valid for
        3600 seconds (1 hour).
      operationId: getAccessToken
      responses:
        '200':
          description: Access token generated successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  access_token:
                    type: string
                    description: >-
                      A token used to authenticate payment requests. Expires
                      after 3600 seconds.
                    example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
                  expires_in:
                    type: integer
                    description: Duration in seconds before the token expires.
                    example: 3600
        '400':
          description: Bad Request
        '401':
          description: Unauthorized
      security:
        - app-id: []
          secret-key: []
components:
  securitySchemes:
    app-id:
      type: apiKey
      in: header
      name: app-id
      description: |
        A unique identifier assigned to each application.
    secret-key:
      type: apiKey
      in: header
      name: secret-key
      description: |
        A secure token associated with the `app-id`.

````

## Related topics

- [Payment APIs for AUD (v1)](/api/v1/introduction.md)
- [Generate Share Token Using Sumsub API](/api/contact/generate-share-token-using-sumsub-api.md)
- [Authenticate with the Hello Clever API](/api/authentication.md)
