What is Bearer Authentication?

Learn how to use the access tokens you created

The Access Tokens created on the front-end are Bearer Tokens, they grant access to the API for the bearer and will be used to identify their accounts.

DebitLlama access tokens are generated using the following schema:


The access token names always start with the name of the application and the API version so they are easy to tell apart from other tokens you might be using.

To write data using the API you need to use the Authorization header for your requests like the following example:

Authorization: Bearer <accesstoken>

Here is a simple Fetch function written in javascript to get you started posting to the API:

await fetch(`https://debitllama.com/api/v1/payment_intents/${paymentIntent}`, {
    method: "POST",
    headers: {
      "Authorization": `Bearer ${accesstoken}`,
      "Content-Type": "application/json"

Last updated