API Documentation

Integrate SmartCopy AI into your own applications. Compatible with OpenAI SDK — just change the base URL.

Authentication

All API requests require an API key. Get yours from the SmartCopy extension dashboard (available to Pro and Team subscribers).

Authorization: Bearer sk_live_xxxxxxxxxxxxxxxx

Base URL

https://api.smartcopy.dev/v1

Endpoints

POST /rewrite

Rewrite text with improved clarity and impact.

ParameterTypeDescription
textstringThe text to rewrite (max 10,000 chars)
curl -X POST https://api.smartcopy.dev/v1/rewrite \
  -H "Authorization: Bearer sk_live_xxx" \
  -H "Content-Type: application/json" \
  -d '{"text":"This product is very good and helps you sleep."}'

{
  "success": true,
  "result": "Experience restful sleep with this premium solution...",
  "usage": { "input_tokens": 25, "output_tokens": 42 },
  "quota_remaining": 458
}
POST /translate

Translate text between Chinese and English with localization.

ParameterTypeDescription
textstringThe text to translate
POST /summarize

Extract key points from long text.

POST /expand

Expand keywords or short descriptions into full copy.

POST /seo

Add SEO keywords to optimize text for search engines.

GET /usage

Get API usage statistics for the authenticated key.

Error Codes

StatusCodeDescription
400-Missing or invalid parameters
401-Invalid or missing API key
429QUOTA_EXCEEDEDMonthly quota limit reached
500-Internal server error
503-AI service temporarily unavailable

Rate Limits

Free: 300 calls/month (10/day). Pro: 5,000 calls/month. Team: 50,000 calls/month. Contact us for enterprise plans.

Ready to build? Upgrade to Pro to get your API key.