Gatewayz Universal Inference API
  1. admin
Gatewayz Universal Inference API
  • models
    • Get All Models
    • Get Specific Model Api
    • Get Specific Model Api Legacy
    • Get Developer Models Api
    • Search Models
  • authentication
    • Root
    • Privy Auth
    • Register User
    • Request Password Reset
    • Reset Password
    • Get User Balance
    • User Monitor
    • User Get Rate Limits
    • Get User Profile Endpoint
    • Update User Profile Endpoint
    • Delete User Account Endpoint
    • Get Credit Transactions Endpoint
    • List User Api Keys
    • Create User Api Key
    • Update User Api Key Endpoint
    • Delete User Api Key
    • Get User Api Key Usage
    • Create Api Key
    • Get User Audit Logs
    • Get User Plan Endpoint
    • Get User Plan Usage
    • Get User Plan Entitlements
    • Get User Environment Usage
    • Get User Rate Limits Advanced
    • Update User Rate Limits Advanced
    • Bulk Update User Rate Limits
    • Get Api Key Rate Limit Usage
  • admin
    • Admin Add Credits
      POST
    • Admin Get All Balances
      GET
    • Admin Monitor
      GET
    • Admin Set Rate Limit
      POST
    • Admin Refresh Providers
      POST
    • Admin Cache Status
      GET
    • Admin Huggingface Cache Status
      GET
    • Admin Refresh Huggingface Cache
      POST
    • Admin Test Huggingface
      GET
    • Admin Debug Models
      GET
    • Admin Clear Rate Limit Cache
      POST
    • Get Trial Analytics Admin
      GET
    • Get All Users Info
      GET
    • Get All Credit Transactions Admin
      GET
    • Get User Info By Id
      GET
    • Get Notification Stats
      GET
    • Process Notifications
      POST
    • Assign Plan To User
      POST
    • Get System Rate Limits
      GET
    • Get Rate Limit Alerts Endpoint
      GET
    • Create Coupon Endpoint
      POST
    • List Coupons Endpoint
      GET
    • Get Coupon Endpoint
      GET
    • Update Coupon Endpoint
      PATCH
    • Deactivate Coupon Endpoint
      DELETE
    • Get Coupon Analytics Endpoint
      GET
    • Get Coupon Stats Endpoint
      GET
    • Update Role
      POST
    • Get User Role Info
      GET
    • Get Audit Log
      GET
    • List Users By Role
      GET
    • Get Role Permissions Endpoint
      GET
  • plans
    • Get Plans
    • Get Plan
  • notifications
    • Get Notification Preferences
    • Update Notification Preferences
    • Test Notification
    • Send Usage Report
  • trial
    • Get Trial Status
  • subscription
    • Get Subscription Plans
  • providers
    • Get Providers
  • debug
    • Test Provider Matching
    • Test Refresh Providers
    • Test Openrouter Providers
  • Stripe Payments
    • Stripe Webhook
    • Create Checkout Session
    • Get Checkout Session
    • Create Payment Intent
    • Get Payment Intent
    • Get Credit Packages
    • Create Refund
    • Get Payment History
    • Get Payment Details
    • Create Subscription Checkout
  • chat
    • Chat Completions
    • Unified Responses
    • Anthropic Messages
  • chat-history
    • Create Session
    • Get Sessions
    • Get Session
    • Update Session
    • Delete Session
    • Get Stats
    • Search Sessions
    • Save Message
  • ranking
    • Get Ranking Models
    • Get Ranking Apps
  • Activity
    • Get Activity Stats
    • Get Activity Log
  • coupons
    • Redeem Coupon Endpoint
    • Get Available Coupons
    • Get Redemption History
  • Analytics
    • Get Transaction Analytics
    • Get Transaction Summary
  • statistics
    • Get Provider Statistics
    • Get Gateway Statistics
    • Get All Gateways Summary Endpoint
    • Get Provider Top Models Endpoint
    • Get Trending Models Api
  • comparison
    • Batch Compare Models Api
    • Compare Model Gateways Api
  • referral
    • Get My Referral Stats
    • Validate Referral
    • Generate My Referral Code
    • Get My Referral Code
  • cache
    • Get Cache Status
    • Refresh Gateway Cache
    • Clear All Caches
    • Get Modelz Cache Status
    • Refresh Modelz Cache Endpoint
    • Clear Modelz Cache Endpoint
  • health
    • Get System Health
    • Get Providers Health
    • Get Models Health
    • Get Model Health
    • Get Provider Health
    • Get Health Summary
    • Perform Health Check
    • Perform Immediate Health Check
    • Get Uptime Metrics
    • Get Health Dashboard
    • Get Health Status
    • Get Monitoring Status
    • Start Health Monitoring
    • Stop Health Monitoring
    • Check Google Vertex Health
    • Trigger Gateway Fix
    • Check All Gateways
    • Gateway Health Dashboard
    • Gateway Health Dashboard Data
    • Check Single Gateway
  • images
    • Generate Images
  • analytics
    • Log Event
    • Log Batch Events
  • availability
    • Get Available Models
    • Get Model Availability
    • Check Model Availability
    • Get Fallback Models
    • Get Best Available Model
    • Get Availability Summary
    • Set Maintenance Mode
    • Clear Maintenance Mode
    • Start Availability Monitoring
    • Stop Availability Monitoring
    • Get Availability Status
  • Health Check
    GET
  • Ping
    GET
  • Ping Stats
    GET
  • Get Modelz Models
    GET
  • Get Modelz Model Ids Endpoint
    GET
  • Check Model On Modelz
    GET
  • Get Optimization Health
    GET
  • Get Connection Pool Stats
    GET
  • Get Cache Health
    GET
  • Get Prioritization Stats
    GET
  • Clear Cache
    POST
  • Schemas
    • AddCreditsRequest
    • AssignPlanRequest
    • AnthropicMessage
    • AnalyticsEvent
    • AuthMethod
    • CreateApiKeyRequest
    • ChatMessage
    • AvailableCouponResponse
    • DeleteAccountRequest
    • ChatSession
    • DeleteAccountResponse
    • ChatSessionResponse
    • AvailabilityStatus
    • DeleteApiKeyRequest
    • ChatSessionStatsResponse
    • HTTPValidationError
    • NotificationPreferences
    • ChatSessionsListResponse
    • NotificationStats
    • PlanEntitlementsResponse
    • NotificationType
    • CreateChatSessionRequest
    • CouponAnalyticsResponse
    • PlanResponse
    • CreateCheckoutSessionRequest
    • CouponResponse
    • ContentBlock
    • PlanUsageResponse
    • CreatePaymentIntentRequest
    • CouponScope
    • CreateRefundRequest
    • CouponStatsResponse
    • CircuitBreakerState
    • PrivyAuthRequest
    • CouponType
    • PrivyAuthResponse
    • PrivyLinkedAccount
    • UpdateApiKeyRequest
    • PrivyUserData
    • UserPlanResponse
    • Message
    • CreateCouponRequest
    • UserProfileResponse
    • UpdateNotificationPreferencesRequest
    • UserProfileUpdate
    • ValidationError
    • InputMessage
    • ListCouponsResponse
    • CreateSubscriptionCheckoutRequest
    • ImageData
    • ProxyRequest
    • ImageGenerationRequest
    • RateLimitConfig
    • MessagesRequest
    • ImageGenerationResponse
    • SearchChatSessionsRequest
    • HealthCheckRequest
    • SetRateLimitRequest
    • HealthDashboardResponse
    • StripeCurrency
    • HealthStatus
    • StripePaymentMethodType
    • HealthSummaryResponse
    • SubscriptionStatus
    • UpdateChatSessionRequest
    • RedeemCouponRequest
    • RedemptionHistoryItem
    • UserRegistrationRequest
    • RedemptionHistoryResponse
    • ModelAvailability
    • UserRegistrationResponse
    • RedemptionResponse
    • ModelHealthResponse
    • ResponseFormat
    • ModelStatusResponse
    • ResponseFormatType
    • ResponseRequest
    • RoleAuditLogResponse
    • ReferralStatsResponse
    • RoleResponse
    • SaveChatMessageRequest
    • ProviderHealthResponse
    • ProviderStatus
    • UpdateCouponRequest
    • ProviderStatusResponse
    • UpdateRoleRequest
    • ValidateReferralRequest
    • ValidateReferralResponse
    • SystemHealthResponse
    • UptimeMetricsResponse
  1. admin

Get All Credit Transactions Admin

GET
/admin/credit-transactions
Get all credit transactions across all users (Admin only)
This endpoint allows admins to view all credit transactions in the system with the same
advanced filtering capabilities as the user endpoint.
Differences from user endpoint:
Views ALL users' transactions (unless filtered by user_id)
Requires admin authentication
Optional user_id filter to view specific user's transactions
Filters:
user_id: Filter by specific user (optional, if not provided shows all users)
transaction_type: Filter by type (trial, purchase, api_usage, etc.)
from_date / to_date: Date range filtering (YYYY-MM-DD format)
min_amount / max_amount: Amount range filtering
direction: 'credit' (additions) or 'charge' (deductions)
payment_id: Filter by specific payment
sort_by: Sort by date, amount, or type
sort_order: 'asc' or 'desc'
Response includes:
Filtered transactions list (with user_id included)
Summary analytics (if include_summary=true)

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Query Params

Responses

🟢200OK
application/json
Successful Response
Body

🟠422Unprocessable Entity
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/admin/credit-transactions?limit&offset&user_id&transaction_type&from_date&to_date&min_amount&max_amount&direction&payment_id&sort_by&sort_order&include_summary' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Example 1
null
Modified at 2025-11-07 03:16:46
Previous
Get All Users Info
Next
Get User Info By Id
Built with