Authentication
You'll need to authenticate your requests to access any of the endpoints in CollabPay's API. In this guide, we'll look at how authentication works.
Bearer token
You will need your to generate you token — you will find it in CollabPay settings under API settings. Here's how to add the token to the request header using cURL:
Example request with bearer token
curl https://collabpay.app/api/v1/products \
-H 'Content-Type: application/json'
-H 'Accept: application/json'
-H "Authorization: Bearer {token}"
Always keep your token safe and reset it if you suspect it has been compromised.