Skip to Content
API ReferenceOverview

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.co

API 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:

FunctionMethodPurpose
generate-contentPOSTTrigger content generation for an automation
syncPOSTRefresh OAuth tokens and sync channel data
import-channelsPOSTImport channels from a connected platform
connectPOSTHandle OAuth callback and store credentials
text-assistPOSTAI text enhancement and editing
media-assistPOSTAI 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