Skip to main content
MindTouch Success Center

Use a browser API token with an integration

This article provides instructions and examples for using your browser API token in order to gain web browser access to the MindTouch API.

Before using a browser API token you will need to generate one. Review our documentation on how to generate a browser API token.

What you'll need

You should have recorded the following when generating your API token:  

  • Key

How to use your browser API token

The token key is included in an API request by setting it on the X-Deki-Token HTTP header.

Examples

Fetch API

const key = 'dacaffe7ce69dfd1071531e925f667905a1c981fb40d06c676880e84352cb3aa';
fetch('https://example.com/@api/deki/pages/home/info', {
    headers: {
        'X-Deki-Token': key
    }
}).then((response) => {
    
    // ...
});

jQuery

const key = 'dacaffe7ce69dfd1071531e925f667905a1c981fb40d06c676880e84352cb3aa';
$.ajax({
    url: 'https://example.com/@api/deki/pages/home/info',
    method: 'GET',
    headers: {
        'X-Deki-Token': key
    }
}).done((data) => {

    // ...
});

Upon receipt, MindTouch calculates the same credentials and matches them to the credentials received. Once validated, your integration can access the MindTouch API.

important note   Your credentials are time sensitive. If processed too long after the time stamp is generated, your request will be denied.

  • Was this article helpful?