›Reference

Introduction

Getting Started

Reference

Session Management

In order to integrate with Copilot, you would need to create a short-term access token by using the API POST /v1/api/management/auth/token, authenticated with your clientId and clientSecret in a Basic Authentication.

Create Authentication header

How to build the header

The Authentication header is built from an 'authentication scheme' part and a 'credentials' part, separated by a space.

The authentication scheme should be Basic, and the credentials part should be built by concatenating the clientId, a single colon character (":"), and the clientSecret , encoded to base64.

💡 You can create the Authentication token on bash shell by using the following command:echo Basic $(echo -n <CLIENT_ID>:<CLIENT_SECRET> | base64) Alternatively, use the basic Authentication option in your http client.