Architecture

Requests

Making requests to the API.


Overview

The Backstack API has been designed with simplicity in mind, requiring only an app key for authentication and maintaining a consistent request structure across all endpoints. This minimalist approach reduces the complexity of integration while maintaining robust security through simple, standardized request patterns.

Session data is automatically managed through HTTPOnly cookies, eliminating the need to include user tokens, account IDs, or other session information with each request. This automatic handling ensures both security and simplicity in your API interactions.

This streamlined approach allows developers to focus on building features rather than managing complex API interactions.


Straightforward requests

Use an Authorization header with your app key to perform API requests. Everything else is handled automatically.

Example Axios code.

axios.get('https://api.backstack.com/some-endpoint', {
  headers: {'Authorization' : 'your-app-key'}
  })
  .then((response) => {
      const {success, message, data} = response
    // Handle the response...
  });

FYI

To maintain security, you have the option to generate a new app key using the Backstack dashboard whenever needed.


Previous
Framework