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

# Retrieve Onchain Daily Limit

> This endpoint is deprecated and will be removed in a future version.
Please use `GET /api/v1/accounts/daily-limit` instead.

Retrieves the current onchain daily spending limit for the authenticated user's Safe account.




## OpenAPI

````yaml https://api.gnosispay.com/api-docs/spec.json get /api/v1/accounts/onchain-daily-limit
openapi: 3.0.0
info:
  title: GnosisPay API
  version: 1.0.0
  description: OpenAPI documentation for GnosisPay
servers:
  - url: https://api.gnosispay.com
security: []
tags:
  - name: Account Management
    description: Information about your Account
  - name: Authentication
    description: Authenticate to our API using SIWE
  - name: Card Management
    description: Manage all your Cards
  - name: IBAN
    description: Integrate with Monerium to issue IBANs
  - name: KYC
    description: KYC using Sumsub SDK
  - name: Physical Card Order
    description: Order a Physical Card and manage the process
  - name: Rewards
    description: Cashback Rewards
  - name: Safe Management
    description: Manage your Safe
  - name: Transactions
    description: Manage Card Transactions
  - name: User
    description: Manage User Information
  - name: Webhooks
    description: Manage Webhooks
paths:
  /api/v1/accounts/onchain-daily-limit:
    get:
      tags:
        - Account Management
      summary: Retrieve Onchain Daily Limit
      description: >
        This endpoint is deprecated and will be removed in a future version.

        Please use `GET /api/v1/accounts/daily-limit` instead.


        Retrieves the current onchain daily spending limit for the authenticated
        user's Safe account.
      responses:
        '200':
          description: Successfully retrieved the current onchain daily limit.
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    type: object
                    required:
                      - onchainDailyLimit
                      - onchainDailyRemaining
                    properties:
                      onchainDailyLimit:
                        type: integer
                        description: >-
                          The current daily spending limit in the Safe token's
                          base units.
                        example: 2500
                      onchainDailyRemaining:
                        type: integer
                        description: >-
                          The remaining daily spending limit in the Safe token's
                          base units.
                        example: 1000
        '401':
          description: Unauthorized - invalid or missing authentication token.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Authentication error message.
                    example: Unauthorized
        '404':
          description: Safe account or token not found for the user.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error message explaining why the request failed.
                    example: Couldn't find associated Safe for the user
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Details about the server error.
                    example: An unexpected error occurred.
      deprecated: true
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````