Quick Links

Authentication Directory Run Assessment Reports Credits Subscription API Keys CI/CD Integration

API Documentation

LaunchLabs provides a RESTful API for running assessments, fetching reports, and managing your account. All endpoints return JSON.

๐Ÿ”‘ Two Keys You Need

1. LaunchLabs API Key (ll_...)

Authorizes and bills your API calls. Get it from /account/api-keys

2. Target App Auth

Credentials or token to log into YOUR app so our advisors can test authenticated pages.

Authentication

Include your API key in the x-api-key header for all requests:

x-api-key: ll_your_api_key_here

Directory

Get the canonical list of all advisors with names, IDs, and credit costs.

GET /api/agents

Returns all available advisors.

Response

{
  "agents": [
    {
      "id": "onboarding",
      "name": "Priya",
      "title": "Onboarding & Activation Advisor",
      "credits": 4,
      "description": "Tests signup flows, empty states, and time-to-value"
    },
    {
      "id": "billing",
      "name": "Amy",
      "title": "Billing Advisor",
      "credits": 3,
      "description": "Tests pricing, checkout, and subscription flows"
    }
  ]
}

Run Assessment

Run one or more advisors against a URL. Returns a report ID immediately, with results available via polling.

POST /api/scan

Run an assessment with specified advisors.

Request Body

ParameterTypeDescription
urlrequiredstringThe URL to assess (must be accessible from our servers)
agentsrequiredarrayList of advisor IDs to run (e.g., ["billing", "security"])
launchlabsApiKeystringOverride the API key from header (optional)
targetAuthobjectCredentials for testing authenticated pages (see below)
๐Ÿ’ก Pro Tip

Run Auth + Billing + Journey together to validate "Can a real customer log in and pay?"

Example Request (Basic)

curl -X POST https://getlaunchlabs.com/api/scan \
  -H "Content-Type: application/json" \
  -H "x-api-key: ll_your_api_key" \
  -d '{
    "url": "https://your-app.com",
    "agents": ["performance", "seo", "security"]
  }'

Example Request (With Authentication)

curl -X POST https://getlaunchlabs.com/api/scan \
  -H "Content-Type: application/json" \
  -H "x-api-key: ll_your_api_key" \
  -d '{
    "url": "https://your-app.com",
    "agents": ["auth", "billing", "journey", "onboarding"],
    "targetAuth": {
      "credentials": {
        "email": "[email protected]",
        "password": "testpass123",
        "loginUrl": "/login"
      }
    }
  }'

Response

{
  "reportId": "rpt_abc123xyz",
  "status": "pending",
  "creditsUsed": 10,
  "estimatedTime": "2-3 minutes"
}

Reports

Fetch assessment results by report ID.

GET /api/reports/:id

Get the full assessment report.

Example Request

curl https://getlaunchlabs.com/api/reports/rpt_abc123xyz \
  -H "x-api-key: ll_your_api_key"

Response

{
  "reportId": "rpt_abc123xyz",
  "url": "https://your-app.com",
  "grade": "B+",
  "score": 87,
  "agents": ["billing", "security", "auth"],
  "issues": {
    "critical": 0,
    "high": 2,
    "medium": 5,
    "low": 8
  },
  "findings": [
    {
      "agent": "billing",
      "severity": "high",
      "title": "Stripe webhook not verified",
      "description": "Your Stripe webhook endpoint does not verify signatures...",
      "fix": "Use stripe.webhooks.constructEvent() to verify signatures"
    }
  ],
  "createdAt": "2026-02-12T18:00:00Z"
}

Credits

Check your current credit balance.

GET /api/credits

Get your current credit balance.

Example Request

curl https://getlaunchlabs.com/api/credits \
  -H "x-api-key: ll_your_api_key"

Response

{
  "credits": 47,
  "earned": 5,
  "purchased": 42
}

Subscription

Manage your subscription and billing history.

GET /api/subscription

Get your current subscription status and billing info.

Response

{
  "subscription": {
    "plan": "pro",
    "status": "active",
    "monthlyCredits": 62,
    "nextBillingDate": "2026-03-12"
  }
}

API Keys

Create, list, and revoke API keys for your account.

GET /api/keys

List all your API keys.

POST /api/keys

Create a new API key.

Request Body

ParameterTypeDescription
namerequiredstringA descriptive name for the key
tierstringKey tier: free, pro, or enterprise
DELETE /api/keys/:prefix

Revoke an API key (prefix match).

CI/CD Integration

Add LaunchLabs to your deployment pipeline. Block on critical issues, store report links in build artifacts.

GitHub Actions Example

- name: LaunchLabs Pre-Flight Check
  run: |
    # Run fast agents on every deploy
    RESULT=$(curl -s -X POST https://getlaunchlabs.com/api/scan \
      -H "Content-Type: application/json" \
      -H "x-api-key: ${{ secrets.LAUNCHLABS_API_KEY }}" \
      -d '{"url":"${{ env.PREVIEW_URL }}","agents":["performance","seo","security"]}')
    
    GRADE=$(echo $RESULT | jq -r '.grade')
    REPORT_ID=$(echo $RESULT | jq -r '.reportId')
    
    echo "Grade: $GRADE"
    echo "Report: https://getlaunchlabs.com/report/$REPORT_ID"
    
    # Block on F grade
    if [[ "$GRADE" == "F" ]]; then
      echo "โŒ LaunchLabs grade F - blocking deploy"
      exit 1
    fi
    
    echo "โœ… LaunchLabs grade: $GRADE"
๐ŸŽฏ Recommended CI/CD Pattern

Credit Costs

AgentCreditsUse Case
Priya (Onboarding)4Signup, empty states, activation
Zoe (Journey)4User flows, funnel, CTAs
Omar (Account)3Settings, profile, preferences
Kara (Admin)3Admin panel, roles, permissions
Amy (Billing)3Pricing, checkout, subscriptions
Diego (Auth)3Login, signup, session security
Noah (Security)3OWASP, vulnerabilities, XSS, SQLi
Maya (Accessibility)2WCAG, aria labels, keyboard nav
Grace (Copy)2Messaging, headlines, CTAs
Arjun (API)2Endpoints, contracts, error handling
Ethan (Performance)1Core Web Vitals, load time
Lina (Mobile)1Responsive, touch targets
Sofia (SEO)1Meta tags, sitemap, indexing
Hana (Trust)1Testimonials, social proof
Marcus (Legal)1Privacy policy, terms, compliance