General
API base path for all requests in production environment is:
https://papi.swapin.com/api
API base path for all requests in test environment is:
https://papi-sandbox.swapin.com/api
All request and response bodies should be in JSON, with corresponding headers:
"Content-Type": "application/json"
"Accept": "application/json"
All requests to endpoints (except auth endpoint) must include authorization header:
"Authorization": "Bearer <AUTH_TOKEN>"
Last updated