Accounts
GET https://leads.qreq.com/api/accounts
curl --request GET \
--url 'https://leads.qreq.com/api/accounts' \
--header 'Authorization: Bearer {api_key}'
--url 'https://leads.qreq.com/api/accounts' \
--header 'Authorization: Bearer {api_key}'
{
"status": "success",
"message": "Accounts retrieved successfully.",
"data": {
"current_page": 1,
"data": [
{
"id": 1,
"name": "Acme Corp",
"email": "[email protected]",
"phone": "123456789",
"website": "https://acme.com",
"status": "active",
"assigned_to": 2,
"account_type": { "id": 1, "name": "Customer" },
"account_industry": { "id": 1, "name": "Technology" },
"created_by": 33,
"created_at": "2025-11-03T07:10:10.000000Z",
"updated_at": "2025-11-03T07:10:10.000000Z"
}
],
"per_page": 10,
"total": 50
}
}
GET https://leads.qreq.com/api/accounts/{account_id}
curl --request GET \
--url 'https://leads.qreq.com/api/accounts/{account_id}' \
--header 'Authorization: Bearer {api_key}'
--url 'https://leads.qreq.com/api/accounts/{account_id}' \
--header 'Authorization: Bearer {api_key}'
{
"status": "success",
"message": "Account retrieved successfully.",
"data": {
"id": 1,
"name": "test account 1",
"email": "[email protected]",
"phone": "03254152966",
"billing_address": "123 Main St",
"billing_city": "Karachi",
"billing_state": "Sindh",
"billing_postal_code": "74000",
"billing_country": "Pakistan",
"shipping_address": "456 Secondary St",
"shipping_city": "Karachi",
"shipping_state": "Sindh",
"shipping_postal_code": "74001",
"shipping_country": "Pakistan",
"website": "https://qreq.com/",
"account_type_id": 2,
"account_industry_id": 2,
"status": "active",
"created_by": 33,
"assigned_to": 51,
"created_at": "2025-11-03T09:48:05.000000Z",
"updated_at": "2025-11-03T09:51:22.000000Z",
"assigned_user": {
"id": 51,
"name": "ali",
"email": "[email protected]",
"email_verified_at": null,
"lang": "en",
"avatar": null,
"type": "manager",
"plan_id": null,
"plan_expire_date": null,
"requested_plan": 0,
"created_by": 33,
"mode": "light",
"plan_is_active": 1,
"storage_limit": 0,
"is_enable_login": 1,
"google2fa_enable": 0,
"status": "active",
"is_trial": null,
"trial_day": 0,
"trial_expire_date": null,
"active_module": null,
"referral_code": 0,
"used_referral_code": 0,
"commission_amount": 0,
"created_at": "2025-11-03T09:47:01.000000Z",
"updated_at": "2025-11-03T09:47:01.000000Z"
},
"creator": {
"id": 33,
"name": "Drini",
"email": "[email protected]",
"email_verified_at": "2025-11-01T13:31:42.000000Z",
"lang": "en",
"avatar": null,
"type": "company",
"plan_id": 2,
"plan_expire_date": null,
"requested_plan": 0,
"created_by": 0,
"mode": "light",
"plan_is_active": 1,
"storage_limit": 0,
"is_enable_login": 1,
"google2fa_enable": 0,
"status": "active",
"is_trial": null,
"trial_day": 0,
"trial_expire_date": null,
"active_module": null,
"referral_code": 514852,
"used_referral_code": 0,
"commission_amount": 0,
"created_at": "2025-11-01T13:31:42.000000Z",
"updated_at": "2025-11-01T13:31:42.000000Z"
},
"account_type": {
"id": 2,
"name": "test account",
"description": "test account description",
"color": "#fff",
"status": "active",
"created_by": 33,
"created_at": "2025-11-03T07:16:02.000000Z",
"updated_at": "2025-11-03T07:16:02.000000Z"
},
"account_industry": {
"id": 2,
"name": "test account industry",
"description": "test account description",
"color": "#fff",
"status": "active",
"created_by": 33,
"created_at": "2025-11-03T07:56:01.000000Z",
"updated_at": "2025-11-03T07:56:01.000000Z"
},
"activities": [
{
"id": 3,
"account_id": 1,
"user_id": 33,
"activity_type": "updated",
"title": "Drini updated name",
"description": "test account into test account 1",
"old_values": {
"name": "test account"
},
"new_values": {
"name": "test account 1"
},
"field_changed": "name",
"created_by": 33,
"created_at": "2025-11-03T09:51:22.000000Z",
"updated_at": "2025-11-03T09:51:22.000000Z",
"user": {
"id": 33,
"name": "Drini",
"email": "[email protected]",
"email_verified_at": "2025-11-01T13:31:42.000000Z",
"lang": "en",
"avatar": null,
"type": "company",
"plan_id": 2,
"plan_expire_date": null,
"requested_plan": 0,
"created_by": 0,
"mode": "light",
"plan_is_active": 1,
"storage_limit": 0,
"is_enable_login": 1,
"google2fa_enable": 0,
"status": "active",
"is_trial": null,
"trial_day": 0,
"trial_expire_date": null,
"active_module": null,
"referral_code": 514852,
"used_referral_code": 0,
"commission_amount": 0,
"created_at": "2025-11-01T13:31:42.000000Z",
"updated_at": "2025-11-01T13:31:42.000000Z"
}
},
{
"id": 2,
"account_id": 1,
"user_id": 33,
"activity_type": "assigned",
"title": "Drini assigned to ali",
"description": "",
"old_values": null,
"new_values": {
"assigned_to": 51
},
"field_changed": null,
"created_by": 33,
"created_at": "2025-11-03T09:48:05.000000Z",
"updated_at": "2025-11-03T09:48:05.000000Z",
"user": {
"id": 33,
"name": "Drini",
"email": "[email protected]",
"email_verified_at": "2025-11-01T13:31:42.000000Z",
"lang": "en",
"avatar": null,
"type": "company",
"plan_id": 2,
"plan_expire_date": null,
"requested_plan": 0,
"created_by": 0,
"mode": "light",
"plan_is_active": 1,
"storage_limit": 0,
"is_enable_login": 1,
"google2fa_enable": 0,
"status": "active",
"is_trial": null,
"trial_day": 0,
"trial_expire_date": null,
"active_module": null,
"referral_code": 514852,
"used_referral_code": 0,
"commission_amount": 0,
"created_at": "2025-11-01T13:31:42.000000Z",
"updated_at": "2025-11-01T13:31:42.000000Z"
}
},
{
"id": 1,
"account_id": 1,
"user_id": 33,
"activity_type": "created",
"title": "Drini created this account",
"description": "Active",
"old_values": null,
"new_values": {
"name": "test account",
"email": "[email protected]",
"phone": "03254152966",
"website": "https://qreq.com/",
"account_type_id": 2,
"account_industry_id": 2,
"billing_address": "123 Main St",
"billing_city": "Karachi",
"billing_state": "Sindh",
"billing_postal_code": "74000",
"billing_country": "Pakistan",
"shipping_address": "456 Secondary St",
"shipping_city": "Karachi",
"shipping_state": "Sindh",
"shipping_postal_code": "74001",
"shipping_country": "Pakistan",
"status": "active",
"assigned_to": 51,
"created_by": 33,
"updated_at": "2025-11-03T09:48:05.000000Z",
"created_at": "2025-11-03T09:48:05.000000Z",
"id": 1,
"creator": {
"id": 33,
"name": "Drini",
"email": "[email protected]",
"email_verified_at": "2025-11-01T13:31:42.000000Z",
"lang": "en",
"avatar": null,
"type": "company",
"plan_id": 2,
"plan_expire_date": null,
"requested_plan": 0,
"created_by": 0,
"mode": "light",
"plan_is_active": 1,
"storage_limit": 0,
"is_enable_login": 1,
"google2fa_enable": 0,
"status": "active",
"is_trial": null,
"trial_day": 0,
"trial_expire_date": null,
"active_module": null,
"referral_code": 514852,
"used_referral_code": 0,
"commission_amount": 0,
"created_at": "2025-11-01T13:31:42.000000Z",
"updated_at": "2025-11-01T13:31:42.000000Z"
},
"assigned_user": {
"id": 51,
"name": "ali",
"email": "[email protected]",
"email_verified_at": null,
"lang": "en",
"avatar": null,
"type": "manager",
"plan_id": null,
"plan_expire_date": null,
"requested_plan": 0,
"created_by": 33,
"mode": "light",
"plan_is_active": 1,
"storage_limit": 0,
"is_enable_login": 1,
"google2fa_enable": 0,
"status": "active",
"is_trial": null,
"trial_day": 0,
"trial_expire_date": null,
"active_module": null,
"referral_code": 0,
"used_referral_code": 0,
"commission_amount": 0,
"created_at": "2025-11-03T09:47:01.000000Z",
"updated_at": "2025-11-03T09:47:01.000000Z"
}
},
"field_changed": null,
"created_by": 33,
"created_at": "2025-11-03T09:48:05.000000Z",
"updated_at": "2025-11-03T09:48:05.000000Z",
"user": {
"id": 33,
"name": "Drini",
"email": "[email protected]",
"email_verified_at": "2025-11-01T13:31:42.000000Z",
"lang": "en",
"avatar": null,
"type": "company",
"plan_id": 2,
"plan_expire_date": null,
"requested_plan": 0,
"created_by": 0,
"mode": "light",
"plan_is_active": 1,
"storage_limit": 0,
"is_enable_login": 1,
"google2fa_enable": 0,
"status": "active",
"is_trial": null,
"trial_day": 0,
"trial_expire_date": null,
"active_module": null,
"referral_code": 514852,
"used_referral_code": 0,
"commission_amount": 0,
"created_at": "2025-11-01T13:31:42.000000Z",
"updated_at": "2025-11-01T13:31:42.000000Z"
}
}
],
"comments": [],
"contacts": [],
"quotes": []
}
}
POST https://leads.qreq.com/api/accounts
| Parameter | Einzelheiten | Beschreibung |
|---|---|---|
| name | ErforderlichZeichenfolge | Account name |
| OptionalZeichenfolge | Email address | |
| phone | OptionalZeichenfolge | Phone number |
| website | OptionalZeichenfolge | Website URL |
| account_type_id | OptionalGanzzahl | Account type ID |
| account_industry_id | OptionalGanzzahl | Account industry ID |
| status | OptionalZeichenfolge | Active or inactive |
| assigned_to | OptionalGanzzahl | User ID to assign account |
| billing_address | OptionalZeichenfolge | Billing street address |
| billing_city | OptionalZeichenfolge | Billing city |
| billing_state | OptionalZeichenfolge | Billing state |
| billing_postal_code | OptionalZeichenfolge | Billing postal code |
| billing_country | OptionalZeichenfolge | Billing country |
| shipping_address | OptionalZeichenfolge | Shipping street address |
| shipping_city | OptionalZeichenfolge | Shipping city |
| shipping_state | OptionalZeichenfolge | Shipping state |
| shipping_postal_code | OptionalZeichenfolge | Shipping postal code |
| shipping_country | OptionalZeichenfolge | Shipping country |
curl --request POST \
--url 'https://leads.qreq.com/api/accounts' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "name": "Acme Corp", "email": "[email protected]", "phone": "123456789", "website": "https://acme.com", "account_type_id": 1, "account_industry_id": 1, "status": "active", "assigned_to": 2, "billing_address": "123 Main St", "billing_city": "Karachi", "billing_state": "Sindh", "billing_postal_code": "74000", "billing_country": "Pakistan", "shipping_address": "456 Secondary St", "shipping_city": "Karachi", "shipping_state": "Sindh", "shipping_postal_code": "74001", "shipping_country": "Pakistan" }'
--url 'https://leads.qreq.com/api/accounts' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "name": "Acme Corp", "email": "[email protected]", "phone": "123456789", "website": "https://acme.com", "account_type_id": 1, "account_industry_id": 1, "status": "active", "assigned_to": 2, "billing_address": "123 Main St", "billing_city": "Karachi", "billing_state": "Sindh", "billing_postal_code": "74000", "billing_country": "Pakistan", "shipping_address": "456 Secondary St", "shipping_city": "Karachi", "shipping_state": "Sindh", "shipping_postal_code": "74001", "shipping_country": "Pakistan" }'
{
"status": "success",
"message": "Account created successfully.",
"data": {
"name": "test account",
"email": "[email protected]",
"phone": "03254152966",
"website": "https://qreq.com/",
"account_type_id": 2,
"account_industry_id": 2,
"billing_address": "123 Main St",
"billing_city": "Karachi",
"billing_state": "Sindh",
"billing_postal_code": "74000",
"billing_country": "Pakistan",
"shipping_address": "456 Secondary St",
"shipping_city": "Karachi",
"shipping_state": "Sindh",
"shipping_postal_code": "74001",
"shipping_country": "Pakistan",
"status": "active",
"assigned_to": 51,
"created_by": 33,
"updated_at": "2025-11-03T09:48:05.000000Z",
"created_at": "2025-11-03T09:48:05.000000Z",
"id": 1,
"creator": {
"id": 33,
"name": "Drini",
"email": "[email protected]",
"email_verified_at": "2025-11-01T13:31:42.000000Z",
"lang": "en",
"avatar": null,
"type": "company",
"plan_id": 2,
"plan_expire_date": null,
"requested_plan": 0,
"created_by": 0,
"mode": "light",
"plan_is_active": 1,
"storage_limit": 0,
"is_enable_login": 1,
"google2fa_enable": 0,
"status": "active",
"is_trial": null,
"trial_day": 0,
"trial_expire_date": null,
"active_module": null,
"referral_code": 514852,
"used_referral_code": 0,
"commission_amount": 0,
"created_at": "2025-11-01T13:31:42.000000Z",
"updated_at": "2025-11-01T13:31:42.000000Z"
},
"assigned_user": {
"id": 51,
"name": "ali",
"email": "[email protected]",
"email_verified_at": null,
"lang": "en",
"avatar": null,
"type": "manager",
"plan_id": null,
"plan_expire_date": null,
"requested_plan": 0,
"created_by": 33,
"mode": "light",
"plan_is_active": 1,
"storage_limit": 0,
"is_enable_login": 1,
"google2fa_enable": 0,
"status": "active",
"is_trial": null,
"trial_day": 0,
"trial_expire_date": null,
"active_module": null,
"referral_code": 0,
"used_referral_code": 0,
"commission_amount": 0,
"created_at": "2025-11-03T09:47:01.000000Z",
"updated_at": "2025-11-03T09:47:01.000000Z"
}
}
}
PUT https://leads.qreq.com/api/accounts/{account_id}
| Parameter | Einzelheiten | Beschreibung |
|---|---|---|
| name | ErforderlichZeichenfolge | Account name |
| OptionalZeichenfolge | Email address | |
| phone | OptionalZeichenfolge | Phone number |
| website | OptionalZeichenfolge | Website URL |
| account_type_id | OptionalGanzzahl | Account type ID |
| account_industry_id | OptionalGanzzahl | Account industry ID |
| status | OptionalZeichenfolge | Active or inactive |
| assigned_to | OptionalGanzzahl | User ID to assign account |
| billing_address | OptionalZeichenfolge | Billing street address |
| billing_city | OptionalZeichenfolge | Billing city |
| billing_state | OptionalZeichenfolge | Billing state |
| billing_postal_code | OptionalZeichenfolge | Billing postal code |
| billing_country | OptionalZeichenfolge | Billing country |
| shipping_address | OptionalZeichenfolge | Shipping street address |
| shipping_city | OptionalZeichenfolge | Shipping city |
| shipping_state | OptionalZeichenfolge | Shipping state |
| shipping_postal_code | OptionalZeichenfolge | Shipping postal code |
| shipping_country | OptionalZeichenfolge | Shipping country |
curl --request PUT \
--url 'https://leads.qreq.com/api/accounts/{account_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "name": "Acme Corp Updated", "email": "[email protected]", "phone": "987654321", "website": "https://acme-updated.com", "account_type_id": 1, "account_industry_id": 1, "status": "active", "assigned_to": 2, "billing_address": "123 Main St", "billing_city": "Karachi", "billing_state": "Sindh", "billing_postal_code": "74000", "billing_country": "Pakistan", "shipping_address": "456 Secondary St", "shipping_city": "Karachi", "shipping_state": "Sindh", "shipping_postal_code": "74001", "shipping_country": "Pakistan" }'
--url 'https://leads.qreq.com/api/accounts/{account_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "name": "Acme Corp Updated", "email": "[email protected]", "phone": "987654321", "website": "https://acme-updated.com", "account_type_id": 1, "account_industry_id": 1, "status": "active", "assigned_to": 2, "billing_address": "123 Main St", "billing_city": "Karachi", "billing_state": "Sindh", "billing_postal_code": "74000", "billing_country": "Pakistan", "shipping_address": "456 Secondary St", "shipping_city": "Karachi", "shipping_state": "Sindh", "shipping_postal_code": "74001", "shipping_country": "Pakistan" }'
{
"status": "success",
"message": "Account updated successfully.",
"data": {
"id": 1,
"name": "test account 1",
"email": "[email protected]",
"phone": "03254152966",
"billing_address": "123 Main St",
"billing_city": "Karachi",
"billing_state": "Sindh",
"billing_postal_code": "74000",
"billing_country": "Pakistan",
"shipping_address": "456 Secondary St",
"shipping_city": "Karachi",
"shipping_state": "Sindh",
"shipping_postal_code": "74001",
"shipping_country": "Pakistan",
"website": "https://qreq.com/",
"account_type_id": 2,
"account_industry_id": 2,
"status": "active",
"created_by": 33,
"assigned_to": 51,
"created_at": "2025-11-03T09:48:05.000000Z",
"updated_at": "2025-11-03T09:51:22.000000Z"
}
}
DELETE https://leads.qreq.com/api/accounts/{account_id}
curl --request DELETE \
--url 'https://leads.qreq.com/api/accounts/{account_id}' \
--header 'Authorization: Bearer {api_key}'
--url 'https://leads.qreq.com/api/accounts/{account_id}' \
--header 'Authorization: Bearer {api_key}'
{
"status": "success",
"message": "Account deleted successfully."
}
PATCH https://leads.qreq.com/api/accounts/{account_id}/toggle-status
curl --request PATCH \
--url 'https://leads.qreq.com/api/accounts/{account_id}/toggle-status' \
--header 'Authorization: Bearer {api_key}'
--url 'https://leads.qreq.com/api/accounts/{account_id}/toggle-status' \
--header 'Authorization: Bearer {api_key}'
{
"status": "success",
"message": "Account status updated successfully.",
"data": {
"id": 1,
"name": "test account 1",
"email": "[email protected]",
"phone": "03254152966",
"billing_address": "123 Main St",
"billing_city": "Karachi",
"billing_state": "Sindh",
"billing_postal_code": "74000",
"billing_country": "Pakistan",
"shipping_address": "456 Secondary St",
"shipping_city": "Karachi",
"shipping_state": "Sindh",
"shipping_postal_code": "74001",
"shipping_country": "Pakistan",
"website": "https://qreq.com/",
"account_type_id": 2,
"account_industry_id": 2,
"status": "inactive",
"created_by": 33,
"assigned_to": 51,
"created_at": "2025-11-03T09:48:05.000000Z",
"updated_at": "2025-11-03T09:56:32.000000Z"
}
DELETE https://leads.qreq.com/api/accounts/{account_id}/activities
curl --request DELETE \
--url 'https://leads.qreq.com/api/accounts/{account_id}/activities' \
--header 'Authorization: Bearer {api_key}'
--url 'https://leads.qreq.com/api/accounts/{account_id}/activities' \
--header 'Authorization: Bearer {api_key}'
{
"status": "success",
"message": "All activities deleted successfully."
}
DELETE https://leads.qreq.com/api/accounts/{account_id}/activities/{activity_id}
curl --request DELETE \
--url 'https://leads.qreq.com/api/accounts/{account_id}/activities/{activity_id}' \
--header 'Authorization: Bearer {api_key}'
--url 'https://leads.qreq.com/api/accounts/{account_id}/activities/{activity_id}' \
--header 'Authorization: Bearer {api_key}'
{
"status": "success",
"message": "Activity deleted successfully."
}