# createExport

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

# createExport

`POST /api/v1/exports`

createExport

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

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 | \["export"] |

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

| Поле | Значение |
| - | - |
| 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 | [CreateExportRequest](https://telegafirst.com/docs/schema-580a707e61148951f49848938dba5d2f6da31e8836455830f3e4725102fdd08a) |
| required | true |

## Ответы

| Поле | Значение |
| - | - |
| 202.content.application/json.schema | [CreateExportResponse](https://telegafirst.com/docs/schema-723286bae9fae56aa5657781d9b97f0b2adf9639104c577156d97867890de49a) |
| 202.description | "Queue export creation" |
| 202.headers.X-Bot-Username.description | "Active 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 slug when authenticated metadata supplies it" |
| 202.headers.X-Client-Slug.schema | [202.headers.X-Client-Slug.schema](https://telegafirst.com/docs/schema-00404e686415370f1711c4d7acfa2905444d3cf23cef2e10c47d445ebe690f96) |
| 202.headers.X-RateLimit-Limit.description | "Effective 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 | "Window reset in Unix seconds" |
| 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 | "Invalid request or missing required Idempotency-Key" |
| 401.content.application/problem+json.schema | [ProblemDetails](https://telegafirst.com/docs/schema-c4113f3de00d728702a8663612e2074cbe3e8b3bb70d2b0dee6f3503fe89bd41) |
| 401.description | "Missing, invalid, expired or revoked authentication" |
| 403.content.application/problem+json.schema | [ProblemDetails](https://telegafirst.com/docs/schema-c4113f3de00d728702a8663612e2074cbe3e8b3bb70d2b0dee6f3503fe89bd41) |
| 403.description | "Required scope, plan or resource policy refused the caller" |
| 413.content.application/problem+json.schema | [ProblemDetails](https://telegafirst.com/docs/schema-c4113f3de00d728702a8663612e2074cbe3e8b3bb70d2b0dee6f3503fe89bd41) |
| 413.description | "Request exceeds the per-tool size or item-count limit" |
| 422.content.application/problem+json.schema | [ProblemDetails](https://telegafirst.com/docs/schema-c4113f3de00d728702a8663612e2074cbe3e8b3bb70d2b0dee6f3503fe89bd41) |
| 422.description | "Invalid export filter or Idempotency-Key mismatch" |
| 429.content.application/problem+json.schema | [ProblemDetails](https://telegafirst.com/docs/schema-c4113f3de00d728702a8663612e2074cbe3e8b3bb70d2b0dee6f3503fe89bd41) |
| 429.description | "An export is already active for this key or the resource rate limit was exceeded" |
| 429.headers.Retry-After.description | "Retry delay in seconds when supplied by the resource policy decision" |
| 429.headers.Retry-After.schema | [429.headers.Retry-After.schema](https://telegafirst.com/docs/schema-00404e686415370f1711c4d7acfa2905444d3cf23cef2e10c47d445ebe690f96) |

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

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