Cream Channel/Chat API

This is an API description for Chatting.

To start with, obtain a token for 365 days with the API.

Obtain App Token for 365 Days

post
Body
clientIdstringRequired

Client ID

clientSecretstringRequired

Client Secret

Responses
200Success
application/json
post
/api/v1/ext/auth/oauth/apptoken
200Success

When the accessToken is obtained. Check the channel list.

Channels - List All

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200Success
application/json
get
/oapi/v1/channel
200Success

Remember to put the token in the Authorization header.

Channel - Send Message

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
channelIdstringRequiredExample: 6704a190fce9b223ed673aec
Body
externalUserIdstringRequired

Whatsapp Phone Number

msgTypestringRequired

Type of Message

contentstringRequired

Content of the message

Responses
200Success
application/json
post
/oapi/v1/channel/{channelId}/message/send
200Success

Send message with the send api.

Last updated