HeyPeppy API Reference
Welcome to the HeyPeppy REST API reference. Use this API to integrate automated Vision AI receipt extraction, proof-of-payment auditing, and scholarship purchasing policy validation into your Education Savings Account (ESA) portal or SFO platform.
Every endpoint has its own dedicated sub-page featuring parameter tables, response schemas, code generators, and an interactive right-hand Test Console where you can plug in your API key and send test requests.
Base URLs
The HeyPeppy API provides a dedicated sandbox environment for testing and integration:
| Environment | Base URL | Purpose |
|---|---|---|
| Sandbox / Staging | https://staging-api.heypeppy.ai/v1 | Testing and integration sandbox (targeted by the Interactive Test Console). |
Authentication & Headers
All requests require authentication using Bearer tokens in the Authorization header (or X-API-Key):
Authorization: Bearer hp_test_your_api_key_here
X-Tenant-ID: stepup
Content-Type: application/json
Authorization(Required): Your tenant API key prefixed withBearer(hp_test_...). Alternatively, use theX-API-Keyheader.X-Tenant-ID(Optional): B2B tenant identifier (stepup,odyssey,classwallet). Inferred automatically from your API key if omitted.Content-Type(Required for POST/PUT):application/json(ormultipart/form-datawhen uploading files directly).
Available Endpoints
Explore the dedicated endpoint documentation and test consoles:
| Method | Endpoint | Description | Link |
|---|---|---|---|
| POST | /receipts/extract | Submit receipt (via receiptUrl, fileBase64, or multipart upload) for asynchronous extraction via Cloud Tasks queue. Supports optional categorizeItems for line item policy audit and includeCoordinates for bounding box geometry. | View Endpoint & Test → |
| POST | /receipts/extract-sync | Real-time synchronous extraction for interactive receipts (<6s). Supports optional categorizeItems for line item policy audit and includeCoordinates for bounding box geometry. | View Endpoint & Test → |
| POST | /submissions/audit | Comprehensive compliance audit against Florida PEP/UA handbook rules (synchronous or async via async: true). | View Endpoint & Test → |
| POST | /batches | Enqueue a bulk batch of up to 1,000 receipts in parallel. | View Endpoint & Test → |
| GET | /batches/{batchId} | Inspect the progress and aggregated completion metrics of a bulk batch job. | View Endpoint & Test → |
| GET | /jobs/{jobId} | Inspect the status, execution metrics, and full results of an async job. | View Endpoint & Test → |
OpenAPI 3.1 Specification
The machine-readable OpenAPI specification is available for download at /openapi.yaml.