Sending User Activity to OCA
This endpoint is used to send all user activities from your platform to OCA for processing.
Endpoint
POST https://nlp-processing.ocatelkom.co.id/api/v1/inbound/send-messageRequest Body Structure
user_id
String
✅
Unique ID for the user in the external system.
type
String
✅
Message type. Options: text, image, location, file.
message
String
☑️
Text message content. Required if type is text.
session
String
Unique ID for the conversation session. Auto-generated if not provided.
metadata
Object
Optional user information.
timestamp
String
Send time in ISO 8601 format (YYYY-MM-DDTHH:mm:ss).
additional_info
Object
Object containing file information (image or file).
location
Object
Object containing location data.
Metadata Object
name
String
User's full name.
email
String
User's email address.
phone
String
User's phone number.
address
String
User's address.
Additional Info Object
url
String
☑️
Publicly accessible file URL. Required if additional_info is present.
caption
String
Short caption or description for the file.
Location Object
latitude
Float
☑️
Latitude coordinate. Required if location is present.
longitude
Float
☑️
Longitude coordinate. Required if location is present.
address
String
Human-readable address.
Last updated
