# Get Usage Summary `GET https://api.getprospect.com/v2/usage/summary` Credits spent and requests made, from the per-day rollup, over an inclusive UTC day range of at most 62 days. Free: no credits. `group_by=day` returns a time series; `group_by=source` one row per channel|action|entity. Workspace admins may filter by `users`; a member always sees their own usage. ## Authentication Pass your API key in the `x-api-key` header. ## Query parameters - `from` (string, required): First UTC day, inclusive, YYYY-MM-DD. Example: `"2026-10-01"` - `to` (string, required): Last UTC day, inclusive, YYYY-MM-DD. The range spans at most 62 days. Example: `"2026-10-07"` - `users` (string, optional, max length: 5000): Comma-separated user ids. Workspace admins only; a member always sees their own rows. - `channel` (enum, optional): Only this channel. Allowed values: `app`, `extension`, `sheets`, `api`, `mcp`. - `action` (enum, optional): Only this action. Allowed values: `search`, `enrich`, `enrichment`, `save`, `export`, `csv_enrichment`, `email_verify`, `lookup`, `other`. - `entity` (enum, optional): Only this entity. Allowed values: `people`, `companies`. - `group_by` (enum, required): `day` for a time series, `source` for channel|action|entity rows. Allowed values: `day`, `source`. ## Example request ```bash curl --request GET \ --url https://api.getprospect.com/v2/usage/summary \ --header 'Content-Type: application/json' \ --header 'x-api-key: YOUR_API_KEY' ``` ## Response 200 The usage. ```json { "success": true, "data": { "totals": { "email_search": 42, "email_verification": 120, "phone_search": 3, "email_credits": 42, "verification_credits": 120, "phone_credits": 3, "searches": 18, "enriches": 42, "people_searches": 18, "company_searches": 0, "people_enriches": 42, "company_enriches": 0, "email_finds": 0, "total_credits": 165 }, "series": [ { "key": "2026-10-06", "people_searches": 11, "company_searches": 0, "people_enriches": 30, "company_enriches": 0, "email_finds": 0, "email_search": 30, "email_verification": 120, "phone_search": 3, "email_credits": 30, "verification_credits": 120, "phone_credits": 3, "searches": 11, "enriches": 30 }, { "key": "2026-10-07", "people_searches": 7, "company_searches": 0, "people_enriches": 12, "company_enriches": 0, "email_finds": 0, "email_search": 12, "email_verification": 0, "phone_search": 0, "email_credits": 12, "verification_credits": 0, "phone_credits": 0, "searches": 7, "enriches": 12 } ] }, "metadata": { "timestamp": "2026-10-08T09:30:00.000Z" } } ``` ## Response 400 Invalid query (`VALIDATION_ERROR`): a malformed day, `to` before `from`, a range over 62 days, or an unknown filter value (`payload.code`). ```json { "success": false, "data": null, "metadata": { "timestamp": "2026-10-08T09:30:00.000Z" }, "errors": [ { "name": "VALIDATION_ERROR", "message": "group_by: \"week\" is not an accepted value. Accepted: day, source", "payload": { "field": "group_by", "code": "value_not_allowed", "received_value": "week", "received_type": "string", "invalid_values": [ "week" ], "allowed_values": [ "day", "source" ], "constraints": { "isIn": "group_by must be one of the following values: day, source" } } } ] } ``` ## Response 401 Missing, unknown or inactive credentials (`UNAUTHORIZED`). ## Response 500 Unexpected server error.