Skip to content

Feature: Add public API documentation site and developer portal #194

@Calebux

Description

@Calebux

Description

SYNCRO's SDK and webhook system require external developers to understand the API. Currently there is no public documentation. A developer portal would enable third-party integrations, accelerate SDK adoption, and serve as a reference for the SYNCRO team itself.

Feature Scope

Documentation Site

Use Mintlify or Docusaurus to create a documentation site at docs.syncro.app:

Sections

Getting Started
  • What is SYNCRO?
  • Quickstart: add your first subscription via API in 5 minutes
  • Authentication (Bearer token, API keys)
  • Base URL and environments
API Reference
  • Auto-generated from OpenAPI spec (once Swagger is added — see related issue)
  • Interactive: try API calls directly from docs
  • Code examples in TypeScript, Python, cURL
SDK Reference
import { SyncroSDK } from '@syncro/sdk';

const syncro = new SyncroSDK({
  apiKey: 'sk_your_api_key',
  baseUrl: 'https://api.syncro.app',
});

const subscription = await syncro.createSubscription({
  name: 'Netflix',
  price: 17.99,
  currency: 'USD',
  billingCycle: 'monthly',
  nextRenewalDate: '2025-04-15',
});
Webhooks Guide
  • Event types reference
  • How to verify webhook signatures
  • Sample code for handling each event type
Soroban Contract Reference
  • Contract addresses (testnet, mainnet)
  • Function signatures and parameters
  • Event types emitted
  • How to verify subscription data on-chain
Guides
  • "Track subscriptions for your team"
  • "Build a subscription tracker with SYNCRO SDK"
  • "Verify subscription data on Stellar Explorer"

Developer Portal Features

  • API key management (see related issue)
  • Webhook testing console
  • API request logs (last 100 requests)
  • Sandbox environment

Implementation

# Using Mintlify
npm install -g mintlify
mintlify init  # creates docs/ directory

Acceptance Criteria

  • Docs site deployed at docs.syncro.app
  • Quickstart guide (under 5 minutes to first API call)
  • Complete API reference generated from OpenAPI spec
  • SDK reference with code examples
  • Webhook guide with signature verification examples
  • Soroban contract reference with testnet addresses

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programdocumentationImprovements or additions to documentationdxDeveloper experienceenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions