ignitionstack.pro v1.0 is out! Read the announcement →
Skip to Content

Postman Collection

Download the complete API collection for testing all IgnitionStack endpoints in Postman.

What’s Included

The collection includes all API endpoints organized by category:

CategoryEndpointsDescription
AI Chat4Streaming chat, vision, custom prompts
AI Documents (RAG)4Upload, list, delete documents
AI Share1Create shareable conversation links
Stripe3Checkout sessions, webhooks
Admin1Image upload
Webhooks1Resend email tracking

Quick Start

Import Collection

  1. Open Postman
  2. Click Import button
  3. Drag and drop the downloaded JSON file or select it from your file system
  4. The collection will appear in your sidebar

Configure Environment Variables

Set up the following variables in your Postman environment:

VariableDescriptionExample
base_urlYour API base URLhttp://localhost:3000
auth_tokenSupabase access tokenGet from browser DevTools
admin_auth_secretAdmin authentication secretFrom .env.local
stripe_price_idStripe price ID for testingprice_xxx
conversation_idUUID for conversation testsGenerated UUID
document_idUUID for document operationsFrom upload response

Get Your Auth Token

To get your Supabase access token:

  1. Login to your IgnitionStack app
  2. Open browser DevTools (F12)
  3. Go to ApplicationLocal Storage
  4. Find the sb-*-auth-token key
  5. Copy the access_token value

Test Endpoints

Start with the basic endpoints:

  1. AI Chat - Send a simple message
  2. Stripe Checkout - Create a test checkout session
  3. Admin Upload - Test image upload (requires admin auth)

API Endpoints Reference

AI Chat

POST /api/ai/chat

Headers:

Authorization: Bearer {auth_token} Content-Type: application/json

Request Body:

{ "message": "Hello, how can you help me?", "provider": "openai", "modelName": "gpt-4o-mini", "temperature": 0.7, "maxTokens": 2048, "conversationId": "uuid (optional)", "systemPrompt": "custom prompt (optional)", "imageData": { "base64": "...", "mimeType": "image/png" } }

Response: Server-Sent Events (SSE) stream


AI Document Upload

POST /api/ai/upload

Headers:

Authorization: Bearer {auth_token} Content-Type: multipart/form-data

Form Data:


Stripe Checkout

POST /api/stripe/create-checkout

Request Body:

{ "priceId": "price_xxx", "isSubscription": false, "locale": "en", "successUrl": "/success", "cancelUrl": "/cancelled", "metadata": {} }

Response:

{ "sessionId": "cs_xxx", "url": "https://checkout.stripe.com/..." }

Testing Webhooks Locally

For webhook testing, use Stripe CLI or ngrok to expose your local server.

Stripe Webhooks

# Install Stripe CLI brew install stripe/stripe-cli/stripe # Login and forward webhooks stripe login stripe listen --forward-to localhost:3000/api/stripe/webhook

Resend Webhooks

Use the Resend dashboard to configure your webhook URL. For local testing, use a tunnel service like ngrok:

ngrok http 3000

Then configure the ngrok URL in Resend webhook settings.

Rate Limits

The API implements rate limiting per endpoint:

EndpointLimitWindow
AI Chat60 requests1 minute
AI Upload10 requests1 minute
Stripe Checkout30 requests1 minute
Admin Upload30 requests1 minute

Exceeding rate limits will return a 429 Too Many Requests response.

Authentication

Most endpoints require authentication via Bearer token:

Authorization: Bearer {supabase_access_token}

Admin endpoints require additional admin session validation.

Webhook endpoints use signature verification instead of Bearer tokens.