Campaign Types
GET
https://leads.qreq.com/api/campaign-types
curl --request GET \
--url 'https://leads.qreq.com/api/campaign-types' \
--header 'Authorization: Bearer {api_key}'
--url 'https://leads.qreq.com/api/campaign-types' \
--header 'Authorization: Bearer {api_key}'
{
"success": true,
"message": "Campaign types fetched successfully.",
"data": {
"current_page": 1,
"data": [
{
"id": 1,
"name": "test",
"description": "test",
"color": "#6b7cff",
"status": "active",
"created_by": 9,
"created_at": "2025-11-04T10:47:10.000000Z",
"updated_at": "2025-11-04T10:47:10.000000Z"
}
],
"first_page_url": "https://leads.qreq.com/api/campaign-types?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "https://leads.qreq.com/api/campaign-types?page=1",
"links": [
{"url": null, "label": "« Previous", "page": null, "active": false},
{"url": "https://leads.qreq.com/api/campaign-types?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/campaign-types",
"per_page": 10,
"prev_page_url": null,
"to": 1,
"total": 1
}
}
GET
https://leads.qreq.com/api/campaign-types/{id}
curl --request GET \
--url 'https://leads.qreq.com/api/campaign-types/{id}' \
--header 'Authorization: Bearer {api_key}'
--url 'https://leads.qreq.com/api/campaign-types/{id}' \
--header 'Authorization: Bearer {api_key}'
{
"success": true,
"message": "Campaign type retrieved successfully.",
"data": {
"id": 1,
"name": "test",
"description": "test",
"color": "#6b7cff",
"status": "active",
"created_by": 9,
"created_at": "2025-11-04T10:47:10.000000Z",
"updated_at": "2025-11-04T10:47:10.000000Z"
}
}
POST
https://leads.qreq.com/api/campaign-types
| Parameters | Details | Description |
|---|---|---|
| name | RequiredString | Campaign type name |
| description | OptionalString | Campaign type description |
| color | OptionalString | Color code (e.g. #6b7cff) |
curl --request POST \
--url 'https://leads.qreq.com/api/campaign-types' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "name": "Email Campaign", "description": "Campaign for email outreach", "color": "#00b894" }'
--url 'https://leads.qreq.com/api/campaign-types' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "name": "Email Campaign", "description": "Campaign for email outreach", "color": "#00b894" }'
{
"success": true,
"message": "Campaign type created successfully.",
"data": {
"id": 2,
"name": "Email Campaign",
"description": "Campaign for email outreach",
"color": "#00b894",
"status": "active",
"created_at": "2025-11-04T12:00:00.000000Z",
"updated_at": "2025-11-04T12:00:00.000000Z"
}
}
PUT
https://leads.qreq.com/api/campaign-types/{id}
curl --request PUT \
--url 'https://leads.qreq.com/api/campaign-types/{id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "name": "Updated Campaign", "description": "Updated campaign details", "color": "#0984e3" }'
--url 'https://leads.qreq.com/api/campaign-types/{id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "name": "Updated Campaign", "description": "Updated campaign details", "color": "#0984e3" }'
{
"success": true,
"message": "Campaign type updated successfully.",
"data": {
"id": 2,
"name": "Updated Campaign",
"description": "Updated campaign details",
"color": "#0984e3",
"updated_at": "2025-11-04T12:10:00.000000Z"
}
}
DELETE
https://leads.qreq.com/api/campaign-types/{id}
curl --request DELETE \
--url 'https://leads.qreq.com/api/campaign-types/{id}' \
--header 'Authorization: Bearer {api_key}'
--url 'https://leads.qreq.com/api/campaign-types/{id}' \
--header 'Authorization: Bearer {api_key}'
{
"success": true,
"message": "Campaign type deleted successfully."
}