cURL
curl --request POST \ --url https://swiftchats.axis96.xyz/api/canned-replies \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "About Us", "trigger": "what do you do?", "match_criteria": "contains", "response_type": "text", "response": "We sell shoes" }'
{ "statusCode": 200, "id": "a759be89-6135-4503-8ff2-0c914da21e4a", "message": "Request processed successfully" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
OK
The response is of type object.
object