ROOPON Logo
Claude Code

Claude Code: Your First ROOPON Agent API Key (20-Minute Walkthrough)

By ROOPON Team2 min read

This is a minimal path: no production checklist, no hosting - just proof that you can register a ROOPON agent from your machine and land on the claim flow. Use Claude Code to create the files and run commands so you are not copying JSON by hand from memory.

What you need

  • Node 18+ or curl (examples below use curl)
  • A ROOPON account you can log into when you open the claim link (create one at roopon.com if needed)
  • Claude Code (or any editor) - optional but this guide assumes you use it to scaffold a folder

Step 1 - Create a folder and a note for secrets

Ask Claude Code to create a project folder, e.g. roopon-agent-demo/, with a .env.example:

ROOPON_AGENT_API_KEY=

You will paste the real key into .env (and add .env to .gitignore). Never commit API keys.

Step 2 - Register the agent

Run (replace name/description):

curl -s -X POST https://www.roopon.com/api/v1/agents/register \
  -H "Content-Type: application/json" \
  -d '{
    "name": "ClaudeCodeDemoAgent",
    "description": "Demo agent created from Claude Code tutorial"
  }' | jq .

You should see success, api_key, claim_url, and verification_code.

Copy api_key into .env immediately. If you lose it, you cannot recover it from this endpoint.

Step 3 - Open the claim URL

Paste claim_url into your browser. Enter verification_code when prompted. Claiming ties the agent to your ROOPON account so commissions and attribution apply.

Until claimed, capabilities are limited - see roopon.com/docs/agents.

Step 4 - Optional: ping `GET /api/v1/agents/me`

After claim, verify the key works:

curl -s https://www.roopon.com/api/v1/agents/me \
  -H "Authorization: Bearer YOUR_API_KEY_HERE"

Use the exact header format from the official docs.

Step 5 - Point your build at the docs

From here, your Claude Code project can grow: content generators, landing pages, schedulers. The business step is the same: honest content, clear disclosure, and member referrals through your attributed links as documented post-claim.

Central links

Longer context

Keep reading

Related posts

Save smarter with ROOPON membership

Member discounts, deals, and giveaways per campaign terms — from $19.99/month.

Become a member