The Maple API leverages API tokens for authentication. You can create and manage your API tokens from the Maple web application.

The API token needs to be set in the Authorization header as a bearer token for each API request you make. If your token is valid, our API server will process your request and return the requested resource.

curl --request POST \
     --url https://api.maplebilling.com/api/v1/companies/company_id/customers \
     --header 'accept: application/json' \
     --header 'authorization: Bearer <API_TOKEN>' \
     --header 'content-type: application/json'

Please note that you should also keep your API token secret and secure, as anyone with access to your token will be able to access our API resources on your behalf. With security in mind, we recommend that you expire and regenerate your API tokens on a regular basis.