Для AI-агентов: markdown этой страницы — /docs/api-op-createsession.md · индекс документации — /llms.txt
createSession
Обновлено
POST /api/v1/sessions
createSession
#Авторизация и права
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 | ["sessions"] |
#Параметры запроса
| Поле | Значение |
|---|
| 0.description | "Required for a nonempty POST body by the canonical24-hour HTTP response receipt." |
| 0.in | "header" |
| 0.name | "Idempotency-Key" |
| 0.required | true |
| 0.schema | 0.schema |
#Тело запроса
#Ответы
| Поле | Значение |
|---|
| 201.content.application/json.schema | CreateSessionResponse |
| 201.description | "Create external session" |
#Ошибки
| Поле | Значение |
|---|
| 401.content.application/problem+json.schema | ProblemDetails |
| 401.description | "Missing, invalid, expired or revoked authentication" |
| 403.content.application/problem+json.schema | ProblemDetails |
| 403.description | "Required scope, plan or resource policy refused the caller" |
| 429.content.application/problem+json.schema | ProblemDetails |
| 429.description | "Sixth login attempt in a 900-second trusted-IP window: RATE_LIMITED" |
| 429.headers.Retry-After.required | true |
| 429.headers.Retry-After.schema | 429.headers.Retry-After.schema |
#Дополнительные условия
| Поле | Значение |
|---|
| operationId | "createSession" |
| tags | ["sessions"] |
| x-idempotency | "http-cache" |