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-message

Request Body Structure

Field
Type
Required
Description

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

Field
Type
Description

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

Field
Type
Required
Description

url

String

☑️

Publicly accessible file URL. Required if additional_info is present.

caption

String

Short caption or description for the file.

Location Object

Field
Type
Required
Description

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