docs

WAABOT-SDK APIs: Contact and Contact Groups

Contacts


AUTHORIZATION Bearer Token

POST Create

/contact

Example Request

curl --location '/contact' \
--header 'x-refresh;' \
--data '{
    "session_id": "",
    "access_token": "",
    "name": "Banky",
    "number": "1234556677",
    "group_id": "64a00ec7c5e487d95dcb0d5c"
}'

Example Response


GET Get My Contacts

/contact

Example Request

curl --location --request GET '/contact' \
--data '{
    "session_id": "",
    "access_token": ""
}'

Example Response


GET Get Many Contacts (All)

/contact?type=all

Example Request

curl --location --request GET '/contact?type=all' \
--data '{
    "session_id": "",
    "access_token": ""
}'

Example Response


GET Get Single Contact

/contact/61b18f5e96140e23145547e9

Example Request

curl --location --request GET '/contact/61b18f5e96140e23145547e9' \
--data '{
    "session_id": "",
    "access_token": ""
}'

Example Response


DEL Delete

/contact/61b18f5e96140e23145547e9

Example Request

curl --location --request DELETE '/contact/61b18f5e96140e23145547e9' \
--data '{
    "session_id": "",
    "access_token": ""
}'

Example Response


PUT Update

/contact/61b192b8c08ae0401002c09d

Example Request

curl --location --request PUT '/contact/61b192b8c08ae0401002c09d' \
--data '{
    "session_id": "",
    "access_token": "",
    "title": "Greetings Msgs",
    "keyword": "hello,hi,cool",
    "reply": "How are you doing?!"
}'

Example Response


Contact Groups


AUTHORIZATION Bearer Token

POST Create

/contact_groups

Example Request

curl --location '/contact_groups' \
--data '{
    "session_id": "",
    "access_token": "",
    "title": "Group Name"
}'

Example Response


GET Get My Groups

/contact_groups

Example Request

curl --location --request GET '/contact_groups' \
--data '{
    "session_id": "",
    "access_token": ""
}'

Example Response


GET Get Single Group

/contact_groups/64a00ec7c5e487d95dcb0d5c

Example Request

curl --location --request GET '/contact_groups/61b19db18f12f271545eec6f' \
--data '{
    "session_id": "",
    "access_token": ""
}'

Example Response


DEL Delete

/contact_groups/61b19db18f12f271545eec6f

Example Request

curl --location --request DELETE '/contact_groups/61b19db18f12f271545eec6f' \
--data '{
    "session_id": "",
    "access_token": ""
}'

Example Response

PUT Update

/contact_groups/61b19e128f12f271545eec7c

Example Request

curl --location --request PUT '/contact_groups/61b19e128f12f271545eec7c' \
--data '{
    "session_id": "",
    "access_token": "",
    "title": "Updated Group Name"
}'

Example Response



We hope this guide provides you with the necessary information to create, get, and update contacts and contact groups using our API. If you have any questions or need further assistance, please feel free to contact our support team.