> ## Documentation Index
> Fetch the complete documentation index at: https://docs.technicallyfit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Plans

> Personal developer workspaces are free. Organizations use the API under a contract (Team, Department or Pro), and the contract sets what the organization's keys may do.

TechnicallyFit has two kinds of developer workspace.

| Workspace | Who it is for | What sets its limits |
| - | - | - |
| Personal (`plan: "free"`) | Any verified TechnicallyFit account, for its own data, reference data and the sandbox. | The free tier in [Rate limits](https://docs.technicallyfit.com/guides/rate-limits.md#your-limits). |
| Organization (`plan: "organization"`) | An organization with an active TechnicallyFit contract. | The organization's contract. |

`GET /v1/organization` tells your key which workspace and plan it belongs to.

```bash curl theme={null}
curl -i "$TF_API_BASE/v1/organization" \
  -H "X-API-Key: $TF_API_KEY"
```

```typescript TypeScript theme={null}
import { createClient } from '@technicallyfit/sdk';

const tf = createClient({ credential: process.env.TF_API_KEY ?? '', baseUrl: process.env.TF_API_BASE });

const organization = await tf.GET('/v1/organization');
console.log(organization.kind, organization.plan);
```

```python Python theme={null}
import os

from technicallyfit import Client

tf = Client(os.environ["TF_API_KEY"], base_url=os.environ.get("TF_API_BASE"))

organization = tf.get_organization()
print(organization["kind"], organization["plan"])
```

```json 200 theme={null}
{
  "id": "4c1e9a7b-3d5f-4b2a-8e6c-0f1a2b3c4d5e",
  "name": "Example Fitness Co.",
  "mode": "live",
  "kind": "organization",
  "plan": "organization",
  "key": {
    "id": "9a8b7c6d-5e4f-4a3b-9c2d-1e0f9a8b7c6d",
    "prefix": "tf_live_k3m9",
    "scopes": ["teammates:read", "teammates:write", "events:write", "programs:read"]
  }
}
```

## Organization plans and contracts

An organization runs on one of three plans: **Team**, **Department** or **Pro**.

* **Team (self-serve):** Start a Team organization directly in the developer portal
  ([app.technicallyfit.com/developer](https://app.technicallyfit.com/developer)). You receive
  test-mode API keys right away, and adding a payment card in the portal activates live-mode
  keys with no charge during card setup.
* **Department and Pro (by contract):** Apply with **Upgrade to an organization** in the
  developer portal (`/onboarding/business`) or email
  [support@technicallyfit.com](mailto:support@technicallyfit.com). TechnicallyFit sets up the
  contract and invoices it outside the product.

The contract sets what the organization's keys may do:

* How many requests each key may make in a minute and in a UTC day.
* How many concurrent live sessions the organization's keys may hold open at once (see
  [Rate limits](https://docs.technicallyfit.com/guides/rate-limits.md#live-session-limits)).
* How many active teammates a month the organization's use covers. A teammate is active in
  a month once the API accepts an event about them.
* How many coach seats the organization has.

The limits are agreed per contract, and the contract is where they are written. Until a
contract states its own request limits, an organization's keys use the standard
organization limits listed in [Rate limits](https://docs.technicallyfit.com/guides/rate-limits.md#your-limits).

To talk about a contract, or about more room on the one you have, email
[support@technicallyfit.com](mailto:support@technicallyfit.com).

## See your own limits

You never need to remember your limits. Read them where the API reports them:

* **On every response.** The `X-RateLimit-Limit` and `X-RateLimit-Limit-Day` headers carry
  the per-minute and per-day limit your key is held to right now, and the other
  `X-RateLimit-*` headers say how much is left. See
  [Rate limits](https://docs.technicallyfit.com/guides/rate-limits.md#your-limits).
* **In the developer portal.** The Usage page at
  [app.technicallyfit.com/developer](https://app.technicallyfit.com/developer) shows the
  limits each key of your organization has, the month's requests and the month's active
  teammates.

Read the limits from the headers rather than hard-coding them: when your contract changes,
the headers change with it.

The SDKs hand you those headers on every answer, so your code can read the limits it is held
to without parsing them:

```bash curl theme={null}
curl -s -D - -o /dev/null "$TF_API_BASE/v1/organization" \
  -H "X-API-Key: $TF_API_KEY" | grep -i '^x-ratelimit-limit'
```

```typescript TypeScript theme={null}
import { createClient } from '@technicallyfit/sdk';

const tf = createClient({
  credential: process.env.TF_API_KEY ?? '',
  baseUrl: process.env.TF_API_BASE,
  onRateLimit: (limit) => console.log('per minute:', limit.limit, 'per day:', limit.limitDay),
});

await tf.GET('/v1/organization');
```

```python Python theme={null}
import os

from technicallyfit import Client

tf = Client(
    os.environ["TF_API_KEY"],
    base_url=os.environ.get("TF_API_BASE"),
    on_rate_limit=lambda limit: print("per minute:", limit.limit, "per day:", limit.limit_day),
)

tf.get_organization()
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.