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

# Set Up Your Team and Configure Your Workspace

> Register a business account, configure IMS notification settings, and invite team members with the right roles to start managing incidents in Scrubbe.

Before you can invite teammates or start managing incidents, you need to set up your business profile and configure your incident management system (IMS). This page walks you through the full onboarding flow — from registering your business account to adding your first team members.

## Onboarding flow

<Steps>
  <Step title="Register your account">
    Create a Scrubbe account at [app.scrubbe.com](https://app.scrubbe.com). During registration, select **BUSINESS** as your account type to unlock team management and IMS features.

    <Info>If you select **DEVELOPER** as your account type, you will not have access to team invitations or IMS configuration. You can upgrade your account type at any time from your account settings.</Info>
  </Step>

  <Step title="Set up your business profile">
    Call the business setup endpoint to register your organization's details. Replace the placeholder values with your actual business information.

    ```http theme={null}
    PUT /api/v1/business/setup
    ```

    <CodeGroup>
      ```json Request body theme={null}
      {
        "businessName": "Acme Corp",
        "industry": "Technology",
        "size": "51-200"
      }
      ```

      ```bash cURL theme={null}
      curl --request PUT \
        --url https://api.scrubbe.com/api/v1/business/setup \
        --header 'Authorization: Bearer YOUR_TOKEN' \
        --header 'Content-Type: application/json' \
        --data '{
          "businessName": "Acme Corp",
          "industry": "Technology",
          "size": "51-200"
        }'
      ```
    </CodeGroup>
  </Step>

  <Step title="Configure your IMS">
    Set up your incident management system to control how Scrubbe handles alerts, notifications, and escalations for your team.

    ```http theme={null}
    POST /api/v1/ims/setup
    ```

    ```json Request body theme={null}
    {
      "alertEmail": "oncall@acme.com",
      "slackChannel": "#incidents",
      "slaEnabled": true,
      "autoEscalate": true,
      "notifyOnCreate": true,
      "notifyOnResolve": true,
      "timezone": "America/New_York"
    }
    ```

    | Field             | Type    | Description                                                  |
    | ----------------- | ------- | ------------------------------------------------------------ |
    | `alertEmail`      | string  | Email address that receives incident alert notifications.    |
    | `slackChannel`    | string  | Slack channel name where incident notifications are posted.  |
    | `slaEnabled`      | boolean | Enable SLA tracking for incidents.                           |
    | `autoEscalate`    | boolean | Automatically escalate incidents that breach SLA thresholds. |
    | `notifyOnCreate`  | boolean | Send notifications when a new incident is created.           |
    | `notifyOnResolve` | boolean | Send notifications when an incident is resolved.             |
    | `timezone`        | string  | IANA timezone used for SLA calculations and timestamps.      |

    Once your IMS is set up, you can update any of these fields at any time:

    ```http theme={null}
    PUT /api/v1/ims/config
    ```

    To review your current IMS configuration:

    ```http theme={null}
    GET /api/v1/ims/config
    ```
  </Step>

  <Step title="Invite team members">
    Send an invitation to each teammate you want to add to your organization. You assign their role and access permissions at the time of invitation.

    ```http theme={null}
    POST /api/v1/business/send-invite
    ```

    ```json Request body theme={null}
    {
      "email": "teammate@example.com",
      "role": "ENGINEER",
      "accessPermissions": ["incidents", "postmortems"],
      "level": "Senior"
    }
    ```

    The `role` field controls what actions the teammate can perform across Scrubbe. The available roles are:

    | Role          | Description                                                |
    | ------------- | ---------------------------------------------------------- |
    | `SUPER_ADMIN` | Full access to all settings, billing, and team management. |
    | `ADMIN`       | Manage team members and configure IMS settings.            |
    | `MANAGER`     | Oversee incident workflows and assign responders.          |
    | `ENGINEER`    | Create and manage incidents.                               |
    | `RESPONDER`   | Respond to assigned incidents.                             |
    | `VIEWER`      | Read-only access to incidents and reports.                 |

    <Tip>Use `accessPermissions` to restrict which resources the teammate can see, even within their role. For example, an `ENGINEER` can be limited to only `["incidents"]` if you do not want them accessing postmortem data.</Tip>
  </Step>

  <Step title="Teammate accepts the invitation">
    When your teammate receives the invitation email, they need to decode the invite token and then accept it.

    **Decode the invite token:**

    ```http theme={null}
    POST /api/v1/business/decode-invite
    ```

    ```json Request body theme={null}
    {
      "token": "INVITE_TOKEN_FROM_EMAIL"
    }
    ```

    **Accept the invitation:**

    ```http theme={null}
    POST /api/v1/business/accept-invite
    ```

    ```json Request body theme={null}
    {
      "token": "INVITE_TOKEN_FROM_EMAIL"
    }
    ```

    Once accepted, the teammate's account is linked to your organization and they can log in with the role and permissions you assigned.
  </Step>
</Steps>

## View your team members

To see a list of all members currently in your organization, including their roles and access levels:

```http theme={null}
GET /api/v1/business/get_members
```

```bash cURL theme={null}
curl --request GET \
  --url https://api.scrubbe.com/api/v1/business/get_members \
  --header 'Authorization: Bearer YOUR_TOKEN'
```

<Note>Only users with the `ADMIN` or `SUPER_ADMIN` role can view the full member list or send new invitations.</Note>

## Next steps

<CardGroup cols={2}>
  <Card title="API keys" icon="key" href="/account/api-keys">
    Create and manage API keys to authenticate requests to the Scrubbe API.
  </Card>

  <Card title="Billing" icon="credit-card" href="/account/billing">
    Review your plan and manage your subscription.
  </Card>
</CardGroup>
