RESTful API

Clean, predictable endpoints for all operations

API Overview

Our RESTful API follows industry standards with intuitive resource-based URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

HTTP Methods

GET, POST, PUT, DELETE

Response Format

JSON with UTF-8 encoding

Rate Limits

1000 requests/hour

Common Endpoints

POST
/api/v1/transactions

Create a new transaction

GET
/api/v1/transactions/:id

Get transaction details

GET
/api/v1/transactions

List all transactions

POST
/api/v1/wallets

Create a wallet

GET
/api/v1/wallets/:id

Get wallet balance

GET
/api/v1/rates

Get exchange rates

Example Request

curl https://api.dunepay.com/v1/transactions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 100.00,
    "currency": "USD",
    "recipient": "user@example.com"
  }'