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

# Orgs

> How teams, roles, API keys, provider connections, and notifications define the org used by people and agents.

An org is the shared home for a team's Deepline work. It brings together
members, Plays and runs, provider connections, secrets, data, and billing.
Some CLI output, SDK methods, and API fields still call an org a
**workspace** (for example `workspace_id` and `workspaces.create`); those names
refer to the org. In the product, a workspace is a group inside an org.

One person can belong to several orgs. Each org has its own access
and configuration. For example, a team can keep an internal testing org
separate from a client org, with different credentials, data, and funding.

## Org creation and access

Create another org when a team, customer, or environment needs its own
configuration and data boundary. The dashboard, CLI `org create`, and SDK
`workspaces.create` support this workflow. The CLI also selects the created org. Each new org still needs
its own provider connections and funding.

Org settings also control how people join. Invitations and configured
verified-domain access connect a person to the org. The person's membership
then determines their role. Enterprise org owners and admins can configure
supported OIDC or SAML single sign-on, including domain verification. The
[API reference](https://deepline.com/docs/api-reference.md) and `deepline org sso --help` describe
those controls.

## People and roles

Members share the org's available operations. Roles determine which
org-wide settings they can change:

| Role | Main responsibilities and access |
| - | - |
| Member | Work with available Plays, runs, data, and provider actions, subject to each operation's requirements. |
| Admin | Member access plus administrative controls such as provider connections and secret management. |
| Owner | Administrative access plus owner controls, including changing member roles and renaming the org. |

The org's team settings show members and invitations. Provider access
also depends on authorization in the provider's system. A Deepline admin role
does not grant access to an unrelated CRM or advertising account.

Roles do not replace approval for a particular outcome. A member may be able to
call a CRM action, while the team still needs to approve the proposed record changes.

## Select the org for each interface

The dashboard's org selector changes the org shown in that browser
session. An API key identifies one org for an application or CLI caller.
An MCP connection uses the org authorized for that connection.

These are separate sessions. Switching the dashboard does not retarget an
already configured application or agent. Verify the effective org before
using customer data or starting provider work.

The CLI can bind a project folder to an org. Separate folders can therefore
serve different teams or customers. Process environment credentials take
precedence over a saved folder binding. [Choose an org for each
project](https://deepline.com/docs/sdk-v2/multi-org.md) explains selection and verification.

## API keys

A Deepline API key authenticates calls to Deepline. It is different from a
provider API key, which authorizes access to that provider.

Verified org members can create their own Deepline API keys in
[API keys](https://code.deepline.com/dashboard/api-keys). Keys belong to a member
and org. The member's current access determines available operations.
Members can manage their own keys, while owners and admins can manage other
members' keys where the control permits it.

Use separate keys for independently operated callers, such as an agent session
and a production integration. Keep key values in trusted secret storage. Key
rotation or revocation affects callers using that key, so update those callers
and verify their access.

The [API reference](https://deepline.com/docs/api-reference.md) documents authenticated application
access. [Agent interfaces](https://deepline.com/docs/designed-for-agents.md) explains the CLI, SDK, and MCP
relationships.

## Provider connections and secrets

A provider connection gives org operations access to a provider account.
Owners and admins connect, update, enable, disable, or disconnect integrations.
Members can use available connections when the selected action permits it.
The connection's provider scopes still limit what it can read or change.

Some actions offer Deepline-managed access and need no customer connection.
Other actions require your provider account. [Connect integrations](https://deepline.com/docs/integrations.md)
explains setup. [Pricing and credits](https://deepline.com/docs/pricing.md) explains managed access and BYOK.

[Secrets](https://deepline.com/docs/secrets.md) hold private values used by authored Plays, such as an
authenticated callback token. They have their own scope and management controls.
Saving a secret does not connect a provider. A provider key in a local shell
does not configure a hosted org connection.

## Data and billing boundaries

Runs, saved results, and the Database are associated with the org used by
the caller. [Database](https://deepline.com/docs/data-lifecycle.md) explains where working data and
retained results live. Sharing a data link or writing to a destination requires
its own supported sharing or access mechanism.

The org also owns its plan, credits, and Usage cap. Simultaneous users
and applications consume that org's funding. A separate org has
separate settings. Switching orgs does not transfer a balance or provider
connection.

## Notifications

[Notifications](https://code.deepline.com/dashboard/settings/notifications)
connect org events to destinations. Groups combine event rules, email or
Slack destinations, and delivery timing. A group can cover credit conditions,
Play outcomes, or other supported events. Org participants can manage
notification routes. This is separate from admin-only provider connection setup.

For example, a Play failure rule can select all runs, scheduled runs,
webhook-triggered runs, or a specific Play. Its configured failure threshold
determines when it matches. [Play runs](https://deepline.com/docs/play-runs.md) explains the run states and
evidence used for recovery.

Email recipients can unsubscribe from a group's messages. Slack delivery needs
a connected org account and an accessible channel or member destination.
The group's rules, timing, enabled destinations, and recipient preferences
determine delivery. A failed run is not a promise that every member receives email.


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