Skip to main content
POST
Rewrite one section of existing content, optionally under an instruction (1 credit)

Authorizations

Authorization
string
header
required

A WriterzRoom API key.

Body

application/json
section_content
string
required

The section text to rewrite.

content_id
string | null

The saved document this section belongs to, if any.

section_heading
string | null

The section's heading.

preceding_context
string | null

Text before the section, so the rewrite connects to it.

following_context
string | null

Text after the section, so the rewrite connects to it.

full_document_title
string | null

The document's title.

template_id
string | null

Template the document was written with.

style_profile_id
string | null

Style profile to keep the rewrite in.

instruction
string | null

What to change, such as "make this more concise".

max_tokens
integer
default:8000

Output ceiling; raised automatically when the section needs more.

temperature
number
default:0.5

Sampling temperature, where the model supports one.

Response

Successful Response

regenerated_content
string
required
word_count
integer
required
credits_charged
integer
default:1