# Activity Types

{% hint style="info" %}
A user can perform various activities on conversations hosted on the Matar app. Get a list of languages and categories via API Endpoints below.
{% endhint %}

## Get Activity Types

Get all activity Types for questions and answers posted on the Matar app.

<img src="https://203590333-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIHuU6kmTWQfXxOUkN7No%2Fuploads%2FVZfy9HpuRRDfOKFAE12C%2Ffile.excalidraw.svg?alt=media&#x26;token=131294f7-530f-49ab-a720-13dfb1420f2e" alt="API:- https://matar.in.ngrok.io/api/v1/activity_types" class="gitbook-drawing">

### Params

**Body Parameter ⬇️**

<table data-full-width="false"><thead><tr><th width="229.33333333333331">Body Parameter</th><th width="129">Data Type</th><th>Description</th></tr></thead><tbody><tr><td><strong>Bearer {{access_token}} </strong><mark style="color:red;"><strong>(required)</strong></mark></td><td>String</td><td>Access token helps secure access to Matar resources.</td></tr></tbody></table>

***

**Sample Request ⬇️️ (Body Parameter)**

```
curl --location 'https://matar.in.ngrok.io/api/v1/activity_types' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmcmVzaCI6dHJ1ZSwiaWF0IjoxNjkyODcyNDIxLCJqdGkiOiIyZmNiODJiYi0zMDYzLTQzNGUtOGM5OS00NTVjMDhhY2Y3MmMiLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiMzk1MDFUIiwibmJmIjoxNjkyODcyNDIxLCJleHAiOjE2OTM3MzY0MjF9.ovz0ItiPsYG_rqT3vEYl42WZBonX52NXf-oWE4DuGmQ'
```

**Responses ⬇️**

Status Code: **🟢200** (200 denotes **'ok'**)

```200
{
    "activity_types": [
        {
            "_id": "reply",
            "is_active": true,
            "title": "reply"
        },
        {
            "_id": "like",
            "is_active": true,
            "title": "like"
        },
        {
            "_id": "downvote",
            "is_active": true,
            "title": "downvote"
        },
        {
            "_id": "dislike",
            "is_active": true,
            "title": "dislike"
        },
        {
            "_id": "share",
            "is_active": true,
            "title": "share"
        },
        {
            "_id": "upvote",
            "is_active": true,
            "title": "upvote"
        },
        {
            "_id": "block",
            "is_active": true,
            "title": "block"
        },
        {
            "_id": "view",
            "is_active": true,
            "title": "view"
        }
    ]
}
```

Status Code: 🔴**404** (404 denotes **'Not found'**)

```
{
      "message": "Ain't no cake like that."
}
```

***

**Response Parameters Description:**

| Response Parameter | Description                             |
| ------------------ | --------------------------------------- |
| \_id               | Activity Type ID                        |
| is\_active         | Whether activity type is active or not. |
| title              | Activity Type Title.                    |


---

# 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://gramhal.gitbook.io/matar/developer-reference/api/activity-types.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.
