Доступ
Программа регистрируется сама, доступ ей открывает человек.
Доступ открывает человек. Программа проходит 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
Токен доступа (access token) живёт час. Токен обновления (refresh 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
- segments:read
- read
- segments:write
- inside
- campaigns:read
- read
- campaigns:write
- inside
- agents:read
- read
- agents:write
- inside
- channels:read
- read
- channels:write
- inside
- workspace:read
- read
- workspace:write
- inside
- calendar:read
- read
- calendar:write
- inside
- routing:read
- read
- routing:write
- inside
- contacts:write
- inside
- archive:read
- read
- archive:write
- inside
- dashboard:read
- read
- billing:read
- read
Закрыть доступ можно в настройках воркспейса: отзыв гасит и токен доступа, и токен обновления.