C R M Lead
API calls for CRM leads
Create a lead
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:18080/api/v1/crm/leads" \ -H "Content-Type: application/json" \ -d '{ "email": "string", "firstName": "string", "lastName": "string", "source": "string", "status": "NEW" }'{
"address": {
"city": "string",
"country": "string",
"houseNumber": "string",
"id": "string",
"latitude": 0.1,
"longitude": 0.1,
"postalCode": "string",
"street": "string"
},
"companyName": "string",
"companyWebsite": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customer": {
"email": "string",
"id": "string",
"name": "string",
"phone": "string"
},
"customerId": "string",
"email": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"firstName": "string",
"id": "string",
"industry": "string",
"interest": "string",
"lastName": "string",
"message": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"opportunity": {
"id": "string",
"name": "string",
"value": 0.1
},
"opportunityId": "string",
"owner": {
"displayName": "string",
"id": "string",
"username": "string"
},
"ownerId": "string",
"pageUrl": "string",
"phone": "string",
"qualificationNotes": "string",
"qualifiedBy": "string",
"qualifiedByUser": {
"displayName": "string",
"id": "string",
"username": "string"
},
"qualifiedDate": "2019-08-24T14:15:22Z",
"referrerUrl": "string",
"source": "string",
"sourceDetail": "string",
"status": "NEW",
"subsidiary": {
"id": "string",
"name": "string"
},
"subsidiaryId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"utmCampaign": "string",
"utmContent": "string",
"utmMedium": "string",
"utmSource": "string",
"utmTerm": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Get leads by owner
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/crm/leads/by-owner/string"[
{
"address": {
"city": "string",
"country": "string",
"houseNumber": "string",
"id": "string",
"latitude": 0.1,
"longitude": 0.1,
"postalCode": "string",
"street": "string"
},
"companyName": "string",
"companyWebsite": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customerId": "string",
"email": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"firstName": "string",
"id": "string",
"industry": "string",
"interest": "string",
"lastName": "string",
"message": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"opportunityId": "string",
"overdueNotifiedAt": "2019-08-24T14:15:22Z",
"ownerId": "string",
"pageUrl": "string",
"phone": "string",
"qualificationNotes": "string",
"qualifiedBy": "string",
"qualifiedDate": "2019-08-24T14:15:22Z",
"referrerUrl": "string",
"source": "string",
"sourceDetail": "string",
"status": "NEW",
"subsidiaryId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"utmCampaign": "string",
"utmContent": "string",
"utmMedium": "string",
"utmSource": "string",
"utmTerm": "string"
}
]{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Get leads by source
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/crm/leads/by-source/string"[
{
"address": {
"city": "string",
"country": "string",
"houseNumber": "string",
"id": "string",
"latitude": 0.1,
"longitude": 0.1,
"postalCode": "string",
"street": "string"
},
"companyName": "string",
"companyWebsite": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customerId": "string",
"email": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"firstName": "string",
"id": "string",
"industry": "string",
"interest": "string",
"lastName": "string",
"message": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"opportunityId": "string",
"overdueNotifiedAt": "2019-08-24T14:15:22Z",
"ownerId": "string",
"pageUrl": "string",
"phone": "string",
"qualificationNotes": "string",
"qualifiedBy": "string",
"qualifiedDate": "2019-08-24T14:15:22Z",
"referrerUrl": "string",
"source": "string",
"sourceDetail": "string",
"status": "NEW",
"subsidiaryId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"utmCampaign": "string",
"utmContent": "string",
"utmMedium": "string",
"utmSource": "string",
"utmTerm": "string"
}
]{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Get leads by status
In: header
Path Parameters
"NEW" | "CONTACTED" | "QUALIFIED" | "UNQUALIFIED"Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/crm/leads/by-status/NEW"[
{
"address": {
"city": "string",
"country": "string",
"houseNumber": "string",
"id": "string",
"latitude": 0.1,
"longitude": 0.1,
"postalCode": "string",
"street": "string"
},
"companyName": "string",
"companyWebsite": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customerId": "string",
"email": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"firstName": "string",
"id": "string",
"industry": "string",
"interest": "string",
"lastName": "string",
"message": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"opportunityId": "string",
"overdueNotifiedAt": "2019-08-24T14:15:22Z",
"ownerId": "string",
"pageUrl": "string",
"phone": "string",
"qualificationNotes": "string",
"qualifiedBy": "string",
"qualifiedDate": "2019-08-24T14:15:22Z",
"referrerUrl": "string",
"source": "string",
"sourceDetail": "string",
"status": "NEW",
"subsidiaryId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"utmCampaign": "string",
"utmContent": "string",
"utmMedium": "string",
"utmSource": "string",
"utmTerm": "string"
}
]{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Download Csv_ Lead
In: header
Query Parameters
0int3220int32Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/crm/leads/csv-export""string"{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Delete a list of entities by their IDs
In: header
Query Parameters
Response Body
application/json
application/json
application/json
curl -X DELETE "http://localhost:18080/api/v1/crm/leads/delete-list?ids=string"{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Dynamic Search_ Lead
In: header
Query Parameters
0int3220int32Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/crm/leads/dynamic-search"{
"content": [
{
"address": {
"city": "string",
"country": "string",
"houseNumber": "string",
"id": "string",
"latitude": 0.1,
"longitude": 0.1,
"postalCode": "string",
"street": "string"
},
"companyName": "string",
"companyWebsite": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customerId": "string",
"email": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"firstName": "string",
"id": "string",
"industry": "string",
"interest": "string",
"lastName": "string",
"message": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"opportunityId": "string",
"overdueNotifiedAt": "2019-08-24T14:15:22Z",
"ownerId": "string",
"pageUrl": "string",
"phone": "string",
"qualificationNotes": "string",
"qualifiedBy": "string",
"qualifiedDate": "2019-08-24T14:15:22Z",
"referrerUrl": "string",
"source": "string",
"sourceDetail": "string",
"status": "NEW",
"subsidiaryId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"utmCampaign": "string",
"utmContent": "string",
"utmMedium": "string",
"utmSource": "string",
"utmTerm": "string"
}
],
"empty": true,
"first": true,
"last": true,
"number": 0,
"numberOfElements": 0,
"pageable": {
"offset": 0,
"pageNumber": 0,
"pageSize": 0,
"paged": true,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"unpaged": true
},
"size": 0,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"totalElements": 0,
"totalPages": 0
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Dynamic Search Post_ Lead
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:18080/api/v1/crm/leads/dynamic-search" \ -H "Content-Type: application/json" \ -d '{ "filters": { "property1": null, "property2": null }, "page": 0, "search": [ "string" ], "size": 0, "sort": [ { "ascending": true, "field": "string" } ] }'{
"content": [
{
"address": {
"city": "string",
"country": "string",
"houseNumber": "string",
"id": "string",
"latitude": 0.1,
"longitude": 0.1,
"postalCode": "string",
"street": "string"
},
"companyName": "string",
"companyWebsite": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customerId": "string",
"email": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"firstName": "string",
"id": "string",
"industry": "string",
"interest": "string",
"lastName": "string",
"message": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"opportunityId": "string",
"overdueNotifiedAt": "2019-08-24T14:15:22Z",
"ownerId": "string",
"pageUrl": "string",
"phone": "string",
"qualificationNotes": "string",
"qualifiedBy": "string",
"qualifiedDate": "2019-08-24T14:15:22Z",
"referrerUrl": "string",
"source": "string",
"sourceDetail": "string",
"status": "NEW",
"subsidiaryId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"utmCampaign": "string",
"utmContent": "string",
"utmMedium": "string",
"utmSource": "string",
"utmTerm": "string"
}
],
"empty": true,
"first": true,
"last": true,
"number": 0,
"numberOfElements": 0,
"pageable": {
"offset": 0,
"pageNumber": 0,
"pageSize": 0,
"paged": true,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"unpaged": true
},
"size": 0,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"totalElements": 0,
"totalPages": 0
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Dynamic search leads enriched
In: header
Query Parameters
0int3220int32Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/crm/leads/dynamic-search-enriched"{
"content": [
{
"address": {
"city": "string",
"country": "string",
"houseNumber": "string",
"id": "string",
"latitude": 0.1,
"longitude": 0.1,
"postalCode": "string",
"street": "string"
},
"companyName": "string",
"companyWebsite": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customer": {
"email": "string",
"id": "string",
"name": "string",
"phone": "string"
},
"customerId": "string",
"email": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"firstName": "string",
"id": "string",
"industry": "string",
"interest": "string",
"lastName": "string",
"message": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"opportunity": {
"id": "string",
"name": "string",
"value": 0.1
},
"opportunityId": "string",
"owner": {
"displayName": "string",
"id": "string",
"username": "string"
},
"ownerId": "string",
"pageUrl": "string",
"phone": "string",
"qualificationNotes": "string",
"qualifiedBy": "string",
"qualifiedByUser": {
"displayName": "string",
"id": "string",
"username": "string"
},
"qualifiedDate": "2019-08-24T14:15:22Z",
"referrerUrl": "string",
"source": "string",
"sourceDetail": "string",
"status": "NEW",
"subsidiary": {
"id": "string",
"name": "string"
},
"subsidiaryId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"utmCampaign": "string",
"utmContent": "string",
"utmMedium": "string",
"utmSource": "string",
"utmTerm": "string"
}
],
"empty": true,
"first": true,
"last": true,
"number": 0,
"numberOfElements": 0,
"pageable": {
"offset": 0,
"pageNumber": 0,
"pageSize": 0,
"paged": true,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"unpaged": true
},
"size": 0,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"totalElements": 0,
"totalPages": 0
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Find by list of ids in current tenant
In: header
Query Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/crm/leads/find?ids=string"[
{
"address": {
"city": "string",
"country": "string",
"houseNumber": "string",
"id": "string",
"latitude": 0.1,
"longitude": 0.1,
"postalCode": "string",
"street": "string"
},
"companyName": "string",
"companyWebsite": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customerId": "string",
"email": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"firstName": "string",
"id": "string",
"industry": "string",
"interest": "string",
"lastName": "string",
"message": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"opportunityId": "string",
"overdueNotifiedAt": "2019-08-24T14:15:22Z",
"ownerId": "string",
"pageUrl": "string",
"phone": "string",
"qualificationNotes": "string",
"qualifiedBy": "string",
"qualifiedDate": "2019-08-24T14:15:22Z",
"referrerUrl": "string",
"source": "string",
"sourceDetail": "string",
"status": "NEW",
"subsidiaryId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"utmCampaign": "string",
"utmContent": "string",
"utmMedium": "string",
"utmSource": "string",
"utmTerm": "string"
}
]{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Find all for current tenant
In: header
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/crm/leads/find-all"[
{
"address": {
"city": "string",
"country": "string",
"houseNumber": "string",
"id": "string",
"latitude": 0.1,
"longitude": 0.1,
"postalCode": "string",
"street": "string"
},
"companyName": "string",
"companyWebsite": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customerId": "string",
"email": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"firstName": "string",
"id": "string",
"industry": "string",
"interest": "string",
"lastName": "string",
"message": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"opportunityId": "string",
"overdueNotifiedAt": "2019-08-24T14:15:22Z",
"ownerId": "string",
"pageUrl": "string",
"phone": "string",
"qualificationNotes": "string",
"qualifiedBy": "string",
"qualifiedDate": "2019-08-24T14:15:22Z",
"referrerUrl": "string",
"source": "string",
"sourceDetail": "string",
"status": "NEW",
"subsidiaryId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"utmCampaign": "string",
"utmContent": "string",
"utmMedium": "string",
"utmSource": "string",
"utmTerm": "string"
}
]{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Find a list of entities by their IDs
In: header
Query Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/crm/leads/find-list"[
{
"address": {
"city": "string",
"country": "string",
"houseNumber": "string",
"id": "string",
"latitude": 0.1,
"longitude": 0.1,
"postalCode": "string",
"street": "string"
},
"companyName": "string",
"companyWebsite": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customerId": "string",
"email": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"firstName": "string",
"id": "string",
"industry": "string",
"interest": "string",
"lastName": "string",
"message": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"opportunityId": "string",
"overdueNotifiedAt": "2019-08-24T14:15:22Z",
"ownerId": "string",
"pageUrl": "string",
"phone": "string",
"qualificationNotes": "string",
"qualifiedBy": "string",
"qualifiedDate": "2019-08-24T14:15:22Z",
"referrerUrl": "string",
"source": "string",
"sourceDetail": "string",
"status": "NEW",
"subsidiaryId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"utmCampaign": "string",
"utmContent": "string",
"utmMedium": "string",
"utmSource": "string",
"utmTerm": "string"
}
]{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Find by id in current tenant
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/crm/leads/find/string"{
"address": {
"city": "string",
"country": "string",
"houseNumber": "string",
"id": "string",
"latitude": 0.1,
"longitude": 0.1,
"postalCode": "string",
"street": "string"
},
"companyName": "string",
"companyWebsite": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customerId": "string",
"email": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"firstName": "string",
"id": "string",
"industry": "string",
"interest": "string",
"lastName": "string",
"message": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"opportunityId": "string",
"overdueNotifiedAt": "2019-08-24T14:15:22Z",
"ownerId": "string",
"pageUrl": "string",
"phone": "string",
"qualificationNotes": "string",
"qualifiedBy": "string",
"qualifiedDate": "2019-08-24T14:15:22Z",
"referrerUrl": "string",
"source": "string",
"sourceDetail": "string",
"status": "NEW",
"subsidiaryId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"utmCampaign": "string",
"utmContent": "string",
"utmMedium": "string",
"utmSource": "string",
"utmTerm": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Get overdue actions
In: header
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/crm/leads/overdue-actions"[
{
"address": {
"city": "string",
"country": "string",
"houseNumber": "string",
"id": "string",
"latitude": 0.1,
"longitude": 0.1,
"postalCode": "string",
"street": "string"
},
"companyName": "string",
"companyWebsite": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customerId": "string",
"email": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"firstName": "string",
"id": "string",
"industry": "string",
"interest": "string",
"lastName": "string",
"message": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"opportunityId": "string",
"overdueNotifiedAt": "2019-08-24T14:15:22Z",
"ownerId": "string",
"pageUrl": "string",
"phone": "string",
"qualificationNotes": "string",
"qualifiedBy": "string",
"qualifiedDate": "2019-08-24T14:15:22Z",
"referrerUrl": "string",
"source": "string",
"sourceDetail": "string",
"status": "NEW",
"subsidiaryId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"utmCampaign": "string",
"utmContent": "string",
"utmMedium": "string",
"utmSource": "string",
"utmTerm": "string"
}
]{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Get paginated leads
In: header
Query Parameters
int32int32"ASC" | "DESC"Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/crm/leads/page"{
"content": [
{
"address": {
"city": "string",
"country": "string",
"houseNumber": "string",
"id": "string",
"latitude": 0.1,
"longitude": 0.1,
"postalCode": "string",
"street": "string"
},
"companyName": "string",
"companyWebsite": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customerId": "string",
"email": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"firstName": "string",
"id": "string",
"industry": "string",
"interest": "string",
"lastName": "string",
"message": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"opportunityId": "string",
"overdueNotifiedAt": "2019-08-24T14:15:22Z",
"ownerId": "string",
"pageUrl": "string",
"phone": "string",
"qualificationNotes": "string",
"qualifiedBy": "string",
"qualifiedDate": "2019-08-24T14:15:22Z",
"referrerUrl": "string",
"source": "string",
"sourceDetail": "string",
"status": "NEW",
"subsidiaryId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"utmCampaign": "string",
"utmContent": "string",
"utmMedium": "string",
"utmSource": "string",
"utmTerm": "string"
}
],
"empty": true,
"first": true,
"last": true,
"number": 0,
"numberOfElements": 0,
"pageable": {
"offset": 0,
"pageNumber": 0,
"pageSize": 0,
"paged": true,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"unpaged": true
},
"size": 0,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"totalElements": 0,
"totalPages": 0
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Get lead stats
In: header
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/crm/leads/stats"{
"contactedLeads": 0,
"conversionRate": 0.1,
"leadsBySource": {
"property1": 0,
"property2": 0
},
"leadsCreatedLast30Days": 0,
"leadsCreatedLast7Days": 0,
"newLeads": 0,
"qualifiedLeads": 0,
"totalLeads": 0,
"unassignedLeads": 0,
"unqualifiedLeads": 0
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Get today's actions
In: header
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/crm/leads/todays-actions"[
{
"address": {
"city": "string",
"country": "string",
"houseNumber": "string",
"id": "string",
"latitude": 0.1,
"longitude": 0.1,
"postalCode": "string",
"street": "string"
},
"companyName": "string",
"companyWebsite": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customerId": "string",
"email": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"firstName": "string",
"id": "string",
"industry": "string",
"interest": "string",
"lastName": "string",
"message": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"opportunityId": "string",
"overdueNotifiedAt": "2019-08-24T14:15:22Z",
"ownerId": "string",
"pageUrl": "string",
"phone": "string",
"qualificationNotes": "string",
"qualifiedBy": "string",
"qualifiedDate": "2019-08-24T14:15:22Z",
"referrerUrl": "string",
"source": "string",
"sourceDetail": "string",
"status": "NEW",
"subsidiaryId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"utmCampaign": "string",
"utmContent": "string",
"utmMedium": "string",
"utmSource": "string",
"utmTerm": "string"
}
]{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Get unassigned leads
In: header
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/crm/leads/unassigned"[
{
"address": {
"city": "string",
"country": "string",
"houseNumber": "string",
"id": "string",
"latitude": 0.1,
"longitude": 0.1,
"postalCode": "string",
"street": "string"
},
"companyName": "string",
"companyWebsite": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customerId": "string",
"email": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"firstName": "string",
"id": "string",
"industry": "string",
"interest": "string",
"lastName": "string",
"message": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"opportunityId": "string",
"overdueNotifiedAt": "2019-08-24T14:15:22Z",
"ownerId": "string",
"pageUrl": "string",
"phone": "string",
"qualificationNotes": "string",
"qualifiedBy": "string",
"qualifiedDate": "2019-08-24T14:15:22Z",
"referrerUrl": "string",
"source": "string",
"sourceDetail": "string",
"status": "NEW",
"subsidiaryId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"utmCampaign": "string",
"utmContent": "string",
"utmMedium": "string",
"utmSource": "string",
"utmTerm": "string"
}
]{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Get enriched lead
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/crm/leads/string"{
"address": {
"city": "string",
"country": "string",
"houseNumber": "string",
"id": "string",
"latitude": 0.1,
"longitude": 0.1,
"postalCode": "string",
"street": "string"
},
"companyName": "string",
"companyWebsite": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customer": {
"email": "string",
"id": "string",
"name": "string",
"phone": "string"
},
"customerId": "string",
"email": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"firstName": "string",
"id": "string",
"industry": "string",
"interest": "string",
"lastName": "string",
"message": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"opportunity": {
"id": "string",
"name": "string",
"value": 0.1
},
"opportunityId": "string",
"owner": {
"displayName": "string",
"id": "string",
"username": "string"
},
"ownerId": "string",
"pageUrl": "string",
"phone": "string",
"qualificationNotes": "string",
"qualifiedBy": "string",
"qualifiedByUser": {
"displayName": "string",
"id": "string",
"username": "string"
},
"qualifiedDate": "2019-08-24T14:15:22Z",
"referrerUrl": "string",
"source": "string",
"sourceDetail": "string",
"status": "NEW",
"subsidiary": {
"id": "string",
"name": "string"
},
"subsidiaryId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"utmCampaign": "string",
"utmContent": "string",
"utmMedium": "string",
"utmSource": "string",
"utmTerm": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Update a lead
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PATCH "http://localhost:18080/api/v1/crm/leads/string" \ -H "Content-Type: application/json" \ -d '{ "email": "string", "firstName": "string", "lastName": "string", "source": "string", "status": "NEW" }'{
"address": {
"city": "string",
"country": "string",
"houseNumber": "string",
"id": "string",
"latitude": 0.1,
"longitude": 0.1,
"postalCode": "string",
"street": "string"
},
"companyName": "string",
"companyWebsite": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customer": {
"email": "string",
"id": "string",
"name": "string",
"phone": "string"
},
"customerId": "string",
"email": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"firstName": "string",
"id": "string",
"industry": "string",
"interest": "string",
"lastName": "string",
"message": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"opportunity": {
"id": "string",
"name": "string",
"value": 0.1
},
"opportunityId": "string",
"owner": {
"displayName": "string",
"id": "string",
"username": "string"
},
"ownerId": "string",
"pageUrl": "string",
"phone": "string",
"qualificationNotes": "string",
"qualifiedBy": "string",
"qualifiedByUser": {
"displayName": "string",
"id": "string",
"username": "string"
},
"qualifiedDate": "2019-08-24T14:15:22Z",
"referrerUrl": "string",
"source": "string",
"sourceDetail": "string",
"status": "NEW",
"subsidiary": {
"id": "string",
"name": "string"
},
"subsidiaryId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"utmCampaign": "string",
"utmContent": "string",
"utmMedium": "string",
"utmSource": "string",
"utmTerm": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Delete by id in current tenant
In: header
Path Parameters
Response Body
application/json
application/json
application/json
curl -X DELETE "http://localhost:18080/api/v1/crm/leads/string"{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Add a comment to an entity
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:18080/api/v1/crm/leads/string/comment" \ -H "Content-Type: application/json" \ -d 'string'{
"address": {
"city": "string",
"country": "string",
"houseNumber": "string",
"id": "string",
"latitude": 0.1,
"longitude": 0.1,
"postalCode": "string",
"street": "string"
},
"companyName": "string",
"companyWebsite": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customer": {
"email": "string",
"id": "string",
"name": "string",
"phone": "string"
},
"customerId": "string",
"email": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"firstName": "string",
"id": "string",
"industry": "string",
"interest": "string",
"lastName": "string",
"message": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"opportunity": {
"id": "string",
"name": "string",
"value": 0.1
},
"opportunityId": "string",
"owner": {
"displayName": "string",
"id": "string",
"username": "string"
},
"ownerId": "string",
"pageUrl": "string",
"phone": "string",
"qualificationNotes": "string",
"qualifiedBy": "string",
"qualifiedByUser": {
"displayName": "string",
"id": "string",
"username": "string"
},
"qualifiedDate": "2019-08-24T14:15:22Z",
"referrerUrl": "string",
"source": "string",
"sourceDetail": "string",
"status": "NEW",
"subsidiary": {
"id": "string",
"name": "string"
},
"subsidiaryId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"utmCampaign": "string",
"utmContent": "string",
"utmMedium": "string",
"utmSource": "string",
"utmTerm": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Update next action
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PATCH "http://localhost:18080/api/v1/crm/leads/string/next-action" \ -H "Content-Type: application/json" \ -d '{}'{
"address": {
"city": "string",
"country": "string",
"houseNumber": "string",
"id": "string",
"latitude": 0.1,
"longitude": 0.1,
"postalCode": "string",
"street": "string"
},
"companyName": "string",
"companyWebsite": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customer": {
"email": "string",
"id": "string",
"name": "string",
"phone": "string"
},
"customerId": "string",
"email": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"firstName": "string",
"id": "string",
"industry": "string",
"interest": "string",
"lastName": "string",
"message": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"opportunity": {
"id": "string",
"name": "string",
"value": 0.1
},
"opportunityId": "string",
"owner": {
"displayName": "string",
"id": "string",
"username": "string"
},
"ownerId": "string",
"pageUrl": "string",
"phone": "string",
"qualificationNotes": "string",
"qualifiedBy": "string",
"qualifiedByUser": {
"displayName": "string",
"id": "string",
"username": "string"
},
"qualifiedDate": "2019-08-24T14:15:22Z",
"referrerUrl": "string",
"source": "string",
"sourceDetail": "string",
"status": "NEW",
"subsidiary": {
"id": "string",
"name": "string"
},
"subsidiaryId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"utmCampaign": "string",
"utmContent": "string",
"utmMedium": "string",
"utmSource": "string",
"utmTerm": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Qualify a lead
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:18080/api/v1/crm/leads/string/qualify" \ -H "Content-Type: application/json" \ -d '{ "createFollowUpActivity": true, "opportunityName": "string" }'{
"customerId": "string",
"lead": {
"address": {
"city": "string",
"country": "string",
"houseNumber": "string",
"id": "string",
"latitude": 0.1,
"longitude": 0.1,
"postalCode": "string",
"street": "string"
},
"companyName": "string",
"companyWebsite": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customer": {
"email": "string",
"id": "string",
"name": "string",
"phone": "string"
},
"customerId": "string",
"email": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"firstName": "string",
"id": "string",
"industry": "string",
"interest": "string",
"lastName": "string",
"message": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"opportunity": {
"id": "string",
"name": "string",
"value": 0.1
},
"opportunityId": "string",
"owner": {
"displayName": "string",
"id": "string",
"username": "string"
},
"ownerId": "string",
"pageUrl": "string",
"phone": "string",
"qualificationNotes": "string",
"qualifiedBy": "string",
"qualifiedByUser": {
"displayName": "string",
"id": "string",
"username": "string"
},
"qualifiedDate": "2019-08-24T14:15:22Z",
"referrerUrl": "string",
"source": "string",
"sourceDetail": "string",
"status": "NEW",
"subsidiary": {
"id": "string",
"name": "string"
},
"subsidiaryId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"utmCampaign": "string",
"utmContent": "string",
"utmMedium": "string",
"utmSource": "string",
"utmTerm": "string"
},
"opportunityId": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Reject a lead
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:18080/api/v1/crm/leads/string/reject" \ -H "Content-Type: application/json" \ -d '{}'{
"address": {
"city": "string",
"country": "string",
"houseNumber": "string",
"id": "string",
"latitude": 0.1,
"longitude": 0.1,
"postalCode": "string",
"street": "string"
},
"companyName": "string",
"companyWebsite": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customer": {
"email": "string",
"id": "string",
"name": "string",
"phone": "string"
},
"customerId": "string",
"email": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"firstName": "string",
"id": "string",
"industry": "string",
"interest": "string",
"lastName": "string",
"message": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"opportunity": {
"id": "string",
"name": "string",
"value": 0.1
},
"opportunityId": "string",
"owner": {
"displayName": "string",
"id": "string",
"username": "string"
},
"ownerId": "string",
"pageUrl": "string",
"phone": "string",
"qualificationNotes": "string",
"qualifiedBy": "string",
"qualifiedByUser": {
"displayName": "string",
"id": "string",
"username": "string"
},
"qualifiedDate": "2019-08-24T14:15:22Z",
"referrerUrl": "string",
"source": "string",
"sourceDetail": "string",
"status": "NEW",
"subsidiary": {
"id": "string",
"name": "string"
},
"subsidiaryId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"utmCampaign": "string",
"utmContent": "string",
"utmMedium": "string",
"utmSource": "string",
"utmTerm": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Update lead status
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PATCH "http://localhost:18080/api/v1/crm/leads/string/status" \ -H "Content-Type: application/json" \ -d '{ "status": "NEW" }'{
"address": {
"city": "string",
"country": "string",
"houseNumber": "string",
"id": "string",
"latitude": 0.1,
"longitude": 0.1,
"postalCode": "string",
"street": "string"
},
"companyName": "string",
"companyWebsite": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customer": {
"email": "string",
"id": "string",
"name": "string",
"phone": "string"
},
"customerId": "string",
"email": "string",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"firstName": "string",
"id": "string",
"industry": "string",
"interest": "string",
"lastName": "string",
"message": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"opportunity": {
"id": "string",
"name": "string",
"value": 0.1
},
"opportunityId": "string",
"owner": {
"displayName": "string",
"id": "string",
"username": "string"
},
"ownerId": "string",
"pageUrl": "string",
"phone": "string",
"qualificationNotes": "string",
"qualifiedBy": "string",
"qualifiedByUser": {
"displayName": "string",
"id": "string",
"username": "string"
},
"qualifiedDate": "2019-08-24T14:15:22Z",
"referrerUrl": "string",
"source": "string",
"sourceDetail": "string",
"status": "NEW",
"subsidiary": {
"id": "string",
"name": "string"
},
"subsidiaryId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"utmCampaign": "string",
"utmContent": "string",
"utmMedium": "string",
"utmSource": "string",
"utmTerm": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}