Integrations
Unslop provides a REST API for detection and rewriting, and an MCP server for compatible assistants such as Claude Code and Codex.
REST API
Send JSON requests with your API key. Rewriting supports plain text, Markdown and HTML.
Authentication
Include these headers with your requests:
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Request examples
Endpoints
POST/v1/rewritesRewrite text
Send text to create a rewrite. Optional fields include writing_style, protected_text and freeze_citations. Use wait: true to wait for a result. If the job is still running, poll GET /v1/rewrites/{id}.
GET/v1/rewrites/{id}Retrieve a rewrite
Retrieve the job status, progress and results using its ID.
POST/v1/detectCheck AI scores
Send text for detector scores. Set sentence_scores: true to include scores for individual text segments.
POST/v1/stylesSave a writing style
Create a style using 3–10 original and rewritten example pairs. Pass the returned style_id with a rewrite request.
POST/v1/reports/compareCompare texts
Compare word counts, numbers and citation strings in original and rewritten text. These checks describe changes; they do not judge meaning.
GET/v1/usageView usage
Read the connected account’s usage and available balance.
MCP
The MCP server exposes detection, rewriting and saved styles as tools. It supports Streamable HTTP with OAuth, or a local stdio connection.
Connection
- HTTP endpoint
/mcp- Authentication
- OAuth for HTTP connections; an API key for the local stdio bridge.
- Clients
- Claude Code, Codex and other MCP-compatible clients.
Available tools
| Tool | Operation |
|---|---|
rewrite_text | Create a rewrite job. |
get_rewrite | Read its status, progress and results. |
rerun_rewrite | Create a revision from an original or stored result. |
detect_text | Request detector scores. |
create_style | Save a style from 3–10 paired writing examples. |
list_styles | List saved writing styles. |
compare_texts | Compare word counts, numbers and citation strings. |
get_account | Read available words, credits and usage. |