We have recently started working on our new documentation and are in the process of adding content. As of now, there may not be much information available, but we are working hard to provide you with the most comprehensive documentation possible. Thank you for your patience and understanding.

Welcome

We are continuously improving our documentation and adding new content every day. We are committed to providing you with the most up-to-date and accurate information. Thank you for your patience and understanding as we work to make our documentation as helpful as possible. If you are missing some functionality, don’t hesitate to contact us on gleap.io or by email to hello@gleap.io

Authentication

The API uses token-based authentication to secure access. To authenticate requests, you must include an API key or token in the request header.

Authentication Headers

Include the following headers in your requests:

  • Authorization: This header should contain the API token in the format Bearer <token>.

Obtaining an API Token

To obtain an API token, follow these steps:

  1. Registration: Sign up for an account on our platform.

  2. Token Generation: Generate an API token using the API.

const url = 'https://api.gleap.io/auth';
const username = 'your_username_here';
const password = 'your_password_here';

const headers = new Headers();
headers.append('Authorization', 'Basic ' + btoa(username + ':' + password));

fetch(url, {
  headers: headers
})
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error(error));
  1. Usage: Use the generated token in the Authorization header of your API requests.
GET /api/resource
Host: api.gleap.io
Authorization: Bearer your_api_token_here

Some resources require a specific header in order to access them. The project header should contain the project ID.