💬 SalesByte

Contacts

Create, update, search, and delete contacts via the API.

Search contacts

GET /api/v1/contacts

Query parameters

ParamDescription
searchSearch by name or phone number
tagFilter by tag name
statusFilter by status (hot, warm, active, cold, new)
limitMax results (default 20)
offsetPagination offset

Example

curl "https://app.salesbyte.in/api/v1/contacts?search=rahul&tag=Hot+Lead" \
  -H "Authorization: Bearer YOUR_API_KEY"

Create or update a contact

POST /api/v1/contacts

Upserts by phone number — if a contact with that phone already exists, it's updated.

Request body

{
  "name": "Rahul Sharma",
  "phone": "+919876543210",
  "email": "rahul@example.com",
  "company": "Sharma Traders",
  "status": "hot",
  "tags": ["Interested", "Mumbai"]
}

All fields

FieldTypeDescription
phonestring✅ Required. With country code.
namestringFull name
emailstringEmail address
companystringCompany name
statusstringhot / warm / active / cold / new
lifecycle_stagestringlead / prospect / negotiation / customer / churned
tagsstring[]Tag names — created if they don't exist
address_asstringHow to greet them (e.g. "Rahul Ji")

Get a contact

GET /api/v1/contacts/:id

Returns the full contact record including tags.


Update a contact

PUT /api/v1/contacts/:id

Partial update — only send fields you want to change.

{
  "status": "warm",
  "company": "New Company Name"
}

Archive a contact

DELETE /api/v1/contacts/:id

Soft-deletes the contact (sets is_archived: true). The contact is hidden from the main list but not permanently deleted.

On this page