Cases
GET
https://leads.qreq.com/api/cases
curl --request GET \
--url 'https://leads.qreq.com/api/cases' \
--header 'Authorization: Bearer {api_key}'
--url 'https://leads.qreq.com/api/cases' \
--header 'Authorization: Bearer {api_key}'
{
"success": true,
"data": {
"current_page": 1,
"data": [],
"first_page_url": "https://leads.qreq.com/api/cases?page=1",
"from": null,
"last_page": 1,
"last_page_url": "https://leads.qreq.com/api/cases?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"page": null,
"active": false
},
{
"url": "https://leads.qreq.com/api/cases?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/cases",
"per_page": 10,
"prev_page_url": null,
"to": null,
"total": 0
}
}
GET
https://leads.qreq.com/api/cases/{id}
curl --request GET \
--url 'https://leads.qreq.com/api/cases/1' \
--header 'Authorization: Bearer {api_key}'
--url 'https://leads.qreq.com/api/cases/1' \
--header 'Authorization: Bearer {api_key}'
POST
https://leads.qreq.com/api/cases
title – Case title (string)description – Case details (string)status – Case status (open/closed/pending)
curl --request POST \
--url 'https://leads.qreq.com/api/cases' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data '{"title":"New Case","description":"Issue with client project","status":"open"}'
--url 'https://leads.qreq.com/api/cases' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data '{"title":"New Case","description":"Issue with client project","status":"open"}'
PUT
https://leads.qreq.com/api/cases/{id}
title – Updated titledescription – Updated descriptionstatus – Updated status
curl --request PUT \
--url 'https://leads.qreq.com/api/cases/1' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data '{"title":"Updated Case","description":"Resolved issue","status":"closed"}'
--url 'https://leads.qreq.com/api/cases/1' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data '{"title":"Updated Case","description":"Resolved issue","status":"closed"}'
DELETE
https://leads.qreq.com/api/cases/{id}
curl --request DELETE \
--url 'https://leads.qreq.com/api/cases/1' \
--header 'Authorization: Bearer {api_key}'
--url 'https://leads.qreq.com/api/cases/1' \
--header 'Authorization: Bearer {api_key}'