Riwayat pemakaian proyek
GET
Memerlukan scope usage:read.
Filter berdasarkan model, proyek, atau rentang waktu ISO 8601 dengan zona waktu. Atur halaman hasil dengan limit dan offset.
BearerKeyheader
AuthorizationBearer <token>API key Tokotoken dari dashboard.
from?stringBatas waktu ISO 8601.
Format
date-timeto?stringBatas waktu ISO 8601.
Format
date-timemodel?stringproject?stringlimit?integerRange
1 <= value <= 100Default
50offset?integerRange
0 <= value <= 1000000Default
0Berhasil.
application/json- response
object*unknowndata*array<>limit*integerRange
0 <= valueoffset*integerRange
0 <= valuecurl -X GET 'https://tokotoken.co/v1/usage' \ -H 'Authorization: Bearer <TOKOTOKEN_API_KEY>'Example Response
{ "object": "list", "data": [ { "id": "string", "projectId": "string", "keyId": "string", "modelId": "string", "status": "string", "inputTokens": 0, "outputTokens": 0, "cost": 0, "reserved": 0, "source": "string", "subscriptionId": "string", "priceVersion": "string", "inputRate": 0, "outputRate": 0, "createdAt": "2019-08-24T14:15:22Z", "settledAt": "2019-08-24T14:15:22Z" } ], "limit": 0, "offset": 0}