You need a Semji account to follow this guide. Sign up or log in at app.semji.com.
1. Create your API key
1
Open API key settings
Log in to app.semji.com, then go to Settings > Organization > API Keys.
2
Generate a key
Click New API key, give it a name (e.g.
quickstart), and click Create.3
Copy the key
Your key is shown once. Copy it now — you won’t be able to see it again. All keys start with
sk_.process.env. Python examples read them with os.environ[...].
2. Test your key
CallGET /v1/me to verify your key works and see your organization:
3. Get your workspace
A workspace represents one website in Semji. List your workspaces to grab theid you’ll use in the next steps:
4. Import a page and optimize it
Import the page
Import a URL into your workspace. You can optionally attach a focus keyword right away:id and crawled metadata (title, word count, etc.). Save the page ID for the next step:
Create a content draft
Create a content linked to the page you just imported:Analyze the focus keyword
Before generating content, the focus keyword needs a completed SEO analysis. Trigger it withPOST /v1/keywords/:id/analyze using the keyword ID returned during page import:
GET /v1/keywords/:id until analysisStatus reaches success:
The analysis typically completes within 30 to 90 seconds.
Launch Atomic Content
Trigger an AI content generation on the draft. Usereplace to generate from scratch or optimize to rewrite existing content:
Poll for completion
The generation runs asynchronously. PollGET /v1/contents/:id/generation until the status reaches review:
queued → pending → review → success (after confirm) or failed / cancelled.
Confirm the draft
Once the status isreview, confirm the generation to apply it to your content:
What’s next?
API Reference
Explore all available endpoints.
Authentication
Rate limits, error handling, and key management.