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

# Organizations

> Use TinyFish as a team: one bill, your own login and keys, admin controls and single sign-on

> [!WARNING]
>
> **Beta:** Organizations are in beta and available only through sales. [Contact sales](https://rx5dp.share-na2.hsforms.com/2xm5sf8OTQjWqjTTSl9V1tQ) to set one up for your team.

An organization puts your whole team on one TinyFish contract and one bill. Everyone keeps their own login and their own keys, while admins decide who is in, set a monthly spend cap and create keys for shared automations that keep running when people come and go. Your team can sign in through your identity provider with single sign-on.

> [card] One bill
>
> Everything your team does is billed to your organization's contract, at your contract prices.

> [card] Your own login and keys
>
> Each person signs in as themselves and uses their own API keys.

> [card] Admins in control
>
> Admins manage people, keys and a monthly spend cap with alerts.

> [card] Single sign-on
>
> Sign in through your identity provider, with people added and removed automatically.

## How it works

Acme signs a contract with TinyFish. TinyFish creates Acme's organization and invites Priya, who runs Acme's data team, as its owner and first admin.

1. Priya invites her team. Sam joins as a member.
2. Priya creates a **workflow key** for Acme's nightly price-check job. The key belongs to Acme, not to Priya.
3. Sam creates a **personal key** for his own scripts while working for Acme.
4. Both keys share Acme's limits, and all their usage is billed to Acme's contract. Nothing is charged to Sam's or Priya's own accounts.
5. Sam leaves Acme. Priya removes him, and his personal key stops working at once. The nightly job keeps running, because its key belongs to Acme.

## Getting started

**1. TinyFish sets up your organization**

After you sign with [sales](https://rx5dp.share-na2.hsforms.com/2xm5sf8OTQjWqjTTSl9V1tQ), TinyFish creates the organization from your contract, including its limits.

**2. The owner accepts the invitation**

The person named as owner gets an email invitation. Accepting it makes them the organization's first admin.

**3. Invite your team**

Admins invite people from **Settings, Members**, as admins or members.

**4. Create keys**

Create workflow keys for shared automations and personal keys for individual work.

**5. Optional: connect single sign-on**

TinyFish sets up single sign-on and directory sync with your IT team.

## Working for your team or for yourself

You can belong to an organization and still have your own **Personal** account. Use the organization switcher in the dashboard to choose where you're working; keys, usage and settings follow that choice. An API key works for the place it was created in. If you belong to more than one place, connecting an AI tool through MCP asks which one it works for.

Work for the organization is always billed to the organization, never to your own account.

## Roles

Each person is an **admin** or a **member**. Admins invite and remove people, change roles, create workflow keys and set the spend cap. Admins can also let members create their own API keys with **Members can create API keys** in **Settings, General**.

## Personal keys and workflow keys

| | Personal key | Workflow key |
| - | - | - |
| Belongs to | The person who created it | The organization |
| Who creates it | Admins, and members when allowed | Admins |
| Admins can | Revoke it, but never see its value | Everything, including reveal it |
| When its creator leaves | Stops working | Keeps working |

> [!TIP]
>
> Use workflow keys for shared automations and backend services that must keep running when people change. Use personal keys for your own work.

When an admin removes someone, that person's personal keys stop working at once. Workflow keys they created keep working, unless the admin chooses to revoke them too.

## Who sees what

Work is either yours or the team's. Anything you start from the dashboard or with your personal key is yours. Anything a workflow key starts belongs to the team, even though an admin created the key.

| | Mine | Team |
| - | - | - |
| What's in it | What you started from the dashboard or with your personal key, in the place you're working for | What any of the team's workflow keys started, including revoked keys |
| Who can see it | You | Every member, while working for the team |
| Who can cancel a run | You | Team admins, whoever created the key that started it, and any of the team's workflow keys |
| Who can share a run | You | Team admins, and whoever created the key that started it |

On the Agent, Search and Fetch pages, switch between **Mine** and **Team**. The switch only shows while you're working for a team. Through the API, pass `owner=me` or `owner=team` to `GET /v1/runs`, `GET /v1/search/usage` and `GET /v1/fetch/usage`, or the same `owner` option to the MCP tools `list_runs`, `get_search_usage` and `list_fetch_usage`. A personal key reads Mine by default. A workflow key always reads the team's work, so it refuses `owner=me`.

Acme's nightly price-check key reads its own runs and every other Acme workflow key's runs, but never what Priya starts from the dashboard or with her personal key. Priya created that key, but its runs show under Team, not under Mine. Sam, a member, can open them under Team but can't cancel them.

With a personal key you see your own browser sessions. A workflow key sees the sessions of workflow keys made by the same admin.

For a team's run list, `total` stops counting at 1,000. For a team's Search and Fetch lists it's a lower bound. Either way, keep paging while `has_more` is true.

## What your team can use

Teams can use **Agent**, **Browser**, **Search** and **Fetch**. Vault credentials and [TinyProfiles](https://docs.tinyfish.ai/key-concepts/tinyprofile.md) stay with each person, so use them with a personal key.

## Shared limits

Your organization has one shared limit per product, set from your contract. Everyone's work for the organization counts toward it, from the dashboard, the API and connected AI tools alike.

| Product | Limit |
| - | - |
| Search | Requests per minute |
| Fetch | URLs per minute |
| Agent | Runs at the same time |

Agent runs beyond the limit wait for a free slot. To raise a limit, contact sales.

## Spending and alerts

Admins set a **Monthly spend cap** in **Settings, General**, then choose what happens as spending approaches it:

* **Email alerts:** every admin gets an email when spending reaches the percentages you pick, such as 50%, 80% and 100%.
* **Stop at the cap:** turn on **Stop usage when this limit is reached** to pause your team's usage once the cap is reached. Everyone sees a banner, and usage resumes when an admin raises the cap, turns off the stop or your next billing period starts.

> [!NOTE]
>
> The stop is best effort: usage usually stops within a few minutes of reaching the cap. Spend counts usage at your contract prices, before prepaid credits are applied.

## Single sign-on and directory sync

Your team can sign in through your identity provider, for example Okta, with SAML single sign-on. TinyFish sets this up with your IT team during onboarding.

With directory sync, people your identity provider assigns to TinyFish join the organization as members automatically, up to your seat limit. When your identity provider deactivates someone, TinyFish removes them and their personal keys stop working. Workflow keys keep working.

> [!WARNING]
>
> Remove people in your identity provider, not only in TinyFish. Someone who is still active there joins again the next time they sign in.

## Error reference

> [accordion] Errors specific to organizations
>
> These use the standard [error format](https://docs.tinyfish.ai/error-codes.md#error-response-format); a second line in the Response column, when shown, is the `details.reason`. On Search and Fetch requests, the spend cap and billing refusals below have the same status, code and message but no `details.reason`.
>
> | When | Response | What to do |
> | - | - | - |
> | Your organization reached its spend cap and the stop is on | 403 `FORBIDDEN` `spend_limit_reached` | Don't retry. An admin can raise the cap or turn off the stop |
> | Your organization can't pay for the request, or you're no longer a member | 403 `FORBIDDEN` `organization_not_billable` | Don't retry. If you were removed, ask an admin to invite you again; otherwise ask an admin to contact TinyFish |
> | TinyFish couldn't check your organization's billing | 503 `SERVICE_BUSY` `billing_unavailable` | Retry with backoff |
> | A workflow key asked for vault credentials or a TinyProfile | 403 `FORBIDDEN` `workflow_key_personal_credentials` | Use a personal key |
> | You asked to cancel a run you can read but not cancel. In a batch cancel, the run comes back in `results` with `cancelled_at: null` and the same message | 403 `FORBIDDEN` | Don't retry. Ask whoever started the run to cancel it |
> | TinyFish couldn't confirm what kind of key you used, so nothing was read or changed | 503 `SERVICE_BUSY` `organization_unresolved` | Retry in a moment |
> | Your organization's shared Search or Fetch limit, or its Agent queue, is full | 429 [`RATE_LIMIT_EXCEEDED`](https://docs.tinyfish.ai/error-codes#rate-limit-exceeded) | Wait for `Retry-After`, or for runs to finish |
>
> A connected AI tool with no organization chosen returns `organization_choice_required`. Follow the link in its message, or reconnect the tool, to choose one.


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