Skip to main content
GET

List Contacts

GET /api/contacts Retrieve a paginated list of contacts.

Headers

Session cookie (login via POST /api/auth/login)

Query parameters

integer
default:"1"
Page number for pagination.
integer
default:"20"
Items per page (max: 100).
Search name, phone, or email.
integer
Filter by group.
string
Comma-separated tags.
string
default:"created_at"
Sort field.
string
default:"desc"
asc or desc.

Get all contacts (no pagination)

GET /api/contacts-all Returns all contacts without pagination. Useful for exports.

Get contacts by user

GET /api/user/contacts/:userId Retrieve contacts associated with a specific user.