Common Patterns
Pagination & Filtering
All list endpoints in the Qwetty API support pagination and filtering.
Pagination
Use page and limit query parameters:
Code
| Parameter | Default | Description |
|---|---|---|
page | 1 | Page number (1-indexed) |
limit | 20 | Items per page |
Response metadata
Paginated responses include a meta object:
Code
Searching
The search parameter is supported on the chats endpoint, where it matches the chat name, contact name, and contact phone number:
Code
The contacts and messages endpoints do not currently accept a
searchparameter.
Sorting
List endpoints return results in a fixed order — most recently updated/created first. There are no sort or order query parameters.
Next steps
- Error Handling — Handle API errors
- Rate Limits — Request limits
- API Reference — Full endpoint documentation
Last modified on