# API docs

Checkout API details in [Swagger API Documentation](https://gochat.hyppo.io/api)

See [API limits](/docs/common-errors/platform-default-limits.md)

### Intro to APIs

GoChat API is used to retrieve data from the flow you build. Here are some examples that you could do with GoChat API.

* Pull the flow you have built from GoChat.
* Create, delete or obtain data including flow tag, flow field.
* Dealing with the data about the subscribers, involving getting the subsribers' information, editing their tag or field as well as the subflow sended to the subscribers.
* Configure all the data used in e-commerce such as carts or products.

If you need to deal with the data below, next sections will introduce the steps to use the GoChat API.

### Authorize

Since the protection of the data is important to the API, it needs to use several attribute to authorize your identity. Therefore, the first step you must do is to enter the authorized information. You need to click the Authorize button, as the following figure shown.

<figure><img src="/files/PJp8kI1y2UtdGh60jjjY" alt=""><figcaption></figcaption></figure>

Then, there are three attributes that you need to fill in the textbox.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf94tBitxk35ylv3tyzuNI_XoKt5xJL3niOPGxEwnkRQiCjmHN8qCwUd58KUrUiJOSK3vohcxXWqR8lPrdd2T3w-gd6d60xx_yGiFeoWkkWqFq0cvCMLjmxNCLUQy-5Xtgh86_z-A?key=PSyYmLJRgx9v5ZPQakkurQ" alt=""><figcaption></figcaption></figure>

Here are the ways to find these attributes in the following section.

#### Generate API Key (http,Bearer)

Step 1 After you login the account in GoChat, at the top right corner, it will show your account name and avatar. Click it and choose the Your Settings in the dropdown list.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXehNeSDXBwCROdTUMmlrSqR3x40GuK78iSLPlH5RP_ad2-nZuFlgnbFnUwqe8u4bjFasNweVr3SL-MBIrxKNDa0piBUUAfAc_xOgX07vsnHx0OLMwyowLhKKAFOrj1Iq-JQ1BRDCw?key=PSyYmLJRgx9v5ZPQakkurQ" alt=""><figcaption></figcaption></figure>

Step 2 Go to the API Keys Section by clicking the button in the User Setting. Enter the key name you would like to set and click the Create button.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfeRW0AGboVC54QN8IrzuvMAbYKV2rGiAy6cD4nIoi-AY_5-b4MjPEvU4RwJnY1WDALWYHus-uCl-gFiCFFahZ11qzUt_Qa8MrefeskkN1Udc5ceRHoMQ_ldA_jTcwwLjPyEFuTGg?key=PSyYmLJRgx9v5ZPQakkurQ" alt=""><figcaption></figcaption></figure>

Step 3 Then you will get key in a pop-up window.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeiPVyeVr3k8yhCkyULNHb0s6DXa9sZggs6bK_NHHH_DedFp9ryBgqg-iuqgvvYwQEQBg8UrC6TkKXQeb_FW34dzK3p4IqNjXDK5Zum13I8JvIGCdwo1HMr9S-5FCcdQr0KK62_?key=PSyYmLJRgx9v5ZPQakkurQ" alt=""><figcaption></figcaption></figure>

WARNING

Here is your new API Key. This is the only time the key will ever be displayed, so be sure not to lose it! You may revoke the key at any time from your API settings.

Close the window you will get the basic information about the key except the value of the key.

### Get the Curl and Request URL

Curl is used in API requests. In GoChat API documentation, you need some operation before getting the curl in the GoChat api documentation.

Here, we use Get Flow Tag as an example.

<figure><img src="/files/kPJs1WE2aJYMSn3YXpEe" alt=""><figcaption></figcaption></figure>

Step 1. Click the expand operation of category, the Flow Tag in this case. Then find the action and the feature, Get /flow/tags. Click the row and a page will dropdown shown as following.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcimWYMSK9WfrhbK_7QFAW8FWoElNin2dMEoerYykXdo_6uauMiaZo1ie8wMf9BwEBgyzGwq_ZddIiVrGMhI6O8kJhFoUl8VGar0Kk3PQKgAr-7n9ISMiroJgdFd739DnCVsu9K7g?key=PSyYmLJRgx9v5ZPQakkurQ" alt=""><figcaption></figcaption></figure>

Step 2. This logo means authorize. If you have done this before, this step is not required. Or, you just do the same as it was mentioned before in the Authorize section.

Step 3. Click Try it out. Then you will see that the Parameters or Request body part could be inputted and the Exexute Button is shown at the bottom of this part.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXd-v28xwYNQDcH7wPM1NbDZXK41kfrcI-nOvYuHcd6sIDz9mh5bejK8sVltNykcjCOo-4wboWYbn0CK0GbNhgFjOa927pc3MAxjpGM1QgCyHgqNaCs7N0vV431oqeMJqOAFpdVHgA?key=PSyYmLJRgx9v5ZPQakkurQ" alt=""><figcaption></figcaption></figure>

Step 4. Enter the parameters or request body required and click the Exexute Button. Finally you will get the Curl and Request URL.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcLDJsysyTNvr16ltiKXZGrw6Jl_DORFGmPofpo41XXzwjw3KwZSBSD24a0-7YETzjQFKsFz-DAIjfUXVMhY9aeTVMdnqak5lPun9S5C_ttFeJDCgyHwIeSSNsLmpQfnI8KufqvyA?key=PSyYmLJRgx9v5ZPQakkurQ" alt=""><figcaption></figcaption></figure>

TIP

Click the Clear button if you need reset the parameters.

### Responses

This part display the Json result you will get from the GoChat API. Normally if the code is 200, it means that you get the response successfully. If the code is 400, it means that there is error in your response.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeH8uJ7gPS0Odyw-DWc8rFTHIXWRAR5GZSkgfggCka9aUh22fGIBWoKhl8NNILn5T8ps6hW3uUsFhSfQgCLM_UkxtOM-EntWyHEYx-ieyg-CF-tF2tvHOGvTQ9IdPKaPJID3heQMA?key=PSyYmLJRgx9v5ZPQakkurQ" alt=""><figcaption></figcaption></figure>

### Example Value / Schema

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXenj8rXQMmzj_u7fayeNvNiYyDgJa2wzjaJDDvTQVi_IVrjINLxW9NhK9oLHqZ4Q1HswEk2_LnoQzEGvoSr1qKp3IkaCWsG9M7lbwP9qN_d7-VUALEXln11YjiBKzHRWP7r1lvB?key=PSyYmLJRgx9v5ZPQakkurQ" alt=""><figcaption></figcaption></figure>

Apart from example value, you can click on "Schema" to view more details like which value is mandatory.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfO2e7kTIJiG_kRL04F-IfMLtIxwh9Q5T_HF-sDJ6EEsVzXd4e0WW2CZW9P2UaLHAwXX8GTlM15yPivi6SMKQ3svxNpYZRpEHFv07cO2g28r1Znn32i7k9HzHtC2TD2ytUY2VxRtg?key=PSyYmLJRgx9v5ZPQakkurQ" alt=""><figcaption></figcaption></figure>

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gochat.gitbook.io/docs/api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
