Retrieve a list of all active advertisements with pagination and filtering support
Request
Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
API Key
Add parameter in header
x-api-key
Example:
x-api-key: ********************
or
Query Params
Responses
🟢200OK
application/json
Advertisements retrieved successfully
Body
Example
{"status":"success","message":"Operation completed successfully","data":{"ads":[{"_id":"507f1f77bcf86cd799439011","name":"Summer Sale 2024","link":"https://example.com/sale","imagePath":"/uploads/ads/507f1f77bcf86cd799439011.jpg","isActive":true,"createdAt":"2019-08-24T14:15:22.123Z","updatedAt":"2019-08-24T14:15:22.123Z"}],"total":0,"page":0,"limit":0,"totalPages":0}}