Интеграции · Создание · Авторизация · Ссылки
integrations_create_auth_link
Попробуйте три запроса
- Вы указываетеОбъект
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Подготовь «Интеграции / Создание / Авторизация / Ссылки». Для изменения нужны провайдер, returnContext. Покажи объект и ожидаемый эффект до выполнения.
- provider
- Провайдер
- returnContext
- Параметр
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
На учебной записи подготовь «Интеграции / Создание / Авторизация / Ссылки» с параметром provider = google_business. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- provider
- google_business
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Проверь результат «Интеграции / Создание / Авторизация / Ссылки» по исходному ответу. Покажи url, referenceId. Объясни, чем подтвердить эффект для выбранного объекта.
- ЗапросСохранить исходный ключ
- ОтветПроверить статус
- ПроверкаСверить эффект операции
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.
Описание разработчика
Create a short-lived authorization link using an existing configured provider OAuth flow. The server verifies integration-management permission, binds company/user/provider/request to protected single-use native state, and returns only URL, reference and provider. It does not connect accounts automatically, exchange authorization codes, reveal credentials, send a chat message or create a parallel OAuth callback. Providers without a verified native state/callback contract are unavailable. Optional chat return context is checked server-side.
Параметры запроса
- provider
- Existing native provider OAuth flow. Only providers whose protected native start/callback adapter is enabled in this deployment can issue a link. обязательно по схеме · string · варианты google_business, microsoft, snapchat, threads, outlook
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
- returnContext
- Optional safe chat return context. Arbitrary URLs, redirects, email addresses and provider callback parameters are not accepted. необязательно · object
Что вернёт команда
- url
- Short-lived URL produced by the existing native provider OAuth flow and verified against its protected state. The user must finish provider consent; receiving this URL does not connect the integration. обязательно по схеме · string · до символов 16384
- referenceId
- Protected provenance reference bound to the authenticated workspace, user, connection, provider and request. Use this reference when attaching the verified link in Chat. обязательно по схеме · string
- provider
- The verified native provider associated with the authorization request. обязательно по схеме · string · варианты google_business, microsoft, snapchat, threads, outlook
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"provider": {
"type": "string",
"enum": [
"google_business",
"microsoft",
"snapchat",
"threads",
"outlook"
],
"description": "Existing native provider OAuth flow. Only providers whose protected native start/callback adapter is enabled in this deployment can issue a link."
},
"requestId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$",
"description": "Stable request identifier for this link. Use the same ID only for retries; use a new ID after expiry or after completing authorization."
},
"returnContext": {
"description": "Optional safe chat return context. Arbitrary URLs, redirects, email addresses and provider callback parameters are not accepted.",
"type": "object",
"properties": {
"chatId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,128}$",
"description": "Optional existing chat identifier. The server must verify this chat belongs to the same workspace before retaining it as return context."
}
},
"required": [
"chatId"
],
"additionalProperties": false
}
},
"required": [
"provider",
"requestId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"url": {
"type": "string",
"maxLength": 16384,
"format": "uri",
"description": "Short-lived URL produced by the existing native provider OAuth flow and verified against its protected state. The user must finish provider consent; receiving this URL does not connect the integration."
},
"referenceId": {
"type": "string",
"pattern": "^ia_[a-f0-9]{48}$",
"description": "Protected provenance reference bound to the authenticated workspace, user, connection, provider and request. Use this reference when attaching the verified link in Chat."
},
"provider": {
"type": "string",
"enum": [
"google_business",
"microsoft",
"snapchat",
"threads",
"outlook"
],
"description": "The verified native provider associated with the authorization request."
}
},
"required": [
"url",
"referenceId",
"provider"
],
"additionalProperties": false
}