Export the tenant's usage of credits as a CSV file
Export the tenant’s usage of Benchling credits as a CSV file. Returns a task; when the task completes, its result contains a presigned download url and an expiration timestamp.
Notes
- Requires tenant admin permission.
- The report reflects only AI credits.
- Returns
400iffromTimestampis later thantoTimestamp, or ifuserIddoes not identify a user in the tenant. - If the export cannot retrieve all usage in the requested range, the result has
truncated: true, nourl, and amessageexplaining why. Narrow the time range and try again.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Headers
EARLY-ACCESS
Set to true to access beta operations via /api/v3.
Request
This endpoint expects an object.
fromTimestamp
Start of the time range of usage events to export
toTimestamp
End of the time range of usage events to export.
includeNonCreditProducts
Whether to include usage that does not draw from the tenant's credit grant. Defaults to true.
userId
Restrict the export to usage by the user with this ID.
Response
Task started
pollingUri
taskId
Errors
400
Bad Request Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error