Quickstart

Get up and running with Peabody Secure in under 5 minutes.

Peabody Secure provides a complete UI and backend infrastructure for identity verification. The easiest way to get started is by using our embeddable JS Widget.

First time? Create an account to get your sandbox API token.

Authentication

All API requests must be authenticated using a Bearer token in the Authorization header.

Authorization: Bearer YOUR_API_TOKEN

Embeddable JS Widget

The Peabody Secure widget is a lightweight JavaScript library that handles the entire document capture and liveness detection flow.

1. Include the Script

<script src="https://peabodysecure.com/js/peabody-widget.js"></script>

2. Initialize & Open

Call init with your configuration, then use open() to trigger the modal.

PeabodySecure.init({
  baseUrl: 'https://peabodysecure.com',
  token: 'USER_JWT_TOKEN',
  onSuccess: function(verificationId) {
    console.log('Success! ID:', verificationId);
  },
  onError: function(err) {
    console.error('Error:', err);
  }
});

// Launch the verification modal
PeabodySecure.open();

API Reference

GET /api/verifications/{id}

Retrieve the status and results of a specific verification.

Response Example
{
  "status": "completed",
  "result": "passed",
  "data": {
    "first_name": "JOHN",
    "last_name": "DOE",
    "dob": "1990-01-01",
    "document_type": "DL"
  }
}