Access Token Endpoint

This will return an access token for a user which you need to provide in the magic receipts endpoint requests. A token is only valid for 24 hours and therefore needs to be requested again after it is no longer valid.

curl \
 -X GET https://api.bitlabs.ai/v1/client/magic-receipts/access-token \
 -H "X-Api-Token: $API_KEY" \
 -H "X-User-Id: {USERID}"

All other endpoint requests have to be made from https://receipts.bitlabs.ai or for testing purposes https://qa-receipts.bitlabs.ai/.

Generating a token, requires you to have a BitLabs account. You can create one here: https://dashboard.bitlabs.ai/