API reference

API reference

Every endpoint and webhook event of the Sparkle API, generated from its OpenAPI spec.

The pages in this section are generated from the OpenAPI spec, so they always match the API the server exposes. The spec itself is at /openapi/v1.yaml, and every page here is also markdown at its URL plus .md.

  • Base URL: https://api.sparkle.ai/public/v1
  • Authentication: your organization's API key in the X-API-Key header.
  • Writes: every POST and PUT takes an Idempotency-Key header.
  • Lists: cursor-paginated. Pass page_info.end_cursor as cursor, and up to 100 items as limit.
  • Errors: RFC 9457 problem details, described under Errors.
  • Changes: listed in the API changelog, with how breaking changes are announced.