📄Activity Types

A user can perform various activities on conversations hosted on the Matar app. Get a list of languages and categories via API Endpoints below.

Get Activity Types

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

Params

Body Parameter ⬇️

Body ParameterData TypeDescription

Bearer {{access_token}} (required)

String

Access token helps secure access to Matar resources.


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')

{
    "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 ParameterDescription

_id

Activity Type ID

is_active

Whether activity type is active or not.

title

Activity Type Title.

Last updated