Pet360 Internal Intelligence Layer

The Bible/Integrations/Webhooks & API

Webhooks & API

Outbound webhooks, inbound events, signature verification, and retry policies.

Outbound Webhook Events

Pet360 can notify your systems when events occur. Configure endpoints in Settings > Integrations > Webhooks.

EventDescription
animal.enrolledNew animal created in ledger
animal.outcome.finalizedAdoption, transfer, or other outcome completed
custody.transferredAnimal transferred to new owner/org
billing.donation.receivedDonation recorded
billing.payment.collectedPayment completed
medical.treatment.loggedMedical treatment recorded
safety.quarantine.initiatedQuarantine started

Webhook Payload Structure

{
  "id": "evt_abc123",
  "type": "animal.enrolled",
  "occurred_at": "2026-01-10T14:30:00Z",
  "shelter_id": "shlt_xyz789",
  "data": {
    "animal_id": "anml_def456",
    "species": "dog",
    "name": "Buddy",
    "intake_type": "stray"
  },
  "signature": "sha256=..."
}

Signature Verification

Always verify webhook signatures to ensure requests are from Pet360.

// Verification example (Node.js)
const crypto = require('crypto');

function verifySignature(payload, signature, secret) {
  const expected = crypto
    .createHmac('sha256', secret)
    .update(payload)
    .digest('hex');
  
  return `sha256=${expected}` === signature;
}

Retry Policy

Failed webhooks are retried with exponential backoff. After 5 failures, the endpoint is marked as failing.

AttemptDelayTimeout
1Immediate30s
21 minute30s
35 minutes30s
430 minutes30s
52 hours30s

Rate Limits

API Requests

1,000

requests per minute

Webhook Endpoints

10

per shelter

Batch Size

100

items per request