How it works
Clients send an access token in the Authorization header.
curl -X GET "https://api.startup-payments.example/v1/payments/pay_123" -H "Authorization: Bearer <token>"Payments example
The sample API uses bearer token authentication for all server-to-server requests, with scope-based access across create, read, refund, and webhook access patterns.
Clients send an access token in the Authorization header.
curl -X GET "https://api.startup-payments.example/v1/payments/pay_123" -H "Authorization: Bearer <token>"Authorization model
Failure mode
Authentication failures should return 401 Unauthorized with a stable error code and a trace identifier so support and client teams can diagnose failures consistently.