cURL
curl --request POST \ --url https://ecsend.paysgator.com/contacts/books/{name} \ --header 'Content-Type: application/json' \ --header 'X-Api-Key: <api-key>' \ --data ' { "phoneNumber": "+25884xxxxxxx", "contactName": "John Doe" } '
{ "success": true, "contact": { "phoneNumber": "+25884xxxxxxx", "name": "John Doe" } }
Adds a new contact to an existing contact book.
Name of the contact book
"+25884xxxxxxx"
"John Doe"
Contact added
true
Show child attributes