Authentication Overview

Request Network API uses API key authentication to secure access to endpoints. This guide covers how to obtain, manage, and use your API keys securely.

Getting API Keys

1

Create Account

Sign up for a Request Network account at the Request Portal
2

Generate API Key

Navigate to the API Keys section and create a new API key for your project
3

Configure Environment

Store your API key securely in environment variables
4

Test Connection

Make your first authenticated API call to verify setup

API Key Management

Production Keys

Production Environment:
  • Use separate keys for production
  • Implement key rotation policies
  • Monitor usage and access logs
  • Set up rate limiting and alerts

Development Keys

Development Environment:
  • Use testnet for development
  • Separate keys for each environment
  • Team access management
  • Testing and debugging tools

Authentication Methods

API Key in Header (Recommended):
curl -X POST https://api.request.network/v2/requests \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "currency": "USD",
    "expectedAmount": "100",
    "payeeIdentity": "0x...",
    "reason": "Test invoice"
  }'

Security Best Practices

Rate Limits

Rate Limiting InformationCurrent rate limits apply to API usage. Contact support for enterprise rate limit increases.

Standard Limits

Default Rate Limits:
  • 100 requests per minute
  • 1,000 requests per hour
  • 10,000 requests per day
Applies to: Most API endpoints

Webhook Limits

Webhook Rate Limits:
  • 50 webhook deliveries per minute
  • Exponential backoff for retries
  • Maximum 5 retry attempts
Applies to: Webhook delivery endpoints

Error Codes

Common authentication error responses:
{
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Invalid or missing API key",
    "details": "Please provide a valid API key in the Authorization header"
  }
}

What’s Next?