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
-
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 \
-X GET https://openapi.niftypm.com/api/v1.0/messages \
-H "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": "2023-05-04T09:42:00+00:00",
"googleId": "string",
"googleType": "string",
"processed": true
}
],
"is_edited": true,
"is_deleted": true,
"created_at": "2023-05-04T09:42:00+00:00",
"updated_at": "2023-05-04T09:42:00+00:00",
"annotation_id": "string",
"heardBy": [
"string"
],
"audio_duration": 42.0,
"heard": true
}
],
"has_more": true
}
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": "2024-05-04T09:42:00+00:00",
"googleId": "string",
"googleType": "string",
"processed": true
}
],
"is_edited": true,
"is_deleted": true,
"created_at": "2024-05-04T09:42:00+00:00",
"updated_at": "2024-05-04T09:42:00+00:00",
"annotation_id": "string",
"heardBy": [
"string"
],
"audio_duration": 42.0,
"heard": true
}
],
"has_more": true
}