Get usage history
GET
https://api.poe.com/usage/points_historyOverview
Retrieve your usage history with detailed information about each API call.
Features:
- Entries are fetched by creation time, descending (most recent first)
- Pagination support via
starting_aftercursor - Data available for up to 30 days
- Maximum 100 entries per request
Authentication
Send your Poe API key in the Authorization header:
Authorization: Bearer sk_test_51SAMPLEKEYAll requests must be made over HTTPS.
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
limit | query | integer | Optional | Number of entries to return (max 100, default 20) Min: 1 ยท Max: 100 ยท Default: 20 |
starting_after | query | string | Optional | Pagination cursor - use the query_id from the last entry of a previous response |
Responses
| Field | Type | Required | Description |
|---|---|---|---|
has_more | boolean | Optional | Whether there are more entries available for pagination |
length | integer | Optional | Number of entries in the current response |
data | object[] | Optional | |
data[].creation_time | int64 | Required | Unix timestamp in microseconds when the query was created |
data[].bot_name | string | Required | Name of the bot or model used |
data[].query_id | string | Required | Unique identifier for the query (used for pagination) |
data[].usage_type | "API" | "Chat" | "Canvas App" | Required | Descriptor for where the points were used Allowed values: API, Chat, Canvas App |
data[].cost_points | integer | Required | Number of points consumed by this query |
โ Error codes
| Http | Type | Description |
|---|---|---|
| 401 | authentication_error | Authentication failed Invalid API key |
Best Practices
Use the starting_after cursor for pagination. The query_id from the last entry can be used to fetch the next page of results.
Implement pagination for large result sets:
- Start with a reasonable
limit(20-50 entries) - Use
has_moreto determine if more pages exist - Pass the last
query_idasstarting_afterfor next page - Data is available for 30 days
๐ Callbacks & webhooks
No callbacks or webhooks are associated with this endpoint.