Introduction

Welcome to the ECBOT API documentation. Here you will find all the information needed to integrate with our API.

Authentication

To authenticate requests, you will either:

• an API key - you can obtain this from your home page.

or

• Your login associated ID token - after sign in your sign in response will contain the ID token.

Endpoints

Below are the available endpoints:

Below are the available endpoints:

                    // JavaScript Example
fetch('https://api.example.com/data', {
    method: 'GET',
    headers: {
        'Authorization': 'Bearer YOUR_TOKEN'
    }
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));

JSON Example

Below is a sample JSON response from the API.

JSON
                    {
    "status": "success",
    "data": {
        "user": {
            "id": 12345,
            "name": "John Doe",
            "email": "john.doe@example.com"
        },
        "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9"
    }
}

HTML Example

This example demonstrates an HTML snippet for integrating the API.

HTML
                    <!-- Sample HTML Form for API Integration -->
<form action="https://api.example.com/submit" method="post">
    <label for="name">Name:</label>
    <input type="text" id="name" name="name" required>
    
    <label for="email">Email:</label>
    <input type="email" id="email" name="email" required>
    
    <button type="submit">Submit</button>
</form>

Examples

Here are some examples to get started...

Error Handling

Learn about error handling...