Runtime contract
Originhttps://formatry.cc
OpenAPI/api/v1/openapi.json
Version2026-06-18
AuthAuthorization: Bearer <api-key> or X-API-Key: <api-key>
API reference
Connect a server integration with scoped keys, the Swagger-compatible OpenAPI schema, and the paid creative-pack request loop.
Originhttps://formatry.cc
OpenAPI/api/v1/openapi.json
Version2026-06-18
AuthAuthorization: Bearer <api-key> or X-API-Key: <api-key>
CreateCreate a scoped server key from account access or with an existing management key.
StoreKeep the secret in a password manager or server secret store; never commit it or paste it into client code.
LimitGive the designer only the scopes needed for balance, uploads, jobs, artifacts, and usage checks.
RotateRevoke and create a new key when the integration owner changes.
Swagger and REST
Swagger/OpenAPI URL
https://formatry.cc/api/v1/openapi.json
Import this URL into Swagger UI, Postman, Insomnia, or OpenAPI codegen.FORMATRY_CC_ORIGIN=https://formatry.cc
FORMATRY_CC_API_KEY=<secret key shown once on creation>
curl "$FORMATRY_CC_ORIGIN/api/v1/balance" \
-H "Authorization: Bearer $FORMATRY_CC_API_KEY"Endpoints
/api/v1/codex/trial-keyClaim a temporary Codex plugin trial key.
Schema/api/v1/balanceRead the workspace credit balance for the API key.
Scoped key/api/v1/usageList recent workspace usage ledger events.
Scoped key/api/v1/api-keysList workspace API keys without exposing secrets.
Scoped key/api/v1/api-keysCreate a workspace API key and return its secret once.
Scoped key/api/v1/api-keys/{apiKeyId}Revoke one workspace API key.
Scoped key/api/v1/assetsList workspace assets visible to new generation jobs.
Scoped key/api/v1/assets/{assetId}Read one workspace asset by id.
Scoped key/api/v1/assets/{assetId}Soft-delete one workspace asset.
Scoped key/api/v1/assets/uploadsCreate an upload intent for a workspace asset.
Scoped key/api/v1/assets/uploads/{uploadId}/completeVerify a previously uploaded object and mark the asset ready.
Scoped key/api/v1/assets/uploads/{uploadId}/objectUpload bytes for a pending workspace asset.
Scoped key/api/v1/assets/upload-objectUpload bytes through the proxy URL returned by an upload intent.
Scoped key/api/v1/previews/quotaRead the effective protected-preview allowance and policy.
Scoped key/api/v1/previewsCreate one bounded protected PNG preview.
Scoped key/api/v1/jobsList workspace-owned generation jobs.
Scoped key/api/v1/jobsCreate a paid pack request and reserve workspace balance once.
Scoped key/api/v1/jobs/{jobId}Read workspace-owned generation job status.
Scoped key/api/v1/jobs/{jobId}/cancelCancel a queued generation job and release reserved balance.
Scoped key/api/v1/artifacts/{artifactId}Read the artifact family for a workspace-owned generation job.
Scoped key/api/v1/artifacts/{artifactId}/downloadGet short-lived signed artifact download information.
Scoped key/api/v1/artifacts/{artifactId}/files/{fileId}/downloadDownload one ready artifact file through scoped API authentication.
Scoped key