post

/v4/credits/estimate/total

Estimate the total credit cost of a points campaign over its full duration (endTimestamp − startTimestamp). Used at creation time to gate campaign submission when the creator's balance is insufficient. Returns estimatedCost (full pro-rated cost) and threshold (= max(estimatedCost, BASE_COST_PER_WEEK)).

Request body

object
startTimestampnumber
required
Campaign start timestamp (unix seconds)
endTimestampnumber
required
Campaign end timestamp (unix seconds)
computedUntilnumberLast computed-until timestamp (unix seconds). Defaults to startTimestamp.
recipientCountnumberExpected recipient count
post
https://api.merkl.xyz/v4/credits/estimate/total
Merkl API
curl -X POST "https://api.merkl.xyz/v4/credits/estimate/total"
Live request — this will call https://api.merkl.xyz/ for real.