Для AI-агентов: markdown этой страницы — /docs/api-op-registerminiapporigin.md · индекс документации — /llms.txt
registerMiniAppOrigin
Обновлено
POST /api/v1/tools/onboarding/mini-app-origin
registerMiniAppOrigin
#Авторизация и права
Scopes: ALL. Auth alternatives: OR; scopes внутри альтернативы: ALL.
| Поле | Значение |
|---|
| security.0.hubApiKey | [] |
| security.1.hubBearer | [] |
| securitySchemes.hubApiKey.in | "header" |
| securitySchemes.hubApiKey.name | "X-Api-Key" |
| securitySchemes.hubApiKey.type | "apiKey" |
| securitySchemes.hubBearer.scheme | "bearer" |
| securitySchemes.hubBearer.type | "http" |
| x-required-scopes | ["onboarding:write"] |
#Параметры запроса
| Поле | Значение |
|---|
| 0.description | "Required for the nonempty canonical Mini App registration request." |
| 0.in | "header" |
| 0.name | "Idempotency-Key" |
| 0.required | true |
| 0.schema | 0.schema |
#Тело запроса
#Ответы
| Поле | Значение |
|---|
| 201.content.application/json.schema | MiniAppOriginRegistration |
| 201.description | "Owner-confirmed Mini App origin recorded; no Bot API mutation occurs (ADR-076 / ADR-149)." |
#Ошибки
| Поле | Значение |
|---|
| 400.content.application/problem+json.schema | ProblemDetails |
| 400.description | "Request body failed validation — a non-HTTPS origin, an unknown zone, or a smuggled tenant id." |
| 401.content.application/problem+json.schema | ProblemDetails |
| 401.description | "Missing, invalid, revoked, or expired Hub credential." |
| 403.content.application/problem+json.schema | ProblemDetails |
| 403.description | "The authenticated credential lacks the onboarding:write scope." |
#Дополнительные условия
| Поле | Значение |
|---|
| operationId | "registerMiniAppOrigin" |
| tags | ["onboarding"] |
| x-idempotency | "http-cache" |