UtilitiesUsage Report

API Usage Report — Filter by Date & Product

Download your API usage report filtered by date range and product. Track call volumes, success rates, and spending across endpoints.

curl -X GET "https://production.deepvue.tech/v1/client/usage-report?generate_excel=true&since_date=example_string&until_date=example_string" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (JWT)" \
  -H "x-api-key: YOUR_API_KEY"
{
  "code": 200,
  "timestamp": 1748417711157,
  "transaction_id": "5a936bcee02d4b7a974db19a4cd1185e",
  "sub_code": "SUCCESS",
  "message": "User usage report generated successfully",
  "data": {
    "file_url": "https://deepvue-tech.s3.ap-south-1.amazonaws.com/client/usage-report/9147835.xlsx",
    "usage_data": [
      {
        "Transaction Id": "9cb1fa27-c768-430c-9aa3-c13c477a1b0b",
        "Timestamp(UTC)": "2024-05-11T23:33:32.092089+00:00",
        "Product Id": "PAN-Plus",
        "Status": 200,
        "Message": "Invalid Pan Number.",
        "Charge": 2.95
      },
      {
        "Transaction Id": "fd93b66e-74e1-4150-8e0f-5b8f78a3a010",
        "Timestamp(UTC)": "2024-05-11T22:25:48.586394+00:00",
        "Product Id": "PAN-Plus",
        "Status": 200,
        "Message": "Pan Verified Successfully.",
        "Charge": 2.95
      },
      {
        "Transaction Id": "15d46c64-41fe-4938-8510-2aa87fba7694",
        "Timestamp(UTC)": "2024-05-11T22:25:07.844149+00:00",
        "Product Id": "PAN-Plus",
        "Status": 200,
        "Message": "Pan Verified Successfully.",
        "Charge": 2.95
      }
    ]
  }
}
GET
/v1/client/usage-report
GET
Bearer Token (JWT)
Bearer Tokenstring
Required

ACCESS_TOKEN generated from the authorize endpoint. Should be included in the header as Bearer .

ACCESS_TOKEN generated from the authorize endpoint. Should be included in the header as Bearer .
API Key (header: x-api-key)
x-api-keystring
Required

The CLIENT_SECRET provided to you. This header parameter is required for authentication purposes.

The CLIENT_SECRET provided to you. This header parameter is required for authentication purposes.
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (JWT). ACCESS_TOKEN generated from the authorize endpoint. Should be included in the header as Bearer .

header
x-api-keystring
Required

API Key for authentication. The CLIENT_SECRET provided to you. This header parameter is required for authentication purposes.

Query Parameters

Responses

codeinteger
timestampinteger
transaction_idstring
sub_codestring
messagestring
dataobject

Overview

This API enables you to generate and retrieve detailed usage reports documenting all API transactions associated with your account. The report captures comprehensive transaction data including transaction identifiers, timestamps, product names, response statuses, result messages, and associated charges for each API call made within a specified timeframe.

The API supports dual response formats -- you can return usage data directly as JSON objects or generate downloadable Excel files via the generate_excel parameter for offline analysis and record-keeping.

The maximum allowed date range is 7 days. Requests exceeding this window are rejected with a 400 error.