API Reference
Integrate with QiQ Social programmatically using the Supabase-powered REST API.
Overview
QiQ Social’s API is built on Supabase, which provides auto-generated REST endpoints for all database tables. Additionally, custom Edge Functions handle complex operations like content generation, publishing, and OAuth flows.
Base URL
All API requests are made to your Supabase project URL:
https://htavwovliunjkqnzknnj.supabase.coAPI Types
Database API (PostgREST)
Supabase automatically generates REST endpoints for all tables. Use these for CRUD operations on:
Edge Functions
Custom server-side functions for operations that require business logic:
| Function | Method | Purpose |
|---|---|---|
generate-content | POST | Trigger content generation for an automation |
sync | POST | Refresh OAuth tokens and sync channel data |
import-channels | POST | Import channels from a connected platform |
connect | POST | Handle OAuth callback and store credentials |
text-assist | POST | AI text enhancement and editing |
media-assist | POST | AI image generation |
Rate Limits
API rate limits are determined by your Supabase plan. Standard limits apply to both database queries and Edge Function invocations.
Quick Start
# List all automations in a workspace
curl 'https://htavwovliunjkqnzknnj.supabase.co/rest/v1/automations?workspace_id=eq.<id>' \
-H "apikey: <anon-key>" \
-H "Authorization: Bearer <access-token>"
# Trigger content generation
curl -X POST 'https://htavwovliunjkqnzknnj.supabase.co/functions/v1/generate-content' \
-H "Authorization: Bearer <access-token>" \
-H "Content-Type: application/json" \
-d '{"automation_id": 123}'Last updated on