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

# Get the deposit-rail runtime config

> Return the settings needed to open the hosted deposit flow.

The environment-specific settings needed to open the hosted deposit flow. Read
it once at start-up, before requesting a deposit authorization.


## OpenAPI

````yaml api/openapi.json GET /v1/blink/config
openapi: 3.1.0
info:
  description: Fiat-to-USDC onramp API. The URL prefix (`/v1`) is the version contract.
  license:
    identifier: LicenseRef-Proprietary
    name: Proprietary
  title: Calm API
  version: v1
servers:
  - description: Production
    url: https://api.calmtreasury.xyz
  - description: Sandbox
    url: https://api.sandbox.calmtreasury.xyz
security: []
paths:
  /v1/blink/config:
    get:
      summary: Get the deposit-rail runtime config
      description: >-
        Returns the environment-specific settings the SDK needs to open the
        hosted deposit flow. A null host means the SDK should use its bundled
        default; the merchant identifier is a warm-up hint and carries no
        authority.
      operationId: getBlinkConfig
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  merchant_id:
                    type:
                      - string
                      - 'null'
                  webview_url:
                    format: uri
                    type:
                      - string
                      - 'null'
                required:
                  - webview_url
                  - merchant_id
                type: object
          description: The deposit-rail runtime config.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: >-
            Bad Request — `error.code` includes: publishable_key_missing,
            validation_error.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Unauthorized — `error.code` includes: invalid_publishable_key.'
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Forbidden — `error.code` includes: origin_not_allowed.'
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: 'Too Many Requests — `error.code` includes: rate_limited.'
      security:
        - publishableKey: []
components:
  schemas:
    Error:
      properties:
        error:
          properties:
            code:
              type: string
            message:
              type: string
          required:
            - code
            - message
          type: object
      required:
        - error
      type: object
  securitySchemes:
    publishableKey:
      description: Publishable key identifying the calling app.
      in: header
      name: x-calm-publishable-key
      type: apiKey

````