Country:
DOCUMENTATION/authentication
Our API uses API key authentication to secure all requests. This guide covers everything you need to know about authenticating with our payment processing API.
API keys are unique identifiers that authenticate your requests to our API. Each key is associated with your account and carries specific permissions based on your contracted features.
Include your API key in the Authorization header of every request:
GET /v1/payments/pay_1234567890
Host: api.paymentprovider.com
Authorization: Bearer sk_live_1234567890abcdef
Content-Type: application/json
If authentication fails, you'll receive a 401 Unauthorized response:
[object Object],
,[object Object],[object Object], ,[object Object],
,[object Object],[object Object], ,[object Object],[object Object],
,[object Object],[object Object], ,[object Object],[object Object],
,[object Object],[object Object], ,[object Object],
,[object Object],
,[object Object],
You can test your API key with a simple request:
curl -H ,[object Object], \
https://api.paymentprovider.com/v1/account
Did this page help you?
Your feedback helps us improve our documentation.
