Skip to main content
Any verified TechnicallyFit account can create API keys in a free personal developer workspace at app.technicallyfit.com/developer, with no organization required. Organization plans unlock higher rate limits and remove personal workspace caps.
The TechnicallyFit API limits how many requests each API key can make in a minute and in a day. Personal developer workspaces also have workspace-level resource caps. These limits protect your integration and everyone else’s from a runaway loop.

How requests are counted

Each API key has its own counts. One busy system does not use up the limits of another system that calls with a different key. A test key and a live key are counted apart. Every key has two windows:
  • A request counts against the minute first. Every request counts there, including one that is refused.
  • A request counts against the day only when the minute lets it through. A request that the minute refuses does not use up your day.
  • A request that the day refuses does not use up your day either.
Each request takes this path. Your workspace’s plan, or your organization’s contract, sets both limits.

Your limits

Per-key rate limits depend on your workspace plan: These are the standard organization limits. An organization’s contract (Team, Department or Pro) can set other limits for its keys; see Plans. You do not need to know your limits in advance. Every response to your key tells you both limits, how much of each is left and when each window resets. For example, on an Organization plan key:
The headers always carry the limits that apply to your key, so read them there rather than hard-coding these numbers. Email support@technicallyfit.com if you need more room on an Organization plan.

Personal workspace caps

In addition to per-key rate limits, free personal workspaces have workspace-level caps to bound sandbox storage and engine compute: To free space under a personal workspace cap, revoke unused keys, reset the sandbox or disable unused test webhook endpoints. To raise your limits, start a self-serve Team organization directly in the developer portal (app.technicallyfit.com/developer) for immediate test keys and card-verified live keys, or apply for a Department or Pro contract with Upgrade to an organization (/onboarding/business). See Plans.

Live session limits

Connections to the Real-time WebSocket endpoint (/v1/live) have their own limits separate from HTTP per-minute and per-day counts: An organization’s contract can configure higher concurrent live session limits. See Plans.

When a key is over a limit

The API answers with status 429 and the code rate_limit_exceeded. Nothing was read or changed, so it is always safe to send the same request again later. The response carries the same six headers, and Retry-After. The error body says which window refused the request:
429
When the day refuses a request, the wait is the time until the next midnight UTC, so it can be hours. Plan for that: do not hold a person’s screen open waiting for it. The error body has the same shape as every other error. See Errors.

How to recover

  1. Read Retry-After and wait at least that long.
  2. Send the request again.
  3. If it is refused again, wait again. Stop after a few attempts and report the failure with the request_id.
  4. If details.window is day, do not retry in a loop. Queue the work until the day resets, or spread it over more keys (note that the personal daily engine-heavy write cap is shared across all keys in the workspace).
To slow down before you are refused, watch X-RateLimit-Remaining and X-RateLimit-Remaining-Day. When one is close to zero, wait until its reset time. The Errors guide has a short retry function that does this for you. The SDKs do steps 1 to 3 for you. A wait longer than the SDK’s limit (60 seconds by default), such as a day window, is not waited out: the call throws RateLimitError with the wait, so you can queue the work.

How to stay under the limits

  • Use a different key for each system that calls the API, so each has its own count.
  • Spread batch work out over time. Do not send everything at once.
  • Keep reference data you have already read, such as the exercise catalog. It changes rarely, so you do not need to ask for it on every request.
  • Ask for larger pages when you list, so you make fewer calls.

See your requests

Set these two values once in your terminal. Every example in these docs reads them, so no example has a host or a key typed into it.
Use a test key (it starts with tf_test_) while you build. Never paste a live key into a page, a ticket or a chat. Add -i to any call to see the response headers. Every response carries X-Request-ID and the six rate-limit headers, and a 429 also carries Retry-After.
New to the API? Start with the Quickstart.