GPTMaker icon

GPTMaker

Consume GPTMaker API

Agent → Get Credits Spent

AI-generated

Summary

Retrieve credits spent for an agent.

Inputs

  • agentId (required) — Select the agent. Choose from the list, or specify an ID using an expression.
  • creditsSpentDate — Optional date filter. Internally sent as year, month, and day.

Output shape

API response from GET /v2/agent/{agentId}/credits-spent

Optional date filter sends year, month, day as query parameters.

Examples

Example 1: Get total credits spent for an agent.

Set Agent Name or ID; leave Date blank.

Links

Discussion