API Background
TrustGuard API v2.0

Powerful Escrow API for Developers

Integrate secure escrow services into your platform in minutes. Simple, powerful, and built for scale.

Get API Key

API Features

Everything you need to build secure escrow functionality into your application.

RESTful API

RESTful API

Clean, intuitive REST API with JSON responses and comprehensive error handling.

Secure Authentication

Secure Authentication

OAuth 2.0 and API key authentication with role-based access control.

Complete Documentation

Complete Documentation

Interactive API docs with code examples in multiple programming languages.

Webhooks

Webhooks

Real-time notifications for transaction events and status changes.

Sandbox Environment

Sandbox Environment

Full-featured testing environment with mock transactions and data.

High Performance

High Performance

99.9% uptime SLA with sub-200ms response times globally.

Quick Start Example

Create your first escrow transaction in just a few lines of code.

create-transaction.js
// Initialize TrustGuard API Client
const trustguard = require('trustguard-api');
const client = new trustguard.Client({
  apiKey: 'your_api_key_here',
  environment: 'production'
});

// Create a new escrow transaction
const transaction = await client.transactions.create({
  buyer: {
    email: 'buyer@example.com',
    name: 'John Buyer'
  },
  seller: {
    email: 'seller@example.com',
    name: 'Jane Seller'
  },
  amount: 5000.00,
  currency: 'USD',
  description: 'Domain name purchase',
  items: [{
    title: 'example.com',
    description: 'Premium domain name',
    quantity: 1,
    price: 5000.00
  }],
  inspection_period: 3 // days
});

console.log('Transaction created:', transaction.id);
console.log('Payment URL:', transaction.payment_url);

Core API Endpoints

Essential endpoints for managing escrow transactions.

POST/v1/transactions

Create a new escrow transaction

GET/v1/transactions/{id}

Retrieve transaction details

PUT/v1/transactions/{id}

Update transaction status

POST/v1/transactions/{id}/release

Release funds to seller

POST/v1/transactions/{id}/cancel

Cancel transaction and refund

GET/v1/transactions

List all transactions

Official SDKs & Libraries

Use our official libraries to integrate faster in your preferred language.

Node.js

Node.js

v2.4.0

Python

Python

v1.8.2

PHP

PHP

v1.6.1

Ruby

Ruby

v1.5.0

Java

Java

v2.1.3

C#

C#

v1.4.2

Real-Time Webhooks

Stay informed about transaction events with our webhook system. Get instant notifications when transactions are created, updated, or completed.

Transaction Events

Get notified of status changes, payments, and completions.

Automatic Retries

Failed webhooks are automatically retried with exponential backoff.

Signature Verification

Verify webhook authenticity with HMAC signatures.

Webhook Payload Example
{
  "event": "transaction.completed",
  "timestamp": "2025-01-15T10:30:00Z",
  "data": {
    "id": "txn_abc123",
    "status": "completed",
    "amount": 5000.00,
    "currency": "USD",
    "buyer": {
      "email": "buyer@example.com"
    },
    "seller": {
      "email": "seller@example.com"
    }
  }
}

API Pricing

Transparent, volume-based pricing with no hidden fees.

2.5%
Up to $100K/month
1.5%
$100K - $1M/month
Custom
$1M+/month

What's Included:

Unlimited API calls
Webhook notifications
Sandbox environment
Technical support
99.9% uptime SLA
Multi-currency support

Ready to Start Building?

Get your API key and start integrating secure escrow services today. Our team is here to help you succeed.

Get API Key