A proposal from the project's writing model for a passage
post/cms/assist
A proposal from the project's writing model for a passage: a draft, a rewrite, a shorter or longer version, a tone, a summary, a search description, alt text or a translation. Nothing is saved; the result is marked as machine-written.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
content:write- Sdk
content.entry.assist- Cli
content entry assist
Request bodyapplication/json, required
- taskstringrequiredOne of: draft, rewrite, shorter, longer, tone, summary, seo, alt, translate.
- textstringDefault: . At most 12000 characters.
- instructionstringAt most 500 characters.
- tonestringOne of: plain, warm, formal, playful, confident.
- languagestringAt most 20 characters.
Responses
- 200application/jsonSuccess
object - 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring