logo

Update authentication

You might want to restrict the access to your data with authentication.

By default APIsheet has no authentication, and only GET endpoints are enabled (You need to manually enable create, update and delete when necessary on your dashboard).

Basic authentication

Basic authentication works with a username and a password encoded in base64. You setup this authentication by creating a username and a password.

APIsheet dashboard to update authentication

Your API requests now require the Authorization header. You use it as follows:

fetch(
  'https://app.apisheet.io/v1/0grx5D9o/users',
  {
    method: "GET",
    header: { 'Authorization': 'Basic YWRtaW46cm9vdA==' }
  }
);

Bearer authentication

Bearer authentication works the same, but instead of a username and a password, you use a randomly generated token.

Got a question ? send a message!


© 2023 apisheet.io

About