Skip to main content

Profile360 Overview

requires authentication

GET resource/profile360/overview

Headers

x-api-key
Example: your-api-key-here

Content-Type
Example: application/json

Accept
Example: application/json

Query Parameters

email string

string The email identifier. Example: [email protected]

Body Parameters

email required - optional

string The email identifier. Example: [email protected]

Bash

Example request:
curl --request GET \
--get "https://api2.sonalabs.com/resource/profile360/overview?email=john.doe%40example.com" \
--header "x-api-key: your-api-key-here" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"[email protected]\"
}"

Example response (200, Success):
{
"version": "2.0.0",
"php": "8.3.19",
"status": "success",
"data": {
"key": "1",
"identifier": "[email protected]",
"companyUuid": null,
"companyName": null,
"visitors": [
"65f2e6c885e91",
"65f2e6019aea8"
],
"ips": [
"24.9.178.35"
],
"journey": [],
"milestones": [],
"adConversions": null,
"fullName": "John Doe",
"firstName": "John",
"lastName": "Doe",
"gender": null,
"jobTitle": "Enterprise Regional Sales Director | Flow",
"photoUrl": "https://sonalabs-1.sfo2.digitaloceanspaces.com/visitors/65f2e6019aea8.jpg",
"createdAt": "2024-03-14T04:56:49",
"type": "Suggested"
}
}

Example response (404, Error):
{
"version": "2.0.0",
"php": "8.3.19",
"status": "error",
"data": "Profile not found"
}

JavaScript

Example request:
const url = new URL(
"https://api2.sonalabs.com/resource/profile360/overview"
);

const params = {
"email": "[email protected]",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));

const headers = {
"x-api-key": "your-api-key-here",
"Content-Type": "application/json",
"Accept": "application/json",
};

let body = {
"email": "[email protected]"
};

fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());

Example response (200, Success):

{
"version": "2.0.0",
"php": "8.3.19",
"status": "success",
"data": {
"key": "1",
"identifier": "[email protected]",
"companyUuid": null,
"companyName": null,
"visitors": [
"65f2e6c885e91",
"65f2e6019aea8"
],
"ips": [
"24.9.178.35"
],
"journey": [],
"milestones": [],
"adConversions": null,
"fullName": "John Doe",
"firstName": "John",
"lastName": "Doe",
"gender": null,
"jobTitle": "Enterprise Regional Sales Director | Flow",
"photoUrl": "https://sonalabs-1.sfo2.digitaloceanspaces.com/visitors/65f2e6019aea8.jpg",
"createdAt": "2024-03-14T04:56:49",
"type": "Suggested"
}
}

Example response (404, Error):

{
"version": "2.0.0",
"php": "8.3.19",
"status": "error",
"data": "Profile not found"
}

PHP

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://api2.sonalabs.com/resource/profile360/overview';
$response = $client->get(
$url,
[
'headers' => [
'x-api-key' => 'your-api-key-here',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'query' => [
'email' => '[email protected]',
],
'json' => [
'email' => '[email protected]',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Success):

{
"version": "2.0.0",
"php": "8.3.19",
"status": "success",
"data": {
"key": "1",
"identifier": "[email protected]",
"companyUuid": null,
"companyName": null,
"visitors": [
"65f2e6c885e91",
"65f2e6019aea8"
],
"ips": [
"24.9.178.35"
],
"journey": [],
"milestones": [],
"adConversions": null,
"fullName": "John Doe",
"firstName": "John",
"lastName": "Doe",
"gender": null,
"jobTitle": "Enterprise Regional Sales Director | Flow",
"photoUrl": "https://sonalabs-1.sfo2.digitaloceanspaces.com/visitors/65f2e6019aea8.jpg",
"createdAt": "2024-03-14T04:56:49",
"type": "Suggested"
}
}

Example response (404, Error):

{
"version": "2.0.0",
"php": "8.3.19",
"status": "error",
"data": "Profile not found"
}