Methods

Methods

  • 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.

    Returns Promise<RateLimitResponse>

    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.`)