Generate an AI draft translation for a locale
Requires ADMIN and a configured Workers AI binding. Result always lands as status=draft, origin=ai; never auto-published. No request body.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Tenant project id (row-level isolation on every query).
Email template id.
Language variant locale (normalized against the supported locale set).
Responses
Section titled “Responses”Draft variant.
object
object
Unsupported locale.
object
Human-readable error message.
Examplegenerated
{ "error": "example", "message": "example"}Not authenticated (no valid session/principal).
object
Human-readable error message.
Examplegenerated
{ "error": "example", "message": "example"}Authenticated but lacks the required project role.
object
Human-readable error message.
Examplegenerated
{ "error": "example", "message": "example"}Resource not found (or belongs to another project — indistinguishable).
object
Human-readable error message.
Examplegenerated
{ "error": "example", "message": "example"}Locale already published.
object
Human-readable error message.
Examplegenerated
{ "error": "example", "message": "example"}Placeholder mismatch in generated translation.
object
Human-readable error message.
Examplegenerated
{ "error": "example", "message": "example"}AI generation failed.
object
Human-readable error message.
Examplegenerated
{ "error": "example", "message": "example"}Workers AI binding not configured, or ai_unavailable.
object
Human-readable error message.
Examplegenerated
{ "error": "example", "message": "example"}