GET
/
api
/
auth
/
transactions
/
spent_credits
/
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

Use 'Token <api-key>' as the value

Query Parameters

timezone
string
required

Timezone for date calculations

period
enum<string>
required

The aggregation period for transactions

Available options:
day,
week,
month,
quarter,
year
start_date
string
required

The start date for the transaction filter (ISO 8601 format)

end_date
string
required

The end date for the transaction filter (ISO 8601 format)

Response

200 - application/json

A list of transactions for the specified period and date range

The response is of type object.