Query parameters
-
chat_id
string Chat ID
-
message_id
string Message ID
-
task_id
string Task ID
-
file_id
string File ID
-
doc_id
string Document ID
-
entity_key
string Entity Key
-
limit
string No of records per page
-
offset
string Record Offset
-
before_id
string Before ID
-
after_id
string After ID
-
before_date
string Before Date
-
after_date
string After Date
-
annotation_id
string Annotation ID
-
type
string Type
-
useCache
boolean Use Cache
Responses
-
200 application/json
Success Response
-
The client request has not been completed because it lacks valid authentication credentials for the requested resource.
-
The client does not have access rights to the content.
-
The request method is known by the server but is not supported by the target resource.
GET
/api/v1.0/messages
curl \
--request GET https://openapi.niftypm.com/api/v1.0/messages \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"messages": [
{
"id": "string",
"type": "string",
"hide_link_preview": true,
"subtype": "string",
"text": "string",
"url": "string",
"chat": "string",
"thread": "string",
"task": "string",
"file": "string",
"document": "string",
"entity_key": "string",
"author": "string",
"replies": 42.0,
"repliers": [
"string"
],
"tagged": [
"string"
],
"seen_by": [
"string"
],
"hidden": [
"string"
],
"doc_attachment": "string",
"attachments": [
{
"id": "string",
"name": "string",
"size": 42.0,
"url": "string",
"download": "string",
"thumbnail": "string",
"uploader": "string",
"comments": 42.0,
"created_at": "2025-05-04T09:42:00Z",
"googleId": "string",
"googleType": "string",
"processed": true
}
],
"is_edited": true,
"is_deleted": true,
"created_at": "2025-05-04T09:42:00Z",
"updated_at": "2025-05-04T09:42:00Z",
"annotation_id": "string",
"heardBy": [
"string"
],
"audio_duration": 42.0,
"heard": true
}
],
"has_more": true
}