The rate limit endpoint allows you to see your monthly account-level and per minute user-level API limits and usage. The monthly account-level call limit resets at the end of each calendar month.
More details here.
The rate limit resource, a JSON body of data including limits, calls remaining, seconds until reset and call count.
const rateLimit = await affinity.rateLimit.get()console.log(`You have ${rateLimit.rate.org_monthly.remaining} calls left this month.`) Copy
const rateLimit = await affinity.rateLimit.get()console.log(`You have ${rateLimit.rate.org_monthly.remaining} calls left this month.`)
The rate limit endpoint allows you to see your monthly account-level and per minute user-level API limits and usage. The monthly account-level call limit resets at the end of each calendar month.
More details here.