Legacy Cloud API

Contacts

Create and manage contacts through the External Cloud API.

GET /contact/list Public https://staging-mobile.washeej.com/external-api/contact/list

List contacts for the authenticated account.

cURL
curl -H "client-id: YOUR_CLIENT_ID" \
     -H "client-secret: YOUR_CLIENT_SECRET" \
     https://staging-mobile.washeej.com/external-api/contact/list
API v1 equivalent Prefer GET /v1/contacts for new integrations. Open API v1 docs →
POST /contact/store Public https://staging-mobile.washeej.com/external-api/contact/store

Create a contact.

Parameter Type Required Description
firstname string required First name.
lastname string optional Last name.
mobile_code string required Dial code without +.
mobile string required National number digits.
cURL
curl -X POST https://staging-mobile.washeej.com/external-api/contact/store \
  -H "client-id: YOUR_CLIENT_ID" \
  -H "client-secret: YOUR_CLIENT_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"firstname":"Ahmed","mobile_code":"966","mobile":"500000000"}'
API v1 equivalent Prefer POST /v1/contacts for new integrations. Open API v1 docs →
POST /contact/update/{id} Public https://staging-mobile.washeej.com/external-api/contact/update/{id}

Update an existing contact.

Parameter Type Required Description
id path integer required Contact ID.
firstname string optional First name.
lastname string optional Last name.
cURL
curl -X POST https://staging-mobile.washeej.com/external-api/contact/update/4821 \
  -H "client-id: YOUR_CLIENT_ID" \
  -H "client-secret: YOUR_CLIENT_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"firstname":"Ahmed"}'
API v1 equivalent Prefer PATCH /v1/contacts/{id} for new integrations. Open API v1 docs →
DELETE /contact/delete/{id} Public https://staging-mobile.washeej.com/external-api/contact/delete/{id}

Delete a contact.

Parameter Type Required Description
id path integer required Contact ID.
cURL
curl -X DELETE https://staging-mobile.washeej.com/external-api/contact/delete/4821 \
  -H "client-id: YOUR_CLIENT_ID" \
  -H "client-secret: YOUR_CLIENT_SECRET"
API v1 equivalent Prefer DELETE /v1/contacts/{id} for new integrations. Open API v1 docs →