Skip to main content
GET
/
api
/
auth
/
transactions
/
spent_credits
/
Fetch spent credits transactions
curl --request GET \
  --url https://api.generect.com/api/auth/transactions/spent_credits/ \
  --header 'Authorization: <api-key>'
{
  "spent_credits": {
    "2025-01-01T00:00:00": {
      "/api/linkedin/leads/by_icp/": -4428,
      "/api/linkedin/companies/by_icp/": -39,
      "/api/linkedin/company/by_link/": -5,
      "/api/linkedin/lead/by_link/": -3,
      "/api/linkedin/email_finder/": -1,
      "platform": -9
    },
    "2024-12-01T00:00:00": {
      "/api/linkedin/leads/by_icp/": -383,
      "/api/linkedin/company/by_link/": -17,
      "/api/linkedin/companies/by_icp/": -156,
      "/api/linkedin/lead/by_link/": -6,
      "platform": -12
    },
    "2024-11-01T00:00:00": {
      "/api/linkedin/companies/by_icp/": -101,
      "/api/linkedin/leads/by_icp/": -1720,
      "platform": -1469
    }
  },
  "total_spent_credits": -8349
}

Filtering

The /api/auth/transactions/spent_credits/ endpoint allows you to get all spent credits grouped by endpoints in the period.

Period

Must be on of: day, week, month, quarter, year.

Date

  • Date: yyyy-mm-dd
    Example: 2025-01-01
  • Date and Time: yyyy-mm-ddTHH:MM:SS.ssssss
    Example: 2025-01-01T02:03:04.000000

Authorizations

Authorization
string
header
required

Query Parameters

timezone
string
required
period
enum<string>
required
Available options:
day,
week,
month,
quarter,
year
start_date
string<date>
required
end_date
string<date>
required

Response

200 - application/json
spent_credits
object
Example:
total_spent_credits
number
Example: