К содержанию
TelegaFirst

Для AI-агентов: markdown этой страницы — /docs/api-op-createevent.mdиндекс документации — /llms.txt

createEvent

Обновлено

POST /api/v1/tools/events

createEvent

Авторизация и права

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["events:write"]

Параметры запроса

ПолеЗначение
0.description"Required for POST with a body. Same-key replay; changed body returns 422."
0.in"header"
0.name"Idempotency-Key"
0.requiredtrue
0.schema0.schema

Тело запроса

ПолеЗначение
content.application/json.schemacontent.application/json.schema
requiredtrue

Ответы

ПолеЗначение
201.content.application/json.schemaEventView
201.description"createEvent"

Ошибки

ПолеЗначение
400.content.application/problem+json.schemaProblemDetails
400.description"VALIDATION_ERROR or IDEMPOTENCY_KEY_REQUIRED"
401.content.application/problem+json.schemaProblemDetails
401.description"INVALID_API_KEY: X-Api-Key OR Bearer tgf_*; surface JWT is not accepted."
403.content.application/problem+json.schemaProblemDetails
403.description"INSUFFICIENT_SCOPE or PUBLISHABLE_KEY_NOT_ALLOWED"
409.content.application/problem+json.schemaProblemDetails
409.description"CONFLICT: idempotency request still processing"
413.content.application/problem+json.schemaProblemDetails
413.description"PAYLOAD_TOO_LARGE or ITEM_COUNT_EXCEEDED"
422.content.application/problem+json.schemaProblemDetails
422.description"IDEMPOTENCY_KEY_MISMATCH"
429.content.application/problem+json.schemaProblemDetails
429.description"RATE_LIMIT_EXCEEDED or RATE_LIMIT_UNAVAILABLE"
429.headers.Retry-After.description"Seconds supplied by the resource guard when available."
429.headers.Retry-After.schema429.headers.Retry-After.schema
500.content.application/problem+json.schemaProblemDetails
500.description"INTERNAL_ERROR"

Дополнительные условия

ПолеЗначение
operationId"createEvent"
summary"createEvent"
tags["events"]
x-idempotency"generic-cache"
x-paginationnull