# submitFormSubmission

Source: <https://telegafirst.com/docs/api-op-submitformsubmission>
Locale: ru
releaseGitSha: ea133cd4ad87fe549ef000b139be145be9bd1717
sourceContentDigest: d6968262bbac098b25f1d19a8b7d9fec8246758ec3737aa0779c1a4891107730
Version: 2

# submitFormSubmission

`POST /api/v1/form-submissions`

submitFormSubmission

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

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 | \["push:form\_submissions"] |

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

| Поле | Значение |
| - | - |
| 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](https://telegafirst.com/docs/schema-9ac136edb99a2063b3091602181c8d2022fdccb5b514991319d58544c2e57e95) |

## Тело запроса

| Поле | Значение |
| - | - |
| content.application/json.schema | [content.application/json.schema](https://telegafirst.com/docs/schema-a7505246ade40f50d6a3aa4f852e279461ecd9042af201f375c85b676985b9e8) |
| required | true |

## Ответы

| Поле | Значение |
| - | - |
| 202.content.application/json.schema | [202.content.application/json.schema](https://telegafirst.com/docs/schema-22da2ec3a3a5e1c62e53fe92860ad2ef002cda88f9224bacf647e23c0e9ed8cf) |
| 202.description | "Accept a form submission for the authenticated tenant" |
| 202.headers.X-Bot-Username.description | "Active tenant public bot username, when available" |
| 202.headers.X-Bot-Username.schema | [202.headers.X-Bot-Username.schema](https://telegafirst.com/docs/schema-00404e686415370f1711c4d7acfa2905444d3cf23cef2e10c47d445ebe690f96) |
| 202.headers.X-Client-Slug.description | "Active tenant public slug, when available" |
| 202.headers.X-Client-Slug.schema | [202.headers.X-Client-Slug.schema](https://telegafirst.com/docs/schema-00404e686415370f1711c4d7acfa2905444d3cf23cef2e10c47d445ebe690f96) |
| 202.headers.X-RateLimit-Limit.description | "Computed request budget" |
| 202.headers.X-RateLimit-Limit.schema | [202.headers.X-RateLimit-Limit.schema](https://telegafirst.com/docs/schema-00404e686415370f1711c4d7acfa2905444d3cf23cef2e10c47d445ebe690f96) |
| 202.headers.X-RateLimit-Remaining.description | "Remaining budget or unknown" |
| 202.headers.X-RateLimit-Remaining.schema | [202.headers.X-RateLimit-Remaining.schema](https://telegafirst.com/docs/schema-00404e686415370f1711c4d7acfa2905444d3cf23cef2e10c47d445ebe690f96) |
| 202.headers.X-RateLimit-Reset.description | "Budget reset Unix timestamp" |
| 202.headers.X-RateLimit-Reset.schema | [202.headers.X-RateLimit-Reset.schema](https://telegafirst.com/docs/schema-00404e686415370f1711c4d7acfa2905444d3cf23cef2e10c47d445ebe690f96) |

## Ошибки

| Поле | Значение |
| - | - |
| 400.content.application/problem+json.schema | [ProblemDetails](https://telegafirst.com/docs/schema-c4113f3de00d728702a8663612e2074cbe3e8b3bb70d2b0dee6f3503fe89bd41) |
| 400.description | "Malformed or unknown request field, or missing Idempotency-Key on a nonempty POST body" |
| 401.content.application/problem+json.schema | [ProblemDetails](https://telegafirst.com/docs/schema-c4113f3de00d728702a8663612e2074cbe3e8b3bb70d2b0dee6f3503fe89bd41) |
| 401.description | "Missing or invalid API key" |
| 403.content.application/problem+json.schema | [ProblemDetails](https://telegafirst.com/docs/schema-c4113f3de00d728702a8663612e2074cbe3e8b3bb70d2b0dee6f3503fe89bd41) |
| 403.description | "Scope or resource policy refused the request" |
| 404.content.application/problem+json.schema | [ProblemDetails](https://telegafirst.com/docs/schema-c4113f3de00d728702a8663612e2074cbe3e8b3bb70d2b0dee6f3503fe89bd41) |
| 404.description | "Form does not exist for the authenticated tenant" |
| 409.content.application/problem+json.schema | [ProblemDetails](https://telegafirst.com/docs/schema-c4113f3de00d728702a8663612e2074cbe3e8b3bb70d2b0dee6f3503fe89bd41) |
| 409.description | "CONFLICT: command with this Idempotency-Key is already processing" |
| 413.content.application/problem+json.schema | [ProblemDetails](https://telegafirst.com/docs/schema-c4113f3de00d728702a8663612e2074cbe3e8b3bb70d2b0dee6f3503fe89bd41) |
| 413.description | "PAYLOAD\_TOO\_LARGE or ITEM\_COUNT\_EXCEEDED: resource policy cap exceeded" |
| 422.content.application/problem+json.schema | [ProblemDetails](https://telegafirst.com/docs/schema-c4113f3de00d728702a8663612e2074cbe3e8b3bb70d2b0dee6f3503fe89bd41) |
| 422.description | "VALIDATION\_ERROR: submission violates form declaration; changed idempotent body emits IDEMPOTENCY\_KEY\_MISMATCH" |
| 429.content.application/problem+json.schema | [ProblemDetails](https://telegafirst.com/docs/schema-c4113f3de00d728702a8663612e2074cbe3e8b3bb70d2b0dee6f3503fe89bd41) |
| 429.description | "RATE\_LIMIT\_EXCEEDED or RATE\_LIMIT\_UNAVAILABLE: resource limiter refuses or fails closed" |
| 429.headers.Retry-After.description | "Seconds supplied by resource guard when available" |
| 429.headers.Retry-After.schema | [429.headers.Retry-After.schema](https://telegafirst.com/docs/schema-f0765dbf409c74f001806c446f2cf171d8c46b5b15779d54423dde921a4b0670) |
| 500.content.application/problem+json.schema | [ProblemDetails](https://telegafirst.com/docs/schema-c4113f3de00d728702a8663612e2074cbe3e8b3bb70d2b0dee6f3503fe89bd41) |
| 500.description | "INTERNAL\_ERROR: unexpected storage or service failure" |

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

| Поле | Значение |
| - | - |
| operationId | "submitFormSubmission" |
| tags | \["form-submissions"] |
| x-idempotency | "http-cache" |
