Start a conversation

This endpoint is used for creating a conversation between users on Shopiro. It can be accessed via both GET and POST requests.

GET / POST https://shopiro.ca/api/v1/{appid}/{pvk}/get/agent

Request Parameters

  • uid: The user ID of the other user in the conversation. (Required)
  • auid: The agent user ID representing the entity. (Optional)

Response Structure

The response will be a JSON object containing either a success or failure message.

  • success: Indicates the conversation was successfully created.
  • failed: Describes the reason for failure, such as 'conversation_already_exists' or 'userid_invalid'.

Example Usage