Elly API
  1. API Keys
Elly API
  • API Keys
    • Get current API key details
      GET
    • Get current API key usage statistics
      GET
    • List all API keys
      GET
    • Create a new API key
      POST
    • Revoke an API key
      DELETE
  • Transactions
    • List transactions
      GET
    • Create transaction
      POST
    • Get transaction details
      GET
    • Update transaction
      PATCH
    • Delete transaction
      DELETE
    • Bulk update transactions
      POST
  • Bank Accounts
    • List bank accounts
      GET
    • Create bank account
      POST
    • Get bank account details
      GET
    • Update bank account
      PATCH
    • Delete bank account
      DELETE
    • Get bank account transactions
      GET
  • Statements
    • List bank statements
      GET
    • Upload bank statement file
      POST
    • Get statement details
      GET
    • Get statement transactions
      GET
  • Categories
    • List categories
      GET
  • Reports
    • Cash flow report
      GET
    • Financial summary report
      GET
  • Companies
    • Get company details
  • Schemas
    • TransactionStatus
    • AccountingCategory
    • CashFlowCategory
    • AccountType
    • AccountStatus
    • StatementStatus
    • ApiScope
    • ApiKey
    • Transaction
    • TransactionListResponse
    • TransactionResponse
    • TransactionDetailResponse
    • CreateTransactionRequest
    • UpdateTransactionRequest
    • BulkUpdateRequest
    • BankAccount
    • BankAccountListResponse
    • CreateBankAccountRequest
    • UpdateBankAccountRequest
    • CreateStatementRequest
    • CreateStatementUpload
    • Pagination
    • Error
  1. API Keys

Get current API key usage statistics

GET
/api-keys/me/usage
API Keys
Retrieve usage statistics for the API key being used to make this request.
Includes request counts, endpoint breakdown, response times, and recent requests.

Request

Authorization
API Key
Add parameter in header
X-API-Key
Example:
X-API-Key: ********************
or
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or

Responses

🟢200
application/json
Usage statistics for current API key
Body

🟠401Unauthorized
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://gvazyknvkqdeuzmrnuwu.supabase.co/functions/v1/api-keys/me/usage' \
--header 'X-API-Key: <api-key>'
Response Response Example
200 - Success
{
    "success": true,
    "data": {
        "total_requests": 15234,
        "last_used_at": "2025-01-15T10:30:00Z",
        "last_24h_requests": 523,
        "avg_response_time_ms": 145,
        "endpoints": {
            "/api-v1/transactions": 8500,
            "/api-v1/reports/cash-flow": 3200,
            "/api-v1/reports/summary": 2100,
            "/api-v1/bank-accounts": 1434
        },
        "status_codes": {
            "200": 14800,
            "400": 234,
            "404": 188,
            "500": 12
        },
        "recent_requests": [
            {
                "endpoint": "/api-v1/transactions",
                "method": "GET",
                "status_code": 200,
                "response_time_ms": 180,
                "created_at": "2025-01-15T10:30:00Z"
            },
            {
                "endpoint": "/api-v1/reports/summary",
                "method": "GET",
                "status_code": 200,
                "response_time_ms": 320,
                "created_at": "2025-01-15T10:29:45Z"
            }
        ]
    }
}
Modified at 2025-12-30 00:32:01
Previous
Get current API key details
Next
List all API keys
Built with