Skip to main content
POST
/
contacts
/
books
/
{name}
Add a contact to a book
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"
  }
}

Authorizations

X-Api-Key
string
header
required

Path Parameters

name
string
required

Name of the contact book

Body

application/json
phoneNumber
string
required
Example:

"+25884xxxxxxx"

contactName
string
Example:

"John Doe"

Response

Contact added

success
boolean
Example:

true

contact
object