Skip to content
Neattrim

Usage history in seconds per meter, receipts

View as Markdown · Open in Claude Desktop

Endpoint
GET /v1/usage
Who can call it
An API key, or an OAuth token for an app.

Parameters

Parameters
NameInTypeRequiredDescription
cursorquerystringno
limitqueryintegerno
group_byqueryanyno

Examples

Set NEATTRIM_API_KEY to your key, then copy an example. A tool that draws from your allowance reads an uploaded file: upload a sample file as in the quickstart and set VIDEO_FILE_ID (or AUDIO_FILE_ID, IMAGE_FILE_ID, SUBTITLES_FILE_ID) to its file_id. Any other id in an example, such as JOB_ID, is read from a variable of the same name.

curl -X GET "https://api.neattrim.com/v1/usage" \
  -H "Authorization: Bearer $NEATTRIM_API_KEY"

Response

200
Usage
Response 200
NameTypeRequiredDescription
dataarray of anyyes
next_cursorstring or nullyes

Errors

400
BAD_REQUEST
401
UNAUTHENTICATED or INACTIVE
403
FORBIDDEN_SCOPE or VOICE_PROTECTED
429
RATE_LIMITED

Every error code and its fix