API Documentation
Authentication
Authenticate with Swerv API
Swervpay employs OAuth 2.0 as its fundamental security protocol. Access to Swerv endpoints necessitates obtaining an access token, granting entry to restricted endpoints.
To get an access token, you must first authenticate with the Swerv API. This is done by sending a POST request to the /auth
endpoint with your business ID and secret key encoded in base64 as Basic Authorization in the request header.
Authentication URL:
POST
https://api.swervpay.co/api/v1/auth
Sample Request
Sample Response
Response
The access token gotten from the auth API expires after 1 hour.
Was this page helpful?