Body Required
-
Message Type
-
Message Text
-
URL
-
Document Attachment
-
Entity Key
-
Chat ID
-
Message ID
-
Task ID
-
File ID
-
Document ID
-
task object
Task Details
-
external_files array[string]
List of External files
-
nifty_files array[string]
List of Nifty Files
-
date string(date-time)
Date
-
bot_name string
BOT Name
-
bot_avatar string
BOT Avtar
-
emails string
Emails
-
annotation_id string
Annotation ID
-
context_text string
Context Text
-
audio_duration string
Audion Duration
Responses
-
The resource created successfully
-
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.
POST /api/v1.0/messages
curl \
-X POST https://openapi.niftypm.com/api/v1.0/messages \
-H "Content-Type: application/json" \
-d '{"type":"string","text":"string","url":"string","doc_attachment":"string","entity_key":"string","chat_id":"string","message_id":"string","task_id":"string","file_id":"string","doc_id":"string","task":{},"external_files":["string"],"nifty_files":["string"],"date":"2023-05-04T09:42:00+00:00","bot_name":"string","bot_avatar":"string","hidden":["string"],"emails":"string","annotation_id":"string","context_text":"string","audio_duration":"string"}'
Request example
{
"type": "string",
"text": "string",
"url": "string",
"doc_attachment": "string",
"entity_key": "string",
"chat_id": "string",
"message_id": "string",
"task_id": "string",
"file_id": "string",
"doc_id": "string",
"task": {},
"external_files": [
"string"
],
"nifty_files": [
"string"
],
"date": "2023-05-04T09:42:00+00:00",
"bot_name": "string",
"bot_avatar": "string",
"hidden": [
"string"
],
"emails": "string",
"annotation_id": "string",
"context_text": "string",
"audio_duration": "string"
}
Request examples
{
"type": "string",
"text": "string",
"url": "string",
"doc_attachment": "string",
"entity_key": "string",
"chat_id": "string",
"message_id": "string",
"task_id": "string",
"file_id": "string",
"doc_id": "string",
"task": {},
"external_files": [
"string"
],
"nifty_files": [
"string"
],
"date": "2024-05-04T09:42:00+00:00",
"bot_name": "string",
"bot_avatar": "string",
"hidden": [
"string"
],
"emails": "string",
"annotation_id": "string",
"context_text": "string",
"audio_duration": "string"
}
Response examples (201)
{
"message": "string",
"data": {}
}
Response examples (201)
{
"message": "string",
"data": {}
}