API Documentation

Transform content, publish newsletters, and manage podcasts programmatically

Transform Content

POST /functions/v1/transform-content

Transform text between different formats using AI

{
  "content": "Your content here",
  "sourceFormat": "article",
  "targetFormat": "tweet"
}

Supported formats: article, tweet, linkedin, newsletter, podcast-script

Publish Newsletter

POST /functions/v1/publish-newsletter

Create and publish a newsletter to your custom URL

{
  "title": "Newsletter Title",
  "content": "Newsletter content...",
  "slug": "newsletter-slug"
}

Publish Podcast

POST /functions/v1/publish-podcast

Create and publish a podcast episode

{
  "title": "Episode Title",
  "description": "Episode description...",
  "audioUrl": "https://...",
  "slug": "episode-slug"
}

Authentication

All API requests require authentication using your Supabase access token:

Authorization: Bearer YOUR_ACCESS_TOKEN
Content-Type: application/json

Get your access token from the dashboard after signing up.

Rate Limits & Credits

  • Each API call consumes 1 credit
  • Purchase credit packages from the pricing page
  • Credits never expire
  • Rate limit: 100 requests per minute