Calls

GET https://leads.qreq.com/api/calls
curl --request GET \
--url 'https://leads.qreq.com/api/calls' \
--header 'Authorization: Bearer {api_key}'
{ "success": true, "data": { "current_page": 1, "data": [], "first_page_url": "https://leads.qreq.com/api/calls?page=1", "from": null, "last_page": 1, "last_page_url": "https://leads.qreq.com/api/calls?page=1", "links": [ { "url": null, "label": "« Previous", "page": null, "active": false }, { "url": "https://leads.qreq.com/api/calls?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/calls", "per_page": 10, "prev_page_url": null, "to": null, "total": 0 } }
GET https://leads.qreq.com/api/calls/{id}
curl --request GET \
--url 'https://leads.qreq.com/api/calls/1' \
--header 'Authorization: Bearer {api_key}'
{ "success": true, "data": { "id": 1, "title": "Client Call", "date": "2025-11-05", "time": "16:00", "description": "Follow-up call with client", "created_at": "2025-10-30T09:30:00Z", "updated_at": "2025-10-30T09:30:00Z" } }
POST https://leads.qreq.com/api/calls
title – Call title (string)
date – Call date (YYYY-MM-DD)
time – Call time (HH:MM format)
description – Optional call details
curl --request POST \
--url 'https://leads.qreq.com/api/calls' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data '{"title":"Follow-up Call","date":"2025-11-06","time":"10:00","description":"Discuss next steps"}'
{ "success": true, "message": "Call created successfully.", "data": { "id": 2, "title": "Follow-up Call", "date": "2025-11-06", "time": "10:00", "description": "Discuss next steps", "created_at": "2025-11-04T10:45:00Z" } }
PUT https://leads.qreq.com/api/calls/{id}
curl --request PUT \
--url 'https://leads.qreq.com/api/calls/2' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data '{"title":"Updated Call","date":"2025-11-07","time":"11:00","description":"Updated discussion"}'
{ "success": true, "message": "Call updated successfully.", "data": { "id": 2, "title": "Updated Call", "date": "2025-11-07", "time": "11:00", "description": "Updated discussion", "updated_at": "2025-11-04T11:00:00Z" } }
DELETE https://leads.qreq.com/api/calls/{id}
curl --request DELETE \
--url 'https://leads.qreq.com/api/calls/2' \
--header 'Authorization: Bearer {api_key}'
{ "success": true, "message": "Call deleted successfully." }