📄Post GPT Processing

Get answers from ChatGPT for posts using API's below:


Get ChatGPT answer.

Get answers to your question posts using ChatGPT.

Params

Query Parameter ⬇️

Query ParameterData TypeDescription

post_id (required)

String

A unique identifier for question post.

organization_id (required)

String

An identifier for organisation/community in which question is posted.

Header Parameter ⬇️

Header ParameterData TypeDescription

Bearer {{access_token}} (required)

String

Access tokens provides secure access to Matar Server Resources.


Sample Request ⬇️️

curl --location --globoff --request GET 'https://matar.in.ngrok.io/api/v1/get_gpt_answer?post_id=OKFW5UWYHR&organization_id={{org_id}}' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmcmVzaCI6dHJ1ZSwiaWF0IjoxNjkzMTYzNjYyLCJqdGkiOiI2Yzk3NTI1Mi05OWIzLTQzODEtOTU1NC0zM2VmM2ZhNTE0ZjUiLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoiRUE5UzZaIiwibmJmIjoxNjkzMTYzNjYyLCJleHAiOjE2OTQwMjc2NjJ9.vVll7d-oq_pNU6dDIZvmxFndZAUQ9QvTdh_AA6BvVuE' 

Responses ⬇️

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

{
      
}

Status Code: 🔴400 (400 denotes 'Bad request')

{
    "message": "chatgpt not enabled for this post"
}

Last updated