Guides

Requests

Making API requests.


API Requests

Use an Authorization header with your app key and a X-JWT header with the current authenticated claims.

const {success, message, data} = await fetch('https://api.backstack.com/some-endpoint', {
  headers: {
      'Authorization' : 'your-app-key',
      'X-JWT': cookies.get('jwt')
  }
});

// ...

FYI

The X-JWT value is provided in every API response. You can safely store it on the client for use in future requests.


Previous
Pricing