# API

Also you can check the status of the systems [here](https://status.caleida.io/)

## Accessing to more advanced documentation

You can access [here](https://api.caleida.io/) to all the API documentation.

## 1. Get an API Key

The first thing you need to do is to get an API Key. To do this go to **Advanced Integrations and** click on configuration in **API** in the Caleida Dasboard.

Once here give it a name and copy it or write it down in a safe place. You will not be able to see this key again in full from the Caleida website.

<figure><img src="https://2644172801-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK2NBwdwy5L4sWk0DohX6%2Fuploads%2FGubv8g9iPPMnDcqUUViX%2FCaptura%20de%20pantalla%202024-06-25%20a%20las%2010.46.16.png?alt=media&#x26;token=0c5cfc9a-f8c8-4ed7-92c4-29c048d6b7c9" alt=""><figcaption></figcaption></figure>

## 2. Access Postman

Through the following[ link](https://www.postman.com) you can access Postman. Create an account or login if you already have one.

Once inside click on send an API request.

<figure><img src="https://2644172801-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK2NBwdwy5L4sWk0DohX6%2Fuploads%2FXwu5BY0YxyaAz12FVzpO%2FTutorial%20integracio%CC%81n%20API%202.png?alt=media&#x26;token=ea4c5bfb-8044-48f6-9645-9e04e1ee12fd" alt=""><figcaption></figcaption></figure>

## 3. Authorize your API

Under "Enter URL or paste text", click on "Authorization" and in the drop down menu select "API Key".

Now we will fill in the fields:

* **Key:** API Name (use the same one you gave in Caleida).
* **Value:** Paste the API Key you copied from the Caleida website.
* **Add to:** Make sure you add it to "Header".

<figure><img src="https://2644172801-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK2NBwdwy5L4sWk0DohX6%2Fuploads%2FZ1D2Dwu1R32WkxRF43CX%2FTutorial%20integracio%CC%81n%20API%203.png?alt=media&#x26;token=abcfe407-beb8-42fe-bdf3-8fca343b9589" alt=""><figcaption></figcaption></figure>

## 4. Configure and send a request

Once the API is authorized, we will configure the request. Make sure it is a "GET" request and enter the link [https://core.api.caleida.io/chats/records/{chat\_id}/](https://core.api.caleida.io/chats/records/%7Bchat_id%7D/) (where {chat\_id} represents the ID of the chat you wish to access).

For example, if your chat ID is 12345, the URL would be <https://core.api.caleida.io/chats/records/12345/>

### 4.1 Get the Chat ID

<figure><img src="https://2644172801-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK2NBwdwy5L4sWk0DohX6%2Fuploads%2F3vkOTVZiqIrfy3THsYGy%2FTutorial%20integracio%CC%81n%20API%204.png?alt=media&#x26;token=b407899a-bcd4-4e5b-a18e-53fabf66c877" alt=""><figcaption></figcaption></figure>

Once you have pasted the URL click on "Send".
