Skip to main content

Calling the API

Using the access token​

Once you have an access token, pass it in the Authorization header on every API call, using the same certificate and key for the connection:

curl -X GET \
--url https://business-api.transfergo.com/v1/ping \
--cert client.crt \
--key client.key \
--header "Authorization: Bearer {access_token}"

Definition of the endpoint in API Reference.

The expected response with status code 200:

{
"message": "success"
}
note

The access token is certificate-bound: it can only be used over a connection established with the same certificate that was presented when the token was issued. Sending it over a different (or no) mTLS connection will be rejected.

Next steps​