Overview
Secure
API key tied to your active subscription
Fast
Streaming and non-streaming endpoints
Simple
Standard REST API, works with any language
https://your-domain.com/api/v1x-api-key: SUB-xxxxxxxxapplication/jsonAuthentication
The API supports two authentication methods. For programmatic access, use an API key via the x-api-key header. Browser-based access uses your JWT session cookie automatically.
API Key — for programmatic/server use
Pass your subscription key in the x-api-key header. The key must belong to an account with an active subscription. Expired subscriptions return 403 even if the key is valid.
JWT Cookie — for browser use only
When calling from the browser while logged in, the session cookie is used automatically. No additional headers needed. Preference routes require this method.
POST /api/v1/contenify/rewrite/stream Content-Type: application/json x-api-key: SUB-a3f4b8c9d2e1f0...
API Key Management
Manage your API key from Settings → API Key. Only one key exists per account; generating a new one revokes the previous key immediately.
Endpoints
Code Examples
JavaScript / Node.js — Streaming
const res = await fetch("https://your-domain.com/api/v1/contenify/rewrite/stream", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": "SUB-your-api-key-here"
},
body: JSON.stringify({
article: "Your article text or scraped content...",
language: "English",
tone: "professional"
})
});
const reader = res.body.getReader();
const decoder = new TextDecoder();
while (true) {
const { done, value } = await reader.read();
if (done) break;
const lines = decoder.decode(value).split("\n");
for (const line of lines) {
if (line.startsWith("data: ")) {
const data = JSON.parse(line.slice(6));
if (data.type === "content") process.stdout.write(data.chunk);
if (data.type === "complete") console.log("\nDone:", data.data.title);
}
}
}Python — Non-Streaming
import requests
response = requests.post(
"https://your-domain.com/api/v1/contenify/rewrite",
headers={
"Content-Type": "application/json",
"x-api-key": "SUB-your-api-key-here"
},
json={
"article": "Your article text...",
"language": "English",
"tone": "professional",
"wordCount": 600
}
)
data = response.json()["data"]
print(data["title"])
print(data["article"])cURL — Download as PDF
curl -X POST https://your-domain.com/api/v1/contenify/rewrite/download \
-H "Content-Type: application/json" \
-H "x-api-key: SUB-your-api-key-here" \
-d '{
"title": "My Article",
"article": "<p>Article content here...</p>",
"metaKeywords": ["ai", "content"],
"format": "pdf"
}' \
--output article.pdfError Codes
400401403404429500Ready to start building?
Generate your API key from Settings and start integrating Contenify into your project.
Get your API Key