Un lead
curl --request GET \
--url https://api.dentalspace.ai/v1/leads/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.dentalspace.ai/v1/leads/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.dentalspace.ai/v1/leads/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"facilityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>",
"phone": "<string>",
"source": "social_media",
"sourceDetail": "<string>",
"status": "new",
"assignedTo": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"estimatedValue": 123,
"notes": "<string>",
"nextFollowUpAt": "<string>",
"lastContactedAt": "<string>",
"lostReason": "<string>",
"convertedPatientId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"convertedAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"activities": [
{
"id": "<string>",
"kind": "call",
"body": "<string>",
"at": "<string>"
}
]
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}Contatti commerciali
Un lead
Scope: leads:read.
GET
/
leads
/
{id}
Un lead
curl --request GET \
--url https://api.dentalspace.ai/v1/leads/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.dentalspace.ai/v1/leads/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.dentalspace.ai/v1/leads/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"facilityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>",
"phone": "<string>",
"source": "social_media",
"sourceDetail": "<string>",
"status": "new",
"assignedTo": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"estimatedValue": 123,
"notes": "<string>",
"nextFollowUpAt": "<string>",
"lastContactedAt": "<string>",
"lostReason": "<string>",
"convertedPatientId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"convertedAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"activities": [
{
"id": "<string>",
"kind": "call",
"body": "<string>",
"at": "<string>"
}
]
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {},
"requestId": "<string>"
}
}Authorizations
Path Parameters
Response
Il lead, con le attivita'.