Skip to content

Quickstart

This 5-minute walkthrough takes you from a fresh account to your first AI-generated SEO article via the AutoRanq API. By the end you’ll have:

  • An API key (test mode)
  • A project to organize your work
  • A generated article you can read, edit, or publish

Before you start

You need:

  • An AutoRanq account (sign up at autoranq.ai)
  • A terminal with curl, OR Node 18+ / Python 3.9+ if you prefer those
  • Five uninterrupted minutes

Step 1: Create an API key

  1. Open the dashboard at app.autoranq.ai and go to Settings → API.

  2. Create a key with scope read,write. Pick test mode for this walkthrough (your key starts with ar_test_).

  3. Copy the key now — it’s shown only once. Paste it into your terminal:

    Terminal window
    export AUTORANQ_KEY="ar_test_paste_your_key_here"

Step 2: Find your project ID

You need a project_id to generate articles. List your projects:

Terminal window
curl https://api.autoranq.ai/api/public/v1/projects \
-H "Authorization: Bearer $AUTORANQ_KEY"

Copy a project_id from the response — it looks like clxabc123def456ghi789. Export it:

Terminal window
export PROJECT_ID="clxabc123def456ghi789"

Step 3: Generate your first article

Fire a generation job for the keyword "how to start a blog":

Terminal window
curl -X POST https://api.autoranq.ai/api/public/v1/generate \
-H "Authorization: Bearer $AUTORANQ_KEY" \
-H "Content-Type: application/json" \
-d "{
\"project_id\": \"$PROJECT_ID\",
\"keyword\": \"how to start a blog\"
}"

The response includes a generation_id. Save it:

Terminal window
export GEN_ID="clxgen123def456ghi789" # paste from response

Step 4: Watch the generation finish

Generation takes 30-90 seconds depending on the recipe. Poll the status endpoint:

Terminal window
# Poll every 5 seconds until status is COMPLETED or FAILED
while true; do
status=$(curl -s https://api.autoranq.ai/api/public/v1/generations/$GEN_ID \
-H "Authorization: Bearer $AUTORANQ_KEY" | jq -r '.data.status')
echo "$(date +%T) — $status"
[[ "$status" == "COMPLETED" || "$status" == "FAILED" ]] && break
sleep 5
done

Step 5: Read the article

Once status is COMPLETED, the generation contains an article_id. Fetch the article:

Terminal window
article_id=$(curl -s https://api.autoranq.ai/api/public/v1/generations/$GEN_ID \
-H "Authorization: Bearer $AUTORANQ_KEY" | jq -r '.data.article_id')
curl https://api.autoranq.ai/api/public/v1/articles/$article_id \
-H "Authorization: Bearer $AUTORANQ_KEY"

You’ll get back the full article: title, content HTML, meta description, SEO fields, and FAQ section.

What you just built

In ~5 minutes you went from no integration to a programmatic SEO-content pipeline. Real-world usage looks like:

Trigger from your CMS

POST to /generate whenever editors mark a keyword as “ready”. Webhook notifies your CMS when the draft is done.

Bulk-generate from a sheet

Loop through a list of keywords with 100ms throttling — well under the 1000 req/hour rate limit.

Publish to WordPress

Pull content_html after generation, push to WP REST API. ~10 lines of code.

Next steps

  • Authentication — production keys, scopes, rotating compromised keys
  • Webhooks — stop polling, get pushed events with HMAC signatures
  • CLI — same workflow without writing fetch boilerplate (coming in Phase 3)
  • API Reference — full endpoint catalog (coming in v2)