# Integration accounts and Settings → Integrations

> What Org Admins find in Settings → Integrations, and how to connect your own ERP, CRM or KPI system with an integration account, its tokens, webhooks, linked records and the KPI report.

Source: https://docs.sofiaspace.uz/integrations/integration-accounts/

**Settings → Integrations** is where an Org Admin connects Sofia Space to other systems for the whole workspace. This page explains each part of it, and in detail the **integration accounts** that let your own systems (an ERP such as 1C, a CRM such as Bitrix24 or amoCRM, a KPI or payroll tool) work in Sofia Space without using a person's account.

**Who can do this:** Org Admins. **Where:** **Settings → Integrations**. Every plan includes integration accounts.

## What's on the Integrations page

| Card | What it's for | Details |
| --- | --- | --- |
| **Integration accounts** | Accounts and API tokens for your other systems. | This page |
| **Webhooks** | Send task, time and page events to your other systems as they happen. | [Webhooks](https://docs.sofiaspace.uz/integrations/webhooks.md) |
| **Code hosting** | GitHub and GitLab connections, so commits and pull requests show on tasks. | [GitHub and GitLab](https://docs.sofiaspace.uz/integrations/github-gitlab.md) |
| **Calendar accounts** | Which members have connected Google Calendar. | [Google Calendar](https://docs.sofiaspace.uz/integrations/google-calendar.md) |
| **Telegram** | Allow Telegram and choose how much message content it shows. | [Telegram](https://docs.sofiaspace.uz/integrations/telegram.md#for-admins-telegram-settings) |
| **Telegram groups** | Telegram groups and topics connected to projects with `/connect`. | [Below](#telegram-groups) |

Members connect their own Telegram and calendars in their own settings; this page is for the workspace as a whole.

## What an integration account is

An integration account is a **member of the workspace that is a system, not a person**. You create one for each system that should work in Sofia Space and name it after that system, for example "1C ERP".

- It has the **role** you pick, and you add it to projects and spaces like a person. It sees and changes only what that role and those memberships allow.
- It **doesn't use a seat** and can't sign in to the app.
- Its **tokens belong to it**, not to the admin who made them, so they keep working when that admin leaves.
- Everything it creates or changes shows its name with an **Integration** badge, on comments, in task history and as an assignee.
- It can never be an Org Admin.
- A workspace can have up to 50 integration accounts.

Use an integration account instead of a [personal API token](https://docs.sofiaspace.uz/integrations/api-tokens.md) when a system, not a person, does the work: a personal token stops working when its owner leaves the workspace.

## Create an integration account

1. Go to **Settings → Integrations**.
2. In **Integration accounts**, choose **New account**.
3. Enter a **Name** (up to 80 characters) — the system that will use it, such as "1C ERP".
4. Optionally add a **Description**: what it does, and who to ask about it.
5. Pick a **Role**. **Member** suits most systems.
6. Choose **Create account**.

Then add it to the projects and spaces it should work in: open the project's (or space's) members settings and add it like a person. Member pickers there offer integration accounts; other people pickers, such as assignee pickers, leave them out.

## Give the system a token

1. Next to the account, choose **New token**.
2. Enter a **Token name**, such as "Production server".
3. Tick what it may do, under **Read** and **Write**:
   - **Read:** **Projects and tasks**, **Docs pages**, **Dashboards and reports**, **Its calendar**, **Its chats**, **Its notifications**.
   - **Write:** **Create and update tasks and comments**, **Create and edit docs pages**, **Set up projects and boards**, **Create and change dashboards and reports**, **Create and answer calendar events**, **Send messages**, **Mark notifications read**, **Change its Home widgets**.
4. Optionally set **Expires on**. Leave it empty for a token that works until you revoke it.
5. Choose **Create token**.
6. **Copy the token now** and store it in the other system. You won't see it again. The system sends it as the `Authorization: Bearer` header on API calls.

The account's role sets the most a token can do. The list shows each token's scopes, when it was last used and when it expires.

The workspace's rules for AI apps (see [Approved AI apps](https://docs.sofiaspace.uz/admin/ai-app-policy.md)) don't apply to integration account tokens; their scopes and the account's role do.

## Change, revoke or delete

- **Edit** changes the account's name, description and role.
- **Revoke** next to a token stops it at once. This can't be undone.
- **Delete** removes the account: its tokens stop working immediately and it leaves every project and space. What it created keeps its name.

## What a connected system can do

With a token, a system calls the same API as the app, under its role. Besides the endpoints in [Personal API tokens](https://docs.sofiaspace.uz/integrations/api-tokens.md), these are made for other systems:

| Scope | Endpoint | Does |
| --- | --- | --- |
| `tasks:write` | `POST /api/v1/orgs/{orgId}/projects/by-key/{KEY}/tasks` | Create a task by names: project key, `type` and `status` by name, `assignee` and `reporter` by e-mail, plus title, description, priority, dates, custom field values and an `externalRef` (`system`, `id`, optional `url` and `label`). |
| `tasks:write` | `PUT /api/v1/tasks/{taskId}/external-refs/{system}/{id}` | Link a task to a record in the other system, with an optional `url` and `label`. |
| `tasks:write` | `DELETE /api/v1/tasks/{taskId}/external-refs/{system}/{id}` | Remove that link. |
| `tasks:read` | `GET /api/v1/orgs/{orgId}/tasks/by-external-ref?system=…&id=…` | Find the task linked to a record. |
| `dashboards:read` | `GET /api/v1/orgs/{orgId}/kpi` | The KPI report per person (see below). Add `format=csv` for a spreadsheet. |

Example: create a task in project **WEB** from a CRM deal, linked to that deal.

```bash
curl -X POST https://<your-workspace>.sofiaspace.uz/api/v1/orgs/<org-id>/projects/by-key/WEB/tasks \
  -H "Authorization: Bearer sophie_pat_..." \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Onboard new client",
    "assignee": "ali.valiyev@example.com",
    "priority": "HIGH",
    "dueDate": "2026-12-15",
    "externalRef": { "system": "crm", "id": "4512", "label": "Deal #4512" }
  }'
```

Names (type, status) match without regard to case. An e-mail must be the member's whole address (any case). An unknown type, status or e-mail is refused with a reason. Retrying is safe: send an `Idempotency-Key` header, or an `externalRef` as here — see [Create without duplicates](https://docs.sofiaspace.uz/api/integrations.md#create-without-duplicates).

An integration account may make **300 API requests per minute**, counted for the account across all its tokens and the same on every plan. It doesn't share this with people's tokens or with other integration accounts. See [Rate limits](https://docs.sofiaspace.uz/api/rate-limits.md).

## Get events from Sofia Space: webhooks

Instead of asking the API every few minutes what changed, your system can be told. A **webhook** sends an HTTPS `POST` to your system when a task is created, changed, completed, reopened, deleted or commented on, when time is logged, or when a page is published. Each call carries a full snapshot of the task and is signed, so your system can check it came from Sofia Space.

- A webhook belongs to an integration account and only sends events from what **that account can see**: add the account to the projects your system should hear about. You can also limit a webhook to some projects.
- Add one in **Settings → Integrations → Webhooks** with **Add webhook**: the `https://` URL, the account, the events and, optionally, projects.

The events, the payload, signature checks in Node.js, Python and PHP, retries and a KPI recipe: [Webhooks](https://docs.sofiaspace.uz/integrations/webhooks.md).

## Linked records on a task

A task's **Linked records** show the records in other systems it belongs to, such as a CRM deal or an ERP order. Systems add them through the API; people can too:

1. On the task, choose **Link record**.
2. Enter the **System** (lower-case letters, digits, `-` and `_`, such as `crm`, `1c` or `bitrix24`) and the **Record ID**.
3. Optionally add a **Link** and a **Label** such as "Deal #4512".
4. Choose **Link**.

Tasks created from Telegram show a **Telegram** linked record pointing to where they came from. Anyone who can edit the task can add or remove linked records.

## The KPI report

The KPI report gives, per person and period: tasks completed, points, on-time rate, open and overdue tasks, median cycle days and hours logged — the same numbers dashboards show.

- **In the app:** on a dashboard that shows the People metric, open the dashboard menu and choose **Download KPI report (CSV)** or **KPI report by month (CSV)**. It uses the dashboard's current range and filters.
- **Through the API:** `GET /api/v1/orgs/{orgId}/kpi` with optional `from` and `to` (dates, default the last 30 days, at most 731 days), `groupBy` (`month` or `week`), `tz`, `userIds`, `projectIds`, `teamIds` and `format=csv`.

Seeing everyone's numbers needs the same right as the dashboards' People view; otherwise only your own (or the account's own) row comes back. The CSV opens correctly in Excel, including Cyrillic and Uzbek letters.

## Telegram groups

The **Telegram groups** card lists every Telegram group or topic connected to a project with `/connect`:

- the group (and topic, or **Whole group**), its **Project**, and how many tasks it created;
- who connected it and when;
- **Disabled — the bot was removed or isn't an admin** if the bot lost access.

You can change a group's **Project**, turn **React with progress** on or off (the bot marks the original message when a task is taken and when it's done), or **Disconnect** it. Disconnecting stops new tasks from that group; tasks already created stay in the project.

When the first group is connected, Sofia Space creates an integration account named **Telegram**. It creates the tasks of people who haven't linked their Telegram, and it's added to each connected project.

To connect a group, see [Telegram → Connect a group or topic to a project](https://docs.sofiaspace.uz/integrations/telegram.md#connect-a-group-or-topic-to-a-project).

:::note
The card also shows **Creates a task from** and **Extra tags**. At the moment the bot creates tasks only from `/task`, whatever is chosen there.
:::

## What you can't do

- Integration accounts can't sign in to the app or be Org Admins, and they don't use seats.
- You can't see a token again after creating it, or change its scopes; create a new one and revoke the old one.
- A webhook can't send events from projects or pages its integration account can't see.
- There are no ready-made connectors for 1C, Bitrix24 or amoCRM yet; connect them through the API.
