- Introduction
- Activity
- Authentication API
- Customer
- Case
- Contract
- Deal
- Employee
- Expense
- Product
- Create Or Update Products
- Get a Product Ticket
- Get Products With Take & Status
- Get a Product by ProductCode
- Get Product Groups
- Get Product Properties
- Get Products By Filter
- Verify Serial Number
- /v3/Products/serials/status
- Create or Update Codeguard Products
- Update Product Stock
- /v1/products/units
- /v1/products/units Copy
- Quotation
- SalesOrder
- Webhooks
- Task
- Setting
- Chat
Post Send message
Developing
POST
https://api.gofive.co.th/v1/chat/message
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Header Params
Content-Type
string
optional
Example:
application/json
Body Params application/json
roomId
string
required
content
string
required
type
string
required
platform
string
required
companyId
integer
required
Example
{
"roomId": "26259b2c-509c-4ff5-a82a-d1b5505b014d",
"content": "Hello, world",
"type": "message",
"platform": "line",
"companyId": 507
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.gofive.co.th/v1/chat/message' \
--header 'Content-Type: application/json' \
--data-raw '{
"roomId": "26259b2c-509c-4ff5-a82a-d1b5505b014d",
"content": "Hello, world",
"type": "message",
"platform": "line",
"companyId": 507
}'
Responses
🟢201Created
application/json
Body
status
object
required
code
string
required
Success = 1000
Error 1 ตัว = 4001
Error มากกว่า 1 ตัว = 4002
หรือเป็น Subcode ที่ต้องการจะแสดงเพื่อสื่อความหมายของ Error โดย subcode จะเป็นตัวเดียวกับ business error code หรือไม่ก็ได้ เพื่อความสะดวกในการแสดงผล
description
string
required
data
object
required
vwId
string
required
id
string
required
roomId
string
required
platform
string
required
user
object
required
content
string
required
timestamp
integer
required
type
string
required
deliveryStatus
string
required
traceId
string
required
isFirstCustomerMessage
boolean
required
Example
{
"status": {
"code": "1000",
"description": "Success"
},
"data": {
"vwId": "string",
"id": "string",
"roomId": "string",
"platform": "string",
"user": {
"id": "string",
"companyId": "string",
"type": "string",
"originalName": "string",
"originalName_EN": "string",
"avatar": "string",
"role": "string",
"displayName": "string"
},
"content": "string",
"timestamp": 0,
"type": "string",
"deliveryStatus": "string",
"traceId": "string",
"isFirstCustomerMessage": false
}
}
🟠401Unauthorized
🟠400Bad Request
🟠401User authentication required V2.
Modified at 2025-06-25 10:02:07