Developer Docs

Documentation

Everything you need to integrate with Verda. API reference, SDKs, webhooks, and best practices for building on our supply chain transparency protocol.


Documentation


Get Started in 5 Minutes

1. Get API Keys

Request access through our developer portal. You'll receive a test API key immediately.

export VERDA_API_KEY="vrd_test_xxxxxxxxxxxx"

2. Install SDK

Install the SDK for your preferred language.

# Node.js
npm install @verda/sdk

# Python
pip install verda-sdk

# Go
go get github.com/verda-protocol/verda-go

3. Make Your First Request

Fetch a product journey with a single API call.

import { Verda } from '@verda/sdk';

const verda = new Verda({ apiKey: process.env.VERDA_API_KEY });

// Get product journey by QR code
const journey = await verda.products.getJourney('PRD-2024-001234');
console.log(journey.events);

4. Verify On-Chain

Cryptographically verify the journey against the blockchain.

// Verify Merkle proof
const isValid = await verda.verify.merkleProof(
  journey.events[0],
  journey.merkleProof
);
console.log('Verified:', isValid); // true

API Reference

Base URL: https://api.verda.so/v1

Products

GET  /products/:id           # Get product details
GET  /products/:id/journey   # Get full journey
POST /products               # Register new product
PUT  /products/:id           # Update product

Product endpoints for registering and querying product data.

Events

POST /events                 # Record new event
GET  /events/:id             # Get event details
GET  /events/:id/proof       # Get Merkle proof

Event endpoints for recording and querying supply chain events.

Verification

POST /verify/merkle          # Verify Merkle proof
GET  /verify/batch/:id       # Get batch anchor status
GET  /verify/blockchain/:tx   # Get Blockchain transaction

Verification endpoints for cryptographic proof validation.

Sensors

GET  /sensors/:id            # Get sensor info
GET  /sensors/:id/readings   # Get sensor readings
POST /sensors/:id/readings   # Submit readings

IoT sensor endpoints for temperature and location data.


SDKs & Libraries

🟨

JavaScript / TypeScript

@verda/sdk

Full-featured SDK for Node.js and browser environments.

🐍

Python

verda-sdk

Async-first SDK with type hints and Pydantic models.

🔵

Go

verda-go

Idiomatic Go client with context support and retries.

🦀

Rust

verda-rs

Zero-cost abstractions. Used in our own services.


Webhooks

Receive real-time notifications when events occur in your supply chain. Configure webhook endpoints in the dashboard.

Available Events

  • product.created — New product registered
  • event.recorded — New journey event recorded
  • sensor.alert — Temperature or condition alert
  • batch.anchored — Batch anchored to Blockchain
  • recall.initiated — Recall process started

Webhook Payload

{
  "id": "evt_xxxxxxxxxxxx",
  "type": "sensor.alert",
  "created": "2024-03-15T06:30:00Z",
  "data": {
    "sensor_id": "SNS-001234",
    "alert_type": "temperature_excursion",
    "value": 8.5,
    "threshold": 4.0,
    "product_id": "PRD-2024-001234"
  }
}

Integration Guides

ERP Integration

Connect Verda with SAP, Oracle, or Microsoft Dynamics.

Read guide →

QR Embedding

Generate and print QR codes for your product packaging.

Read guide →

IoT Setup

Configure sensors and gateways for cold chain monitoring.

Read guide →

Verification UI

Embed journey viewer in your website or mobile app.

Read guide →

Need Help?

💬

Discord

Join our developer community for real-time support.

Join Discord
🐛

GitHub Issues

Report bugs or request features on GitHub.

Open Issue
📧

Email Support

Enterprise customers get priority email support.

Contact Support

Office Hours: Join our weekly developer office hours every Thursday at 10am PT. Register →

API Status: Operational Avg Response: <100ms