Black Friday: the Evidence Report for €29 instead of €99 with code AUDIT29. Ends 1 December.

    Run a free audit

    API reference

    SecureSpells Partner API

    Endpoints, request and response schemas, and live requests from the browser. Test keys return a sandbox result and use no credits. Machine-readable spec: public-openapi.json.

    Introduction
    v1.0.0
    OAS 3.1.0

    SecureSpells Partner API

    Introduction

    The SecureSpells Partner API lets agencies, consultancies, and platforms automate runtime privacy & compliance audits of customer websites. Audits use headless browser execution (consent simulations, network interception, tracker evidence) — not static HTML keyword scans — so you can offer legal-grade artifacts and recurring monitoring to your clients.

    Authentication

    Send exactly one partner credential per request:

    • X-API-Key — Preferred for server-to-server integrations.
    • Public keys (spk_test_*, spk_live_*) identify the integration and may be scope-limited; they are safe to embed in backends only (never in mobile or browser clients).
    • Secret keys (ssk_test_*, ssk_live_*) authenticate as the partner and carry your full API privileges for the matching environment. Store secrets in a vault; rotate if leaked.

    Session cookie authentication is supported for dashboard tooling but machine integrations should use X-API-Key with a secret key.

    Environments

    Environment Keys Credits
    test *_test_* keys (or session test flows) Does not consume prepaid partner credits; uses the provisioned sandbox domain slot.
    live *_live_* keys Consumes credits and allocates 30-day domain slots for production client domains.

    The environment field on POST /audits must match the key’s environment when a key is present, or the API returns 400.

    Webhooks

    Audits are asynchronous. A successful POST /audits returns 202 Accepted with a job_id. Your worker processes the site; you should not rely on synchronous HTTP for the final report.

    • Register test and live HTTPS endpoints; configure the callback_url on the audit request (and/or your default webhook) to receive signed audit.* events (audit.created, audit.started, audit.completed, audit.failed).
    • Poll GET /audits/{job_id} or GET /audits/{job_id}/results only as a backstop; webhooks are the primary completion channel.

    Rate limiting & domain slots

    • Standard rate limits apply on partner endpoints (especially read-heavy routes) to protect platform stability. Excessive traffic returns HTTP 429.
    • 30-day domain slot: one credit typically monitors one client domain for 30 days on the live path; rescan and cooldown rules depend on your base subscription tier.
    • Rescan cooldown: POST /domains/{domain_slot_id}/rescan may return 429 with next_rescan_available_at until the cooldown window elapses.

    For human workflows (billing, key management), use the Partner Dashboard — those routes are omitted from this document.

    Server:https://securespells.com
    Client Libraries

    Partner

    ​

    Programmatic endpoints under /api/v1/partner — submit audits, poll results, export HTML/PDF, and manage domain slots.

    Server

    See the servers list in the downloaded OpenAPI document.

    Send your partner secret key (ssk_test_* / ssk_live_*) in the X-API-Key header on authenticated routes. Public pricing is the only unauthenticated call in this spec.

    Client libraries

    Use the language tabs in each operation’s code panel (Shell, Python, Node.js, …). For a generated SDK, import public-openapi.json into your toolchain.

    Here and in the introduction: authentication, environments (test vs live), webhooks, and rate limits are described above.