Адрес и версия API
Адресhttps://formatry.cc
OpenAPI/api/v1/openapi.json
Версия2026-06-18
АвторизацияAuthorization: Bearer <api-key> или X-API-Key: <api-key>
API-справочник
Загрузите материалы, запустите генерацию серверным ключом и скачайте готовые файлы.
Адресhttps://formatry.cc
OpenAPI/api/v1/openapi.json
Версия2026-06-18
АвторизацияAuthorization: Bearer <api-key> или X-API-Key: <api-key>
СоздатьСоздайте серверный ключ с нужными правами из кабинета или через управленческий ключ.
ХранитьПередавайте секрет через менеджер паролей или серверное хранилище секретов; не сохраняйте его в репозитории и не вставляйте в клиентский код.
ОграничитьВыдайте ключу только права на баланс, загрузки, задания, готовые файлы и проверку истории.
МенятьОтзывайте старый ключ и создавайте новый при смене владельца интеграции.
Swagger и REST
Swagger/OpenAPI URL
https://formatry.cc/api/v1/openapi.json
Импортируйте URL в Swagger UI, Postman, Insomnia или генератор кода OpenAPI.FORMATRY_CC_ORIGIN=https://formatry.cc
FORMATRY_CC_API_KEY=<секретный ключ, показанный один раз при создании>
curl "$FORMATRY_CC_ORIGIN/api/v1/balance" \
-H "Authorization: Bearer $FORMATRY_CC_API_KEY"/api/v1/codex/trial-keyClaim a temporary Codex plugin trial key.
Схема/api/v1/balanceRead the workspace credit balance for the API key.
Ключ доступа/api/v1/usageList recent workspace usage ledger events.
Ключ доступа/api/v1/api-keysList workspace API keys without exposing secrets.
Ключ доступа/api/v1/api-keysCreate a workspace API key and return its secret once.
Ключ доступа/api/v1/api-keys/{apiKeyId}Revoke one workspace API key.
Ключ доступа/api/v1/assetsList workspace assets visible to new generation jobs.
Ключ доступа/api/v1/assets/{assetId}Read one workspace asset by id.
Ключ доступа/api/v1/assets/{assetId}Soft-delete one workspace asset.
Ключ доступа/api/v1/assets/uploadsCreate an upload intent for a workspace asset.
Ключ доступа/api/v1/assets/uploads/transferPrepare a checksum-bound native asset upload.
Ключ доступа/api/v1/assets/uploads/{uploadId}/completeVerify a previously uploaded object and mark the asset ready.
Ключ доступа/api/v1/assets/uploads/{uploadId}/objectUpload bytes for a pending workspace asset.
Ключ доступа/api/v1/assets/upload-objectUpload bytes through the proxy URL returned by an upload intent.
Ключ доступа/api/v1/previews/quotaRead the effective protected-preview allowance and policy.
Ключ доступа/api/v1/previewsCreate one bounded protected PNG preview.
Ключ доступа/api/v1/studio/projects/startCreate a named project and its first blank raster creative.
Ключ доступа/api/v1/studio/projectsList Studio projects for the authenticated workspace.
Ключ доступа/api/v1/studio/projects/{projectId}Read one Studio project and its workspace-owned creatives.
Ключ доступа/api/v1/studio/projects/{projectId}/creativesAdd an independent blank raster creative to an active project.
Ключ доступа/api/v1/studio/projects/{projectId}/creatives/{creativeId}Read one exact Studio creative revision.
Ключ доступа/api/v1/studio/projects/{projectId}/creatives/{creativeId}/commandsApply one atomic typed command to an exact creative revision.
Ключ доступа/api/v1/studio/projects/{projectId}/creatives/{creativeId}/previewCreate a protected preview from one exact saved Studio revision.
Ключ доступа/api/v1/studio/projects/{projectId}/creatives/{creativeId}/export-quotesQuote a paid export from one exact saved Studio revision.
Ключ доступа/api/v1/studio/projects/{projectId}/creatives/{creativeId}/export-quotes/{quoteId}/confirmConfirm one server-issued saved-revision export quote.
Ключ доступа/api/v1/studio/projects/{projectId}/creatives/{creativeId}/export-quotes/{quoteId}/confirm-includedConfirm a raster quote using existing included account allowance.
Ключ доступа/api/v1/studio/presetsRead the effective Studio preset library without changing it.
Ключ доступа/api/v1/studio/brand-kitRead the workspace Brand Kit.
Ключ доступа/api/v1/jobsList workspace-owned generation jobs.
Ключ доступа/api/v1/jobsCreate a paid pack request and reserve workspace balance once.
Ключ доступа/api/v1/jobs/{jobId}Read workspace-owned generation job status.
Ключ доступа/api/v1/jobs/{jobId}/cancelCancel a queued generation job and release reserved balance.
Ключ доступа/api/v1/artifacts/{artifactId}Read the artifact family for a workspace-owned generation job.
Ключ доступа/api/v1/artifacts/{artifactId}/downloadGet short-lived signed artifact download information.
Ключ доступа/api/v1/artifacts/{artifactId}/files/{fileId}/transferPrepare a native download capability for one ready artifact file.
Ключ доступа/api/v1/artifacts/{artifactId}/files/{fileId}/downloadDownload one ready artifact file through scoped API authentication.
Ключ доступа