API

API Documentation

Integrate Marq AI directly into your workflow with our REST API.

Authentication

All API requests require a Bearer token. Get your API key from the dashboard settings.

Authorization: Bearer sk_live_your_api_key_here

Endpoints

POST/api/v1/ads/generateGenerate ad copy variations
POST/api/v1/social/generateGenerate social media posts
POST/api/v1/email/generateGenerate email sequences
POST/api/v1/brand/scanScan website for Brand DNA
GET/api/v1/creditsCheck remaining credits

Example Request

curl -X POST https://api.trymarq.com/v1/ads/generate \ -H "Authorization: Bearer sk_live_..." \ -H "Content-Type: application/json" \ -d '{ "platform": "Meta/Facebook", "goal": "Sales/Conversions", "description": "AI marketing tool", "targetAudience": "Startup founders", "tone": "Professional", "variations": 3 }'

API access is available on Pro and Enterprise plans.

Get Started