cURL
curl --request POST \ --url https://swiftchats.axis96.xyz/api/contacts \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "first_name": "Jeffrey", "last_name": "Mwangi", "email": "[email protected]", "phone": "+254722562088" }'
{ "statusCode": 200, "id": "4febd07e-6097-45eb-9739-8ce7f4a51aa1", "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