Contacts API

Keep your Nkomo SMS contact groups in step with your own system: create groups and add, update or remove contacts.

Base URLhttps://app.nkomosms.com/api/v3

Contacts live in groups. Create a group first, then add contacts to it using the group uid. You can then send to a whole group from your dashboard.

Contact groups

Create a group

POST/api/v3/contacts

Creates a new contact group and returns it with its uid.

Body parameters

ParameterRequiredDescription
namestringRequiredThe name of the group.
Example request
curl -X POST "https://app.nkomosms.com/api/v3/contacts" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "name": "Parents 2026"
  }'
Response
{
  "status": "success",
  "data": "…"
}
Error response
{
  "status": "error",
  "message": "A human-readable description of the error."
}

View a group

POST/api/v3/contacts/{group_id}/show

Returns one contact group.

Path parameters

ParameterRequiredDescription
group_idstringRequiredThe contact group uid.
Example request
curl -X POST "https://app.nkomosms.com/api/v3/contacts/6065ecdc9184a/show" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
Response
{
  "status": "success",
  "data": "…"
}
Error response
{
  "status": "error",
  "message": "A human-readable description of the error."
}

Rename a group

PATCH/api/v3/contacts/{group_id}

Changes the name of a group.

Path parameters

ParameterRequiredDescription
group_idstringRequiredThe contact group uid.

Body parameters

ParameterRequiredDescription
namestringRequiredThe new name.
Example request
curl -X PATCH "https://app.nkomosms.com/api/v3/contacts/6065ecdc9184a" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "name": "Parents 2026 (JHS)"
  }'
Response
{
  "status": "success",
  "data": "…"
}
Error response
{
  "status": "error",
  "message": "A human-readable description of the error."
}

Delete a group

DELETE/api/v3/contacts/{group_id}

Deletes a group.

Path parameters

ParameterRequiredDescription
group_idstringRequiredThe contact group uid.
Example request
curl -X DELETE "https://app.nkomosms.com/api/v3/contacts/6065ecdc9184a" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
Response
{
  "status": "success",
  "data": null
}
Error response
{
  "status": "error",
  "message": "A human-readable description of the error."
}

List your groups

GET/api/v3/contacts

Returns your contact groups in pages.

Example request
curl -X GET "https://app.nkomosms.com/api/v3/contacts" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
Response
{
  "status": "success",
  "data": "…"
}
Error response
{
  "status": "error",
  "message": "A human-readable description of the error."
}

Contacts

Add a contact

POST/api/v3/contacts/{group_id}/store

Adds a contact to a group.

Path parameters

ParameterRequiredDescription
group_idstringRequiredThe contact group uid.

Body parameters

ParameterRequiredDescription
PHONEnumberRequiredThe contact's phone number, for example 233552690110.
FIRST_NAME, LAST_NAME, …stringOptionalAny other fields set up on the group. Field names are in capital letters.
Example request
curl -X POST "https://app.nkomosms.com/api/v3/contacts/6065ecdc9184a/store" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "PHONE": "233552690110",
    "FIRST_NAME": "Ama",
    "LAST_NAME": "Mensah"
  }'
Response
{
  "status": "success",
  "data": "…"
}
Error response
{
  "status": "error",
  "message": "A human-readable description of the error."
}

View a contact

POST/api/v3/contacts/{group_id}/search/{uid}

Returns one contact.

Path parameters

ParameterRequiredDescription
group_idstringRequiredThe contact group uid.
uidstringRequiredThe contact uid.
Example request
curl -X POST "https://app.nkomosms.com/api/v3/contacts/6065ecdc9184a/search/606732aec8705" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
Response
{
  "status": "success",
  "data": "…"
}
Error response
{
  "status": "error",
  "message": "A human-readable description of the error."
}

Update a contact

PATCH/api/v3/contacts/{group_id}/update/{uid}

Changes a contact's number or fields.

Path parameters

ParameterRequiredDescription
group_idstringRequiredThe contact group uid.
uidstringRequiredThe contact uid.

Body parameters

ParameterRequiredDescription
PHONEnumberRequiredThe contact's phone number, for example 233552690110.
FIRST_NAME, LAST_NAME, …stringOptionalAny other fields set up on the group. Field names are in capital letters.
Example request
curl -X PATCH "https://app.nkomosms.com/api/v3/contacts/6065ecdc9184a/update/606732aec8705" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "PHONE": "233552690110",
    "FIRST_NAME": "Ama",
    "LAST_NAME": "Owusu"
  }'
Response
{
  "status": "success",
  "data": "…"
}
Error response
{
  "status": "error",
  "message": "A human-readable description of the error."
}

Delete a contact

DELETE/api/v3/contacts/{group_id}/delete/{uid}

Removes a contact from a group.

Path parameters

ParameterRequiredDescription
group_idstringRequiredThe contact group uid.
uidstringRequiredThe contact uid.
Example request
curl -X DELETE "https://app.nkomosms.com/api/v3/contacts/6065ecdc9184a/delete/606732aec8705" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
Response
{
  "status": "success",
  "data": "…"
}
Error response
{
  "status": "error",
  "message": "A human-readable description of the error."
}

List contacts in a group

POST/api/v3/contacts/{group_id}/all

Returns the contacts in a group in pages.

Path parameters

ParameterRequiredDescription
group_idstringRequiredThe contact group uid.
Example request
curl -X POST "https://app.nkomosms.com/api/v3/contacts/6065ecdc9184a/all" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
Response
{
  "status": "success",
  "data": "…"
}
Error response
{
  "status": "error",
  "message": "A human-readable description of the error."
}

Need help with your integration?

Message us on WhatsApp, call +233 55 269 0110 or email support@nkomosms.com. Send us the request you made and the response you got, but never your API token.