List workflow run credits
Lists the credits that the customer’s workflow runs spent between startsAt (included) and endsAt (excluded), day by day in timezone: each item is one day, newest first, with each run that spent credits that day, newest spend first. Filter by workflow or by creditCurrencies. The first and the last day count only the credits inside the period. {customer} takes the customer’s cus_ ID, your externalId, or one of its aliases.
Authentication
Path parameters
The customer: its cus_ ID, your externalId, or one of its aliases.
Headers
This endpoint is in the workflows=v1 beta. Send this header to use it.
Query parameters
The start of the period, included: any ISO 8601 timestamp. The first day counts only the credits from this time.
The IANA time zone, such as Europe/Paris, that cuts the period into days.
Only these credit currencies, by key, such as science_tokens: repeat it for several, up to 100. Leave it out for every currency. An empty value is invalid_request, and a key the account doesn’t have is reference_not_found.
The nextCursor of the previous page. Omit it for the first page.
The end of the period, excluded: any ISO 8601 timestamp after startsAt. Defaults to now. The last day counts only the credits before this time.
Only the runs of this workflow, by its wf_ ID. Leave it out for every workflow.
Response
The type of object. Always list.
When the first page of the list was read. Without endsAt, every page of the list ends at this time.
Send it as cursor to get the next page. Null on the last page.