Target Lists

GET https://leads.qreq.com/api/target-lists
curl --request GET \
--url 'https://leads.qreq.com/api/target-lists' \
--header 'Authorization: Bearer {api_key}'
{ "success": true, "data": { "current_page": 1, "data": [ { "id": 1, "name": "test", "description": "test", "status": "active", "created_by": 9, "created_at": "2025-11-04T11:01:59.000000Z", "updated_at": "2025-11-04T11:01:59.000000Z" } ], "first_page_url": "https://leads.qreq.com/api/target-lists?page=1", "from": 1, "last_page": 1, "last_page_url": "https://leads.qreq.com/api/target-lists?page=1", "links": [ { "url": null, "label": "« Previous", "page": null, "active": false }, { "url": "https://leads.qreq.com/api/target-lists?page=1", "label": "1", "page": 1, "active": true }, { "url": null, "label": "Next »", "page": null, "active": false } ], "next_page_url": null, "path": "https://leads.qreq.com/api/target-lists", "per_page": 10, "prev_page_url": null, "to": 1, "total": 1 } }
GET https://leads.qreq.com/api/target-lists/{list_id}
curl --request GET \
--url 'https://leads.qreq.com/api/target-lists/{list_id}' \
--header 'Authorization: Bearer {api_key}'
{ "success": true, "message": "Target list retrieved successfully.", "data": { "id": 1, "name": "test", "description": "test", "status": "active", "created_by": 9, "created_at": "2025-11-04T11:01:59.000000Z", "updated_at": "2025-11-04T11:01:59.000000Z" } }
POST https://leads.qreq.com/api/target-lists
Parameters Details Description
name RequiredString Target list name
description OptionalString Description of target list
curl --request POST \
--url 'https://leads.qreq.com/api/target-lists' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "name": "Leads List", "description": "Potential leads for November" }'
{ "success": true, "message": "Target list created successfully.", "data": { "id": 2, "name": "Leads List", "description": "Potential leads for November", "status": "active", "created_by": 9, "created_at": "2025-11-04T11:10:00.000000Z", "updated_at": "2025-11-04T11:10:00.000000Z" } }
PUT https://leads.qreq.com/api/target-lists/{list_id}
curl --request PUT \
--url 'https://leads.qreq.com/api/target-lists/{list_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "name": "Updated List", "description": "Updated target audience" }'
{ "success": true, "message": "Target list updated successfully.", "data": { "id": 2, "name": "Updated List", "description": "Updated target audience", "status": "active", "updated_at": "2025-11-04T11:20:00.000000Z" } }
DELETE https://leads.qreq.com/api/target-lists/{list_id}
curl --request DELETE \
--url 'https://leads.qreq.com/api/target-lists/{list_id}' \
--header 'Authorization: Bearer {api_key}'
{ "success": true, "message": "Target list deleted successfully." }