Skip to content

API Reference

PayStream provides a RESTful API for managing payouts. All endpoints require authentication via API key.

Base URL

https://api.paystream.fi
ResourceDescription
AuthenticationAPI key authentication and scopes
PaymentsCreate, list, and manage payouts
RecipientsManage payout recipients with inline identity
BatchesBatch payment processing
Payment MethodsManage recipient bank accounts and cards
WebhooksReal-time event notifications
Balance & FundingTenant balance, auto-funding, and funding sources
Recipient BalancesRecipient-held balances and withdrawals
OnboardingSelf-service tenant onboarding
Team ManagementRBAC team members and invitations
ComplianceOFAC screening and tax reporting
Operations CopilotNatural language operations queries

Response Format

All responses are JSON with a consistent structure:

json
{
  "data": { ... },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2026-02-25T00:00:00Z"
  }
}

Error Format

json
{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Amount must be positive",
    "errorId": "PAYMENT_INVALID_AMOUNT"
  }
}

Rate Limits

Endpoint TypeLimit
Standard API1,000 requests/hour per API key
Funding operations5 requests/minute
Portal login6 attempts per 10 minutes per email
Public endpoints30 requests/hour per IP

Idempotency

All POST endpoints support idempotency via the Idempotency-Key header:

bash
curl -X POST https://api.paystream.fi/api/v1/payments \
  -H "Authorization: Bearer psk_test_xxx" \
  -H "Idempotency-Key: unique-request-id-123" \
  -H "Content-Type: application/json" \
  -d '{ ... }'

Duplicate requests with the same key return the original response without re-processing.

Support

Released under the MIT License.