Skip to main content

Welcome to Request Network

Get started with Request Network in just a few minutes. This guide will walk you through setting up your account, obtaining API keys, and making your first payment.

Quick Setup

1

Create Account

Sign up for a free Request Network account at dashboard.request.network
2

Get API Keys

Generate your Client ID from the Dashboard
3

Create Your First Request

Use the API to create a payment request
4

Process Payment

Get payment calldata and execute the transaction

Account Setup

Request Dashboard Registration

Create Your Account

Sign up at dashboard.request.network to get started. All accounts include:
  • Free API access with generous limits
  • API documentation and tools
  • Community support

Client ID Generation

  1. Log in to Request Dashboard
  2. Create a payment destination first if you haven’t — the Client IDs section is only available once a destination exists. From the Home page, click Set up payment destination and pick the chain + token you want to receive on.
  3. Open Manage Destination → Client IDs
  4. Click Generate your first Client ID (or Generate New Client ID if you already have one)
  5. Copy and securely store the Client ID
Security Best Practices
  • Store API keys in environment variables
  • Never commit keys to version control
  • Rotate keys regularly

Your First Integration

Let’s create a simple Node.js server that integrates with the Request Network API to create payments and track their status.

Project Setup

Create a new project and install dependencies:
Create a .env file:

Create a Payment

Create an index.js file:
Run it:
The response will include:
  • requestId — Unique identifier for the request
  • paymentReference — Used to track the payment
  • transactions — Array of transaction calldata to execute
  • metadata — Additional info like stepsRequired and needsApproval

Understanding the Response

Note: The amount is in human-readable format. No BigNumber conversions needed!

Setting Up Webhooks

To track payment status in real-time, set up a webhook endpoint:

Testing Webhooks Locally

Since webhooks can’t reach your local server directly, use ngrok:
Copy the HTTPS URL (e.g., https://abc123.ngrok.io/webhooks) and register it via the Auth API:
The response includes a one-time secret — copy it to your .env:

Environment Configuration

Set up environment variables for secure API key management:

What’s Next?

Now that you’ve made your first API call, explore more features:

📚 API Features

Learn about different payment types and features

🔍 Payment Detection

Understand how payments are tracked

⚡ Integration Tutorial

Complete tutorial with backend + frontend

Troubleshooting

Common Issues

  • Verify Client ID is correct
  • Check that you’re using the right header: x-client-id
  • Ensure the Client ID hasn’t been revoked
  • Check required fields: payee, amount, invoiceCurrency, paymentCurrency
  • Ensure amount is a string (e.g., “0.1”)
  • Verify currency IDs are valid
  • Verify webhook URL is publicly accessible
  • Check webhook signature verification
  • Ensure the webhook is active (toggle via PUT /v1/webhook/:id on the Auth API)
You’re all set! You’ve created your first payment request with Request Network. For a complete working example with frontend, check out the Integration Tutorial.