Доступ
Программа регистрируется сама, доступ ей открывает человек.
Доступ открывает человек. Программа проходит OAuth 2.1 с PKCE и получает пропуск на воркспейс — ровно с теми областями, которые ей выдали.
Порядок вызовов
GET /.well-known/oauth-protected-resource GET /.well-known/oauth-authorization-server POST /oauth/register GET /oauth/authorize?response_type=code&code_challenge_method=S256&… POST /oauth/token
Пропуск живёт час. Обновляющий токен — тридцать суток и меняется при каждом обмене.
Области
- inbox:read
- read
- inbox:write
- inside
- send
- outside
- people:read
- read
- people:write
- inside
- products:read
- read
- products:write
- inside
- companies:read
- read
- companies:write
- inside
- deals:read
- read
- deals:write
- inside
- agents:read
- read
- agents:write
- inside
- channels:read
- read
- channels:write
- inside
- workspace:read
- read
- workspace:write
- inside
Закрыть доступ можно в настройках воркспейса: отзыв гасит и пропуск, и обновление.