API documentation

Bring 0trust0day into your stack

Embed payment checks, account recovery and real-time threat alerts into your products through one secure API.

Integration in days

01 register

Create a service account

Issue sandbox and production keys straight from the console.

02 integrate

Connect via SDK or REST

Use JavaScript, Python and Go SDKs or call the REST endpoints directly.

03 monitor

Wire up alerts

Configure webhooks, capture metrics and watch live service health.

Request samples

Key endpoints

POST /v1/auth/recover~120ms

Starts the account recovery flow with MFA validation.

fetch("https://api.0trust0day.dev/v1/auth/recover", {
  method: "POST",
  headers: {
    "X-Api-Key": "YOUR_KEY",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ reference: "123-456", locale: "en-US" })
})
  .then((res) => res.json())
  .then(console.log)
GET /v1/payments/verify~85ms

Validates a transaction and applies anti-fraud policies.

fetch("https://api.0trust0day.dev/v1/payments/verify", {
  method: "GET",
  headers: {
    "X-Api-Key": "YOUR_KEY",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ reference: "123-456", locale: "en-US" })
})
  .then((res) => res.json())
  .then(console.log)
POST /v1/alerts/notify~40ms

Delivers a threat notification to your monitoring stack.

fetch("https://api.0trust0day.dev/v1/alerts/notify", {
  method: "POST",
  headers: {
    "X-Api-Key": "YOUR_KEY",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ reference: "123-456", locale: "en-US" })
})
  .then((res) => res.json())
  .then(console.log)
SDK & REST

JavaScript, Python and Go SDKs, bidirectional webhooks, automated tests and live performance dashboards.

Book