Contacthub API (1.51.0)

Download OpenAPI specification:Download

The platform to collect, store, conserve, update and export all the digital identity data of your customers.

Authentication

OAuth2

The following table provides brief descriptions of the built-in OAuth2 scopes of this API. In this context, scopes are generally intended as application roles.

Security scheme type: OAuth2
implicit OAuth Flow
Authorization URL: https://login.contactlab.it/o/oauth2/auth
Scopes:
  • ADMIN -

    Admin

  • USER -

    User

  • TRUSTED_APPLICATION -

    Trusted application

  • UNTRUSTED_APPLICATION -

    Untrusted application

  • PLATFORM_UPDATES -

    Platform updates

  • GUEST -

    Guest

analytics

Analytics endpoint

Get customer count by state

Gets count of new, updated and deleted customers

Authorizations:
OAuth2 (ADMINUSERGUESTTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

query Parameters
nodes
string

The list of nodeId separated by comma

startDate
string <date>

Start date

endDate
string <date>

End date

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/analytics/customer/count
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/analytics/customer/count

Response samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "headers": { },
  • "parameters":
    {
    },
  • "data":
    [
    ]
}

Get Customer base trend

Trend of customer base

Authorizations:
OAuth2 (ADMINUSERGUESTTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

query Parameters
mode
required
string
Default: "DAILY"
Enum:"DAILY" "WEEKLY" "MONTHLY"

Mode of aggretation daily, weekly,monthly

startDate
required
string <date>

The start date for get the trend

endDate
required
string <date>

The end date for get the trend

nodes
string

The list of nodeId separated by comma

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/analytics/trend/customer
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/analytics/trend/customer

Response samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "headers": { },
  • "parameters":
    {
    },
  • "data":
    [
    ]
}

Get Events trend

Trend of events

Authorizations:
OAuth2 (ADMINUSERGUESTTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

query Parameters
mode
required
string
Default: "DAILY"
Enum:"DAILY" "WEEKLY" "MONTHLY"

Mode of aggretation daily, weekly and monthly

startDate
required
string <date>

The start date for get the trend

endDate
required
string <date>

The end date for get the trend

nodes
string

The list of nodeId separated by comma

context
string
Enum:"WEB" "MOBILE" "ECOMMERCE" "RETAIL" "SOCIAL" "DIGITAL_CAMPAIGN" "CONTACT_CENTER" "IOT" "OTHER"

The name of event context

eventType
string

the event type

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/analytics/trend/event
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/analytics/trend/event

Response samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "headers": { },
  • "parameters":
    {
    },
  • "data":
    [
    ]
}

Get Gender composition

Gets composition by gender for one o multiple node

Authorizations:
OAuth2 (ADMINUSERGUESTTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

query Parameters
nodes
string

The list of nodeId separated by comma

startDate
string <date>

Start date of the composition

endDate
string <date>

End date of the composition

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/analytics/composition/gender
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/analytics/composition/gender

Response samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "headers": { },
  • "parameters":
    {
    },
  • "data":
    [
    ]
}

Get Age-range composition

Gets composition by age range for one o multiple node

Authorizations:
OAuth2 (ADMINUSERGUESTTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

query Parameters
nodes
string

The list of nodeId separated by comma

startDate
string <date>

Start date of the composition

endDate
string <date>

End date of the composition

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/analytics/composition/age-range
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/analytics/composition/age-range

Response samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "headers": { },
  • "parameters":
    {
    },
  • "data":
    [
    ]
}

Get Country composition

Gets composition by country for one o multiple node

Authorizations:
OAuth2 (ADMINUSERGUESTTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

query Parameters
nodes
string

The list of nodeId separated by comma

startDate
string <date>

Start date of the composition

endDate
string <date>

End date of the composition

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/analytics/composition/geo/country
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/analytics/composition/geo/country

Response samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "headers": { },
  • "parameters":
    {
    },
  • "data":
    [
    ]
}

Get City composition

GetS composition by city for one o multiple node

Authorizations:
OAuth2 (ADMINUSERGUESTTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

query Parameters
country
string

The name of country to filter

nodes
string

The list of nodeId separated by comma

startDate
string <date>

Start date of the composition

endDate
string <date>

End date of the composition

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/analytics/composition/geo/city
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/analytics/composition/geo/city

Response samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "headers": { },
  • "parameters":
    {
    },
  • "data":
    [
    ]
}

Get Customers node distribution

Distribution of new customers, aggregated for nodes.

Authorizations:
OAuth2 (ADMINUSERGUESTTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

query Parameters
startDate
string <date>

Start date of the distribution

endDate
string <date>

End date of the distribution

nodes
string

List of node identifiers separated by comma

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/analytics/distribution/customer/node
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/analytics/distribution/customer/node

Response samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "headers": { },
  • "parameters":
    {
    },
  • "data":
    [
    ]
}

Get Customers source distribution

Distribution of new customers, aggregated for nodes and sources.

Authorizations:
OAuth2 (ADMINUSERGUESTTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

query Parameters
startDate
string <date>

Start date of the distribution

endDate
string <date>

End date of the distribution

nodes
string

List of node identifiers separated by comma

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/analytics/distribution/customer/source
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/analytics/distribution/customer/source

Response samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "headers": { },
  • "parameters":
    {
    },
  • "data":
    [
    ]
}

Get Customers time distribution

Distribution of new customers, aggregated for nodes and time.

Authorizations:
OAuth2 (ADMINUSERGUESTTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

query Parameters
mode
string
Default: "HOUROFDAY"
Enum:"HOUROFDAY" "DAYOFWEEK" "DAYOFMONTH"

Distribution mode

startDate
string <date>

Start date of the distribution

endDate
string <date>

End date of the distribution

nodes
string

List of node identifiers separated by comma

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/analytics/distribution/customer/time
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/analytics/distribution/customer/time

Response samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "headers": { },
  • "parameters":
    {
    },
  • "data":
    [
    ]
}

Get Events node distribution

Distribution of events, aggregated for nodes.

Authorizations:
OAuth2 (ADMINUSERGUESTTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

query Parameters
context
string
Enum:"WEB" "MOBILE" "ECOMMERCE" "RETAIL" "SOCIAL" "DIGITAL_CAMPAIGN" "CONTACT_CENTER" "IOT" "OTHER"

The name of event context

eventType
string

Event type

startDate
string <date>

Start date of the distribution

endDate
string <date>

End date of the distribution

nodes
string

List of node identifiers separated by comma

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/analytics/distribution/event/node
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/analytics/distribution/event/node

Response samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "headers": { },
  • "parameters":
    {
    },
  • "data":
    [
    ]
}

Get Events source distribution

Distribution of events, aggregated for nodes and sources.

Authorizations:
OAuth2 (ADMINUSERGUESTTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

query Parameters
context
string
Enum:"WEB" "MOBILE" "ECOMMERCE" "RETAIL" "SOCIAL" "DIGITAL_CAMPAIGN" "CONTACT_CENTER" "IOT" "OTHER"

The name of event context

eventType
string

Event type

startDate
string <date>

Start date of the distribution

endDate
string <date>

End date of the distribution

nodes
string

List of node identifiers separated by comma

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/analytics/distribution/event/source
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/analytics/distribution/event/source

Response samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "headers": { },
  • "parameters":
    {
    },
  • "data":
    [
    ]
}

Get Events time distribution

Distribution of events, aggregated for nodes and time.

Authorizations:
OAuth2 (ADMINUSERGUESTTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

query Parameters
context
string
Enum:"WEB" "MOBILE" "ECOMMERCE" "RETAIL" "SOCIAL" "DIGITAL_CAMPAIGN" "CONTACT_CENTER" "IOT" "OTHER"

The name of event context

eventType
string

Event type

mode
string
Default: "HOUROFDAY"
Enum:"HOUROFDAY" "DAYOFWEEK" "DAYOFMONTH"

Distribution mode

startDate
string <date>

Start date of the distribution

endDate
string <date>

End date of the distribution

nodes
string

List of node identifiers separated by comma

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/analytics/distribution/event/time
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/analytics/distribution/event/time

Response samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "headers": { },
  • "parameters":
    {
    },
  • "data":
    [
    ]
}

Get Customers acquisition distribution

Analytic customer acquisition distribution.

Authorizations:
OAuth2 (ADMINUSERGUESTTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

query Parameters
query
required
string

Distribution Query object

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/analytics/query/distribution/customer/acquisition
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/analytics/query/distribution/customer/acquisition

Response samples

application/json
Copy
Expand all Collapse all
{
  • "name": { },
  • "parameters": { },
  • "headers": { },
  • "data":
    {
    }
}

Get Customers distribution

Analytic customer distribution.

Authorizations:
OAuth2 (ADMINUSERGUESTTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

query Parameters
query
required
string

Distribution Query object

size
integer

Distribution size

sort
string

Distribution sort direction

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/analytics/query/distribution/customer
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/analytics/query/distribution/customer

Response samples

application/json
Copy
Expand all Collapse all
{
  • "name": { },
  • "parameters": { },
  • "headers": { },
  • "data":
    {
    }
}

Analytic event distribution. #### EXAMPLE ```json

Analytic event distribution.

EXAMPLE

{
  "nodeId": "027634e8-5aa1-4436-a543-568f476b3f04",
  "startDate": "2015-01-01",
  "endDate": "2016-03-31",
  "eventType": "completedOrder",
  "aggregation": {
    "operator": "SUM",
    "fieldPath": "properties.products.price"
  },
  "distributionFieldPath": "properties.products.sku",
  "customerDistributionFieldPath": "base.gender"
}
Authorizations:
OAuth2 (ADMINUSERGUESTTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

query Parameters
query
required
string

Distribution Query object

size
integer

Distribution size

sort
string

Distribution sort direction

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

You don't have the necessary permissions for the resource

get /workspaces/{workspaceId}/analytics/query/distribution/event
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/analytics/query/distribution/event

Response samples

application/json
Copy
Expand all Collapse all
{
  • "name": { },
  • "parameters": { },
  • "headers": { },
  • "data":
    {
    }
}

Get Events numeric query

Analytic numeric query on events

Authorizations:
OAuth2 (ADMINUSERGUESTTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

query Parameters
query
string

Numeric Query object

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/analytics/query/numeric
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/analytics/query/numeric

Response samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "headers": { },
  • "parameters":
    {
    },
  • "data":
    {
    }
}

Get Events trend query

Analytic trend query on events

Authorizations:
OAuth2 (ADMINUSERGUESTTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

query Parameters
query
string

Trend Query object

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/analytics/query/trend
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/analytics/query/trend

Response samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "headers": { },
  • "parameters":
    {
    },
  • "data":
    {
    }
}

Get Events distribution query

Analytic distribution query on events

Authorizations:
OAuth2 (ADMINUSERGUESTTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

query Parameters
query
string

Distribution Query object

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/analytics/query/distribution
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/analytics/query/distribution

Response samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "headers": { },
  • "parameters":
    {
    },
  • "data":
    {
    }
}

automations

Configuration automations endpoint

Get Automations list

Gets all configured automations

Authorizations:
OAuth2 (ADMIN)
path Parameters
workspaceId
required
string

The unique identifier of workspace

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/configuration/automations/event-trigger
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/automations/event-trigger

Response samples

application/json
Copy
Expand all Collapse all
{
  • "elements":
    [
    ],
  • "page":
    {
    }
}

Create Automation

Creates a new automation configuration

Authorizations:
OAuth2 (ADMIN)
path Parameters
workspaceId
required
string

The unique identifier of workspace

header Parameters
Authorization
required
string

A valid OAuth2 token

Request Body schema: application/json
name
string

Automation configuration's name

enabled
boolean

Flag that specifies if the automation is enabled

nodes
Array of string

List of nodes

delay
integer [ 0 .. 604800 ]

Seconds to wait until automation start after triggering

topic
object

Object that represents a binding with the target event/s

tag
object (ActionTagType)

Object that represents a "TAG" action

webhook
object (ActionWebhookType)

Object that represents a "WEBHOOK" action

Responses

201

Created

403

Forbidden

post /workspaces/{workspaceId}/configuration/automations/event-trigger
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/automations/event-trigger

Request samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "enabled": true,
  • "nodes":
    [
    ],
  • "delay": 0,
  • "topic":
    {
    },
  • "tag":
    {
    },
  • "webhook":
    {
    }
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "id": "string",
  • "name": "string",
  • "enabled": true,
  • "nodes":
    [
    ],
  • "delay": 0,
  • "topic":
    {
    },
  • "tag":
    {
    },
  • "webhook":
    {
    }
}

Get Automation details

Gets a specific automation

Authorizations:
OAuth2 (ADMIN)
path Parameters
workspaceId
required
string

The unique identifier of workspace

id-automation
required
string

Unique identifier of automation

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/configuration/automations/event-trigger/{id-automation}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/automations/event-trigger/{id-automation}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "id": "string",
  • "name": "string",
  • "enabled": true,
  • "nodes":
    [
    ],
  • "delay": 0,
  • "topic":
    {
    },
  • "tag":
    {
    },
  • "webhook":
    {
    }
}

Modify Automation

Updates a specific automation

Authorizations:
OAuth2 (ADMIN)
path Parameters
workspaceId
required
string

The unique identifier of workspace

id-automation
required
string

Unique identifier of automation

header Parameters
Authorization
required
string

A valid OAuth2 token

Request Body schema: application/json
name
string

Automation configuration's name

enabled
boolean

Flag that specifies if the automation is enabled

nodes
Array of string

List of nodes

delay
integer [ 0 .. 604800 ]

Seconds to wait until automation start after triggering

topic
object

Object that represents a binding with the target event/s

tag
object (ActionTagType)

Object that represents a "TAG" action

webhook
object (ActionWebhookType)

Object that represents a "WEBHOOK" action

Responses

200

OK

403

Forbidden

put /workspaces/{workspaceId}/configuration/automations/event-trigger/{id-automation}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/automations/event-trigger/{id-automation}

Request samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "enabled": true,
  • "nodes":
    [
    ],
  • "delay": 0,
  • "topic":
    {
    },
  • "tag":
    {
    },
  • "webhook":
    {
    }
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "id": "string",
  • "name": "string",
  • "enabled": true,
  • "nodes":
    [
    ],
  • "delay": 0,
  • "topic":
    {
    },
  • "tag":
    {
    },
  • "webhook":
    {
    }
}

Delete Automation

Deletes a specific automation

Authorizations:
OAuth2 (ADMIN)
path Parameters
workspaceId
required
string

The unique identifier of workspace

id-automation
required
string

Unique identifier of automation

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

delete /workspaces/{workspaceId}/configuration/automations/event-trigger/{id-automation}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/automations/event-trigger/{id-automation}

configuration

Configuration endpoint

Get Workspace parameters

Gets workspace parameters

Authorizations:
OAuth2 (ADMIN)
path Parameters
workspaceId
required
string

The unique identifier of workspace

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/configuration
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration

Response samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "industry": "NotDefined",
  • "logo": "string",
  • "timezone": "Europe/Rome",
  • "currency": "EUR",
  • "customerUniquenessPolicy": "MERGE",
  • "tier": null
}

Modify Workspace parameters

Modify workspace parameters

Authorizations:
OAuth2 (ADMIN)
path Parameters
workspaceId
required
string

The unique identifier of workspace

header Parameters
Authorization
required
string

A valid OAuth2 token

Request Body schema: application/json
name
string

name of workspace

industry
string
Default: "NotDefined"
Enum:"GDO" "Luxury" "Automotive" "NotDefined"

industry of workspace

logo
string

url of workspace logo

timezone
string
Default: "Europe/Rome"
Enum:"Europe/Rome" "Europe/Paris" "Europe/London"

default timezone of workspace

currency
string
Default: "EUR"
Enum:"EUR" "USD" "JPY" "..."

default currency of workspace

customerUniquenessPolicy
string
Default: "MERGE"
Enum:"NO_CHECK" "BLOCK" "MERGE"

the customer uniqueness check policy (NO_CHECK, BLOCK, MERGE)

Responses

200

OK

403

Forbidden

put /workspaces/{workspaceId}/configuration
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration

Request samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "industry": "NotDefined",
  • "logo": "string",
  • "timezone": "Europe/Rome",
  • "currency": "EUR",
  • "customerUniquenessPolicy": "MERGE"
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "industry": "NotDefined",
  • "logo": "string",
  • "timezone": "Europe/Rome",
  • "currency": "EUR",
  • "customerUniquenessPolicy": "MERGE",
  • "tier": null
}

Get Events list

Gets list of built-in event

Authorizations:
OAuth2 (ADMINUSERGUEST)
path Parameters
workspaceId
required
string

The unique identifier of workspace

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/configuration/events
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/events

Response samples

application/json
Copy
Expand all Collapse all
{
  • "elements":
    [
    ],
  • "page":
    {
    }
}

Get Event details

Gets details of built-in event

Authorizations:
OAuth2 (ADMINUSERGUEST)
path Parameters
workspaceId
required
string

The unique identifier of workspace

id
required
string

The unique identifier of event

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/configuration/events/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/events/{id}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "id": "string",
  • "type": "string",
  • "mode": "ACTIVE",
  • "label": "string",
  • "description": "string",
  • "propertiesSchema": "string",
  • "enabled": true
}

Modify Event

Enable/Disable built-in event

Authorizations:
OAuth2 (ADMIN)
path Parameters
workspaceId
required
string

The unique identifier of workspace

id
required
string

The unique identifier of built-in

header Parameters
Authorization
required
string

A valid OAuth2 token

Request Body schema: application/json
enabled
boolean
Default: true

flag for enable-disable event

Responses

200

OK

403

Forbidden

put /workspaces/{workspaceId}/configuration/events/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/events/{id}

Request samples

application/json
Copy
Expand all Collapse all
{
  • "enabled": true
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "id": "string",
  • "type": "string",
  • "mode": "ACTIVE",
  • "label": "string",
  • "description": "string",
  • "propertiesSchema": "string",
  • "enabled": true
}

Get Entries node

Gets list of entries node

Authorizations:
OAuth2 (ADMINUSERGUEST)
path Parameters
workspaceId
required
string

The unique identifier of workspace

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/configuration/nodes/entries
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/nodes/entries

Response samples

application/json
Copy
Expand all Collapse all
{
  • "elements":
    [
    ],
  • "page":
    {
    }
}

Create Entry node

Creates new entry node

Authorizations:
OAuth2 (ADMIN)
path Parameters
workspaceId
required
string

The unique identifier of workspace

header Parameters
Authorization
required
string

A valid OAuth2 token

Request Body schema: application/json
name
string

the name of entry node

description
string

the description of entry node

imageUrl
string <uri>

the url of logo

sourcePriority
Array of string

array of source id

mandatoryProperties
Array of string

array of mandatory properties

Responses

201

Created

403

Forbidden

post /workspaces/{workspaceId}/configuration/nodes/entries
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/nodes/entries

Request samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "description": "string",
  • "imageUrl": "http://example.com",
  • "sourcePriority":
    [
    ],
  • "mandatoryProperties":
    [
    ]
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "description": "string",
  • "imageUrl": "http://example.com",
  • "sourcePriority":
    [
    ],
  • "mandatoryProperties":
    [
    ],
  • "id": "string"
}

Get Entry node

Gets details of a specific entry node

Authorizations:
OAuth2 (ADMINUSERGUEST)
path Parameters
workspaceId
required
string

The unique identifier of workspace

id
required
string

The unique identifier of entry node

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/configuration/nodes/entries/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/nodes/entries/{id}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "description": "string",
  • "imageUrl": "http://example.com",
  • "sourcePriority":
    [
    ],
  • "mandatoryProperties":
    [
    ],
  • "id": "string"
}

Modify Entry node

Modify a specific entry node

Authorizations:
OAuth2 (ADMIN)
path Parameters
workspaceId
required
string

The unique identifier of workspace

id
required
string

The unique identifier of entry node

header Parameters
Authorization
required
string

A valid OAuth2 token

Request Body schema: application/json
name
string

the name of entry node

description
string

the description of entry node

imageUrl
string <uri>

the url of logo

sourcePriority
Array of string

array of source id

mandatoryProperties
Array of string

array of mandatory properties

Responses

200

OK

403

Forbidden

put /workspaces/{workspaceId}/configuration/nodes/entries/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/nodes/entries/{id}

Request samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "description": "string",
  • "imageUrl": "http://example.com",
  • "sourcePriority":
    [
    ],
  • "mandatoryProperties":
    [
    ]
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "description": "string",
  • "imageUrl": "http://example.com",
  • "sourcePriority":
    [
    ],
  • "mandatoryProperties":
    [
    ],
  • "id": "string"
}

Get View nodes

Gets list of view node

Authorizations:
OAuth2 (ADMINUSERGUEST)
path Parameters
workspaceId
required
string

The unique identifier of workspace

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/configuration/nodes/views
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/nodes/views

Response samples

application/json
Copy
Expand all Collapse all
{
  • "elements":
    [
    ],
  • "page":
    {
    }
}

Create View node

Create new view node

Authorizations:
OAuth2 (ADMIN)
path Parameters
workspaceId
required
string

The unique identifier of workspace

header Parameters
Authorization
required
string

A valid OAuth2 token

Request Body schema: application/json
name
string

the name of view node

description
string

the description of view node

imageUrl
string <uri>

the url of logo

Responses

201

Created

403

Forbidden

post /workspaces/{workspaceId}/configuration/nodes/views
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/nodes/views

Request samples

application/json
Copy
Expand all Collapse all
{}

Response samples

application/json
Copy
Expand all Collapse all
{}

Get View node

Gets details of a specific view node

Authorizations:
OAuth2 (ADMINUSERGUEST)
path Parameters
workspaceId
required
string

The unique identifier of workspace

id
required
string

The unique identifier of view node

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/configuration/nodes/views/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/nodes/views/{id}

Response samples

application/json
Copy
Expand all Collapse all
{}

Modify View node

Modify a specific view node

Authorizations:
OAuth2 (ADMIN)
path Parameters
workspaceId
required
string

The unique identifier of workspace

id
required
string

The unique identifier of view node

header Parameters
Authorization
required
string

A valid OAuth2 token

Request Body schema: application/json
name
string

the name of view node

description
string

the description of view node

imageUrl
string <uri>

the url of logo

Responses

200

OK

403

Forbidden

put /workspaces/{workspaceId}/configuration/nodes/views/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/nodes/views/{id}

Request samples

application/json
Copy
Expand all Collapse all
{}

Response samples

application/json
Copy
Expand all Collapse all
{}

Delete View node

Deletes a specific view node

Authorizations:
OAuth2 (ADMIN)
path Parameters
workspaceId
required
string

The unique identifier of workspace

id
required
string

The unique identifier of view node

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

400

Bad Request

403

Forbidden

delete /workspaces/{workspaceId}/configuration/nodes/views/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/nodes/views/{id}

Get Node hierarchy

Returns the hierarchy of the tree mapping the workspace organization

Authorizations:
OAuth2 (ADMIN)
path Parameters
workspaceId
required
string

The unique identifier of workspace

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/configuration/nodes/node-hierarchy
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/nodes/node-hierarchy

Response samples

application/json
Copy
Expand all Collapse all
{
  • "tree":
    {
    }
}

Modify Node hierarchy

Modify the hierarchy of the tree mapping the workspace organization

Authorizations:
OAuth2 (ADMIN)
path Parameters
workspaceId
required
string

The unique identifier of workspace

header Parameters
Authorization
required
string

A valid OAuth2 token

Request Body schema: application/json
tree
object (TreeNode)

Responses

200

OK

403

Forbidden

put /workspaces/{workspaceId}/configuration/nodes/node-hierarchy
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/nodes/node-hierarchy

Request samples

application/json
Copy
Expand all Collapse all
{
  • "tree":
    {
    }
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "tree":
    {
    }
}

Get Base properties

Gets all base properties

Authorizations:
OAuth2 (ADMINUSERGUESTTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/configuration/properties/base
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/properties/base

Response samples

application/json
Copy
Expand all Collapse all
{
  • "elements":
    [
    ]
}

Modify Base property status

Enable/Disable base properties

Authorizations:
OAuth2 (ADMIN)
path Parameters
workspaceId
required
string

The unique identifier of workspace

name
required
string

The name of base customer property

header Parameters
Authorization
required
string

A valid OAuth2 token

Request Body schema: application/json
name
string

the name of base property

description
string

the description of base property

enabled
boolean

flag for enable/disable the base property

Responses

200

OK

400

Bad Request

403

Forbidden

put /workspaces/{workspaceId}/configuration/properties/base/{name}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/properties/base/{name}

Request samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "description": "string",
  • "enabled": true
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "description": "string",
  • "enabled": true
}

Get Extended properties

Gets extended properties configurated. The json schema of extended property (including for every elements the contactlabProperties object with property label, enabled and mergePolicy with value OBJ_PRIORITY, OBJ_CONCATENATE, ARRAY_UNION, ARRAY_INTERSECTION, MATH_SUM, MATH_AVG, MATH_DIFF, MATH_MIN, MATH_MAX).

Authorizations:
OAuth2 (ADMINUSERGUESTTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/configuration/properties/extended
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/properties/extended

Response samples

application/json
Copy
Expand all Collapse all
{
  • "schema": "string"
}

Modify Extended properties

Modify extended properties configurated. The json schema of extended property (including for every elements the contactlabProperties object with property label, enabled and mergePolicy with value OBJ_PRIORITY, OBJ_CONCATENATE, ARRAY_UNION, ARRAY_INTERSECTION, MATH_SUM, MATH_AVG, MATH_DIFF, MATH_MIN, MATH_MAX).

Authorizations:
OAuth2 (ADMIN)
path Parameters
workspaceId
required
string

The unique identifier of workspace

header Parameters
Authorization
required
string

A valid OAuth2 token

Request Body schema: application/json
string

Responses

200

OK

403

Forbidden

put /workspaces/{workspaceId}/configuration/properties/extended
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/properties/extended

Request samples

application/json
Copy
Expand all Collapse all
"string"

Response samples

application/json
Copy
Expand all Collapse all
{
  • "schema": "string"
}

Get Sources list

Gets list of source configurated

Authorizations:
OAuth2 (ADMINUSERGUEST)
path Parameters
workspaceId
required
string

The unique identifier of workspace

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/configuration/sources
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/sources

Response samples

application/json
Copy
Expand all Collapse all
{
  • "elements":
    [
    ],
  • "page":
    {
    }
}

Modify Source

Create a new source

Authorizations:
OAuth2 (ADMIN)
path Parameters
workspaceId
required
string

The unique identifier of workspace

header Parameters
Authorization
required
string

A valid OAuth2 token

Request Body schema: application/json
provider
required
string
Default: "API"
Enum:"API" "JavaScript" "MAGENTO" "CONTACTSEND" "CONTACTPLAN" "ANDROID_SDK" "OBJECTIVEC_SDK" "NODEJS_SDK" "JAVA_SDK" "SCALA_SDK" "DOTNET_SDK"

the provider of source

name
required
string

the name of source

description
string

the description of source

properties
required
object

the properties required by the selected provider

nodes
required
Array of string

list of unique identifier where source is enabled

enabled
boolean
Default: true

flag for enable-disable source

Responses

200

OK

403

Forbidden

post /workspaces/{workspaceId}/configuration/sources
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/sources

Request samples

application/json
Copy
Expand all Collapse all
{
  • "provider": "API",
  • "name": "string",
  • "description": "string",
  • "properties": { },
  • "nodes":
    [
    ],
  • "enabled": true
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "provider": "API",
  • "name": "string",
  • "description": "string",
  • "properties": { },
  • "nodes":
    [
    ],
  • "enabled": true,
  • "id": "string",
  • "token": "string"
}

Get Source details

Gets source details

Authorizations:
OAuth2 (ADMINUSERGUEST)
path Parameters
workspaceId
required
string

The unique identifier of workspace

id
required
string

The unique identifier of source

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/configuration/sources/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/sources/{id}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "provider": "API",
  • "name": "string",
  • "description": "string",
  • "properties": { },
  • "nodes":
    [
    ],
  • "enabled": true,
  • "id": "string",
  • "token": "string"
}

Modify Source

Modify source

Authorizations:
OAuth2 (ADMIN)
path Parameters
workspaceId
required
string

The unique identifier of workspace

id
required
string

The unique identifier of source

header Parameters
Authorization
required
string

A valid OAuth2 token

Request Body schema: application/json
provider
required
string
Default: "API"
Enum:"API" "JavaScript" "MAGENTO" "CONTACTSEND" "CONTACTPLAN" "ANDROID_SDK" "OBJECTIVEC_SDK" "NODEJS_SDK" "JAVA_SDK" "SCALA_SDK" "DOTNET_SDK"

the provider of source

name
required
string

the name of source

description
string

the description of source

properties
required
object

the properties required by the selected provider

nodes
required
Array of string

list of unique identifier where source is enabled

enabled
boolean
Default: true

flag for enable-disable source

id
string

unique identifier of source

Responses

200

OK

403

Forbidden

put /workspaces/{workspaceId}/configuration/sources/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/sources/{id}

Request samples

application/json
Copy
Expand all Collapse all
{
  • "provider": "API",
  • "name": "string",
  • "description": "string",
  • "properties": { },
  • "nodes":
    [
    ],
  • "enabled": true,
  • "id": "string"
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "provider": "API",
  • "name": "string",
  • "description": "string",
  • "properties": { },
  • "nodes":
    [
    ],
  • "enabled": true,
  • "id": "string",
  • "token": "string"
}

Delete Source

Deletes source

Authorizations:
OAuth2 (ADMIN)
path Parameters
workspaceId
required
string

The unique identifier of workspace

id
required
string

The unique identifier of source

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

delete /workspaces/{workspaceId}/configuration/sources/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/sources/{id}

Refresh Source token

Refresh source token

Authorizations:
OAuth2 (ADMIN)
path Parameters
workspaceId
required
string

The unique identifier of workspace

id
required
string

The unique identifier of source

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

post /workspaces/{workspaceId}/configuration/sources/{id}/refresh-token
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/sources/{id}/refresh-token

Response samples

application/json
Copy
Expand all Collapse all
{
  • "provider": "API",
  • "name": "string",
  • "description": "string",
  • "properties": { },
  • "nodes":
    [
    ],
  • "enabled": true,
  • "id": "string",
  • "token": "string"
}

Get Source priority

Gets source priority

Authorizations:
OAuth2 (ADMINUSERGUEST)
path Parameters
workspaceId
required
string

The unique identifier of workspace

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/configuration/sources/priority
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/sources/priority

Response samples

application/json
Copy
Expand all Collapse all
{
  • "priority":
    [
    ]
}

Modify Source priority

Modifies source priority

Authorizations:
OAuth2 (ADMIN)
path Parameters
workspaceId
required
string

The unique identifier of workspace

header Parameters
Authorization
required
string

A valid OAuth2 token

Request Body schema: application/json
priority
Array of string

list of source id ordered by descending priority

Responses

200

OK

403

Forbidden

put /workspaces/{workspaceId}/configuration/sources/priority
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/sources/priority

Request samples

application/json
Copy
Expand all Collapse all
{
  • "priority":
    [
    ]
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "priority":
    [
    ]
}

Get Customer matching policy

Gets unique customer matching policies for aggregations

Authorizations:
OAuth2 (ADMINUSER)
path Parameters
workspaceId
required
string

The unique identifier of workspace

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/configuration/unique-customer-matching-policy
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/unique-customer-matching-policy

Response samples

application/json
Copy
Expand all Collapse all
{
  • "properties":
    [
    ],
  • "caseSensitive": true
}

Modify Customer matching policy

Updates unique customer matching policies for aggregations

Authorizations:
OAuth2 (ADMIN)
path Parameters
workspaceId
required
string

The unique identifier of workspace

header Parameters
Authorization
required
string

A valid OAuth2 token

Request Body schema: application/json
properties
Array of string

Rules of aggregations

caseSensitive
boolean

Flag that specifies if the matching policy check will be performed considering the field text case.

Responses

200

OK

400

Bad Request

403

Forbidden

put /workspaces/{workspaceId}/configuration/unique-customer-matching-policy
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/unique-customer-matching-policy

Request samples

application/json
Copy
Expand all Collapse all
{
  • "properties":
    [
    ],
  • "caseSensitive": true
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "properties":
    [
    ],
  • "caseSensitive": true
}

Get Users list

Gets users

Authorizations:
OAuth2 (ADMIN)
path Parameters
workspaceId
required
string

The unique identifier of workspace

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/configuration/users
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/users

Response samples

application/json
Copy
Expand all Collapse all
{
  • "elements":
    [
    ],
  • "page":
    {
    }
}

Get User details

Gets user details

Authorizations:
OAuth2 (ADMIN)
path Parameters
workspaceId
required
string

The unique identifier of workspace

id
required
string

The unique identifier of user

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/configuration/users/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/users/{id}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "nodes":
    [
    ],
  • "id": "string",
  • "name": "string",
  • "registeredAt": "2018-05-29T12:22:09Z",
  • "updatedAt": "2018-05-29T12:22:09Z"
}

Modify User

Modify user nodes

Authorizations:
OAuth2 (ADMIN)
path Parameters
workspaceId
required
string

The unique identifier of workspace

id
required
string

The unique identifier of user

header Parameters
Authorization
required
string

A valid OAuth2 token

Request Body schema: application/json
nodes
required
Array of object

Responses

200

OK

403

Forbidden

put /workspaces/{workspaceId}/configuration/users/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/configuration/users/{id}

Request samples

application/json
Copy
Expand all Collapse all
{
  • "nodes":
    [
    ]
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "nodes":
    [
    ],
  • "id": "string",
  • "name": "string",
  • "registeredAt": "2018-05-29T12:22:09Z",
  • "updatedAt": "2018-05-29T12:22:09Z"
}

consents

Consents endpoint

Get consent

Gets an operation on consents

Authorizations:
OAuth2 (DPO)
path Parameters
workspaceId
required
string

The unique identifier of workspace

id
required
string

Identifier of the consent log

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/consent-logs/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/consent-logs/{id}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "id": 0,
  • "customerId": "string",
  • "date": null,
  • "type": "DISCLAIMER_READ",
  • "property": "string",
  • "value": "string",
  • "sourceId": "string",
  • "userId": 0
}

Get consents list

Gets list of operations on consents

Authorizations:
OAuth2 (DPO)
path Parameters
workspaceId
required
string

The unique identifier of workspace

query Parameters
customerId
string

Identifier of the customer

uniqueKey
string

The JSON-encoded data structure containing the values of the unique customer

startDate
string <date>

The date interval lower bound

endDate
string <date>

The date interval upper bound

type
string
Enum:"DISCLAIMER_READ" "CONSENT_CHANGED" "CONSENT_RESTRICTED" "CONSENT_OBJECTED" "DATA_PORTABILITY_REQUESTED" "FORCED_DELETE"

The type of consent log event

property
string

Json path of property

sort
string

Sort field and direction

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/consent-logs
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/consent-logs

Response samples

application/json
Copy
Expand all Collapse all
{
  • "elements":
    [
    ],
  • "page":
    {
    }
}

customers

Customers endpoint

Get Customers list

Gets list of customers

Authorizations:
OAuth2 (ADMINUSERGUESTTRUSTED_APPLICATIONUNTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

query Parameters
nodeId
required
string

Identifier of the node where you want to do the search

externalId
string

The external id assigned to the customers

query
string

Query for filter the customers

fields
string

Comma-separated list of properties to include in the response

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/customers
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/customers

Response samples

application/json
Copy
Expand all Collapse all
{
  • "elements":
    [
    ],
  • "page":
    {
    }
}

Create Customer

Creates a new customer

Authorizations:
OAuth2 (ADMIN)
path Parameters
workspaceId
required
string

The unique identifier of workspace

query Parameters
sessionId
string

The unique identifier of session

header Parameters
Authorization
required
string

A valid OAuth2 token

Request Body schema: application/json
externalId
string

the external id of customer

nodeId
required
string

entry node id

base
object

base customer data structure included in Contacthub. The model is defined [here]

consents
object

consents customer data structure included in Contacthub. The model is defined [here]

extended
object

custom data defined by workspace based on a declarated schema

extra
string

custom data defined by workspace not based on a declarated schema

tags
object

the default tags property of customers

enabled
boolean

flag for soft delete

Responses

201

Created

403

Forbidden

409

Conflict

423

Reindexing in progress

post /workspaces/{workspaceId}/customers
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/customers

Request samples

application/json
Copy
Expand all Collapse all
{
  • "externalId": "string",
  • "nodeId": "string",
  • "base": { },
  • "consents": { },
  • "extended": { },
  • "extra": "string",
  • "tags":
    {
    },
  • "enabled": true
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "externalId": "string",
  • "nodeId": "string",
  • "base": { },
  • "consents": { },
  • "extended": { },
  • "extra": "string",
  • "tags":
    {
    },
  • "enabled": true,
  • "id": "string",
  • "sourceInfo":
    {
    },
  • "registeredAt": "2018-05-29T12:22:09Z",
  • "updatedAt": "2018-05-29T12:22:09Z"
}

Get Customer details

Gets details of customer

Authorizations:
OAuth2 (ADMINUSERGUESTTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

id
required
string

The unique identifier of customer

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/customers/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/customers/{id}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "externalId": "string",
  • "nodeId": "string",
  • "base": { },
  • "consents": { },
  • "extended": { },
  • "extra": "string",
  • "tags":
    {
    },
  • "enabled": true,
  • "id": "string",
  • "sourceInfo":
    {
    },
  • "registeredAt": "2018-05-29T12:22:09Z",
  • "updatedAt": "2018-05-29T12:22:09Z"
}

Modify Customer

Modifies partially the customer

Authorizations:
OAuth2 (ADMINUSERTRUSTED_APPLICATIONUNTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

id
required
string

The unique identifier of customer

query Parameters
sessionId
string

The unique identifier of session

header Parameters
Authorization
required
string

A valid OAuth2 token

Request Body schema: application/json
externalId
string

the external id of customer

base
object

base customer data structure included in Contacthub. The model is defined [here]

consents
object

consents customer data structure included in Contacthub. The model is defined [here]

extended
object

custom data defined by workspace based on a declarated schema

extra
string

custom data defined by workspace not based on a declarated schema

tags
object

the default tags property of customers

enabled
boolean

flag for soft delete

Responses

200

OK

403

Forbidden

409

Conflict

423

Reindexing in progress

patch /workspaces/{workspaceId}/customers/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/customers/{id}

Request samples

application/json
Copy
Expand all Collapse all
{
  • "externalId": "string",
  • "base": { },
  • "consents": { },
  • "extended": { },
  • "extra": "string",
  • "tags":
    {
    },
  • "enabled": true
}

Modify Customer

Updates customer

Authorizations:
OAuth2 (ADMINUSERTRUSTED_APPLICATIONUNTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

id
required
string

The unique identifier of customer

query Parameters
sessionId
string

The unique identifier of session

header Parameters
Authorization
required
string

A valid OAuth2 token

Request Body schema: application/json
externalId
string

the external id of customer

nodeId
required
string

entry node id

base
object

base customer data structure included in Contacthub. The model is defined [here]

consents
object

consents customer data structure included in Contacthub. The model is defined [here]

extended
object

custom data defined by workspace based on a declarated schema

extra
string

custom data defined by workspace not based on a declarated schema

tags
object

the default tags property of customers

enabled
boolean

flag for soft delete

id
string

the customer id

sourceInfo
object

information about sources that operated on customer

registeredAt
string <date-time>

the registration timestamp

updatedAt
string <date-time>

the customer update timestamp

Responses

200

OK

403

Forbidden

409

Conflict

423

Reindexing in progress

put /workspaces/{workspaceId}/customers/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/customers/{id}

Request samples

application/json
Copy
Expand all Collapse all
{
  • "externalId": "string",
  • "nodeId": "string",
  • "base": { },
  • "consents": { },
  • "extended": { },
  • "extra": "string",
  • "tags":
    {
    },
  • "enabled": true,
  • "id": "string",
  • "sourceInfo":
    {
    },
  • "registeredAt": "2018-05-29T12:22:09Z",
  • "updatedAt": "2018-05-29T12:22:09Z"
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "externalId": "string",
  • "nodeId": "string",
  • "base": { },
  • "consents": { },
  • "extended": { },
  • "extra": "string",
  • "tags":
    {
    },
  • "enabled": true,
  • "id": "string",
  • "sourceInfo":
    {
    },
  • "registeredAt": "2018-05-29T12:22:09Z",
  • "updatedAt": "2018-05-29T12:22:09Z"
}

Delete Customer

Deletes customer

Authorizations:
OAuth2 (ADMINUSERTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

id
required
string

The unique identifier of customer

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

423

Reindexing in progress

delete /workspaces/{workspaceId}/customers/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/customers/{id}

Get Customer sources list

Gets list of raw data from sources

Authorizations:
OAuth2 (ADMINUSERTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

id
required
string

The unique identifier of customer

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/customers/{id}/sources
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/customers/{id}/sources

Response samples

application/json
Copy
Expand all Collapse all
{
  • "elements":
    [
    ]
}

Get Customer source details

Gets raw data from a specific sources

Authorizations:
OAuth2 (ADMINUSERTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

id
required
string

The unique identifier of customer

sourceId
required
string

The unique identifier of source

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/customers/{id}/sources/{sourceId}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/customers/{id}/sources/{sourceId}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "id": "string",
  • "externalId": "string",
  • "nodeId": "string",
  • "base": { },
  • "extended": { },
  • "extra": "string",
  • "consents": { },
  • "tags":
    {
    },
  • "registeredAt": "2018-05-29T12:22:09Z",
  • "updatedAt": "2018-05-29T12:22:09Z",
  • "enabled": true
}

Create Customer education

Creates customer education

Authorizations:
OAuth2 (ADMINUSERTRUSTED_APPLICATIONUNTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

customerId
required
string

The unique identifier of customer

header Parameters
Authorization
required
string

A valid OAuth2 token

Request Body schema: application/json
id
string

unique identifier of education

schoolType
string
Enum:"PRIMARY_SCHOOL" "SECONDARY_SCHOOL" "HIGH_SCHOOL" "COLLEGE" "OTHER"

The name of school type

schoolName
string

the name of the school

schoolConcentration
string
startYear
integer
endYear
integer
isCurrent
boolean

Responses

200

OK

403

Forbidden

423

Reindexing in progress

post /workspaces/{workspaceId}/customers/{customerId}/educations
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/customers/{customerId}/educations

Request samples

application/json
Copy
Expand all Collapse all
{
  • "id": "string",
  • "schoolType": "PRIMARY_SCHOOL",
  • "schoolName": "string",
  • "schoolConcentration": "string",
  • "startYear": 0,
  • "endYear": 0,
  • "isCurrent": true
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "id": "string",
  • "schoolType": "PRIMARY_SCHOOL",
  • "schoolName": "string",
  • "schoolConcentration": "string",
  • "startYear": 0,
  • "endYear": 0,
  • "isCurrent": true
}

Get Customer education

Gets details of customer education

Authorizations:
OAuth2 (ADMINUSERGUESTTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

customerId
required
string

The unique identifier of customer

id
required
string

The unique identifier of customer education

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/customers/{customerId}/educations/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/customers/{customerId}/educations/{id}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "id": "string",
  • "schoolType": "PRIMARY_SCHOOL",
  • "schoolName": "string",
  • "schoolConcentration": "string",
  • "startYear": 0,
  • "endYear": 0,
  • "isCurrent": true
}

Modify Customer education

Modifies customer education

Authorizations:
OAuth2 (ADMINUSERTRUSTED_APPLICATIONUNTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

customerId
required
string

The unique identifier of customer

id
required
string

The unique identifier of customer education

header Parameters
Authorization
required
string

A valid OAuth2 token

Request Body schema: application/json
id
string

unique identifier of education

schoolType
string
Enum:"PRIMARY_SCHOOL" "SECONDARY_SCHOOL" "HIGH_SCHOOL" "COLLEGE" "OTHER"

The name of school type

schoolName
string

the name of the school

schoolConcentration
string
startYear
integer
endYear
integer
isCurrent
boolean

Responses

200

OK

403

Forbidden

423

Reindexing in progress

put /workspaces/{workspaceId}/customers/{customerId}/educations/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/customers/{customerId}/educations/{id}

Request samples

application/json
Copy
Expand all Collapse all
{
  • "id": "string",
  • "schoolType": "PRIMARY_SCHOOL",
  • "schoolName": "string",
  • "schoolConcentration": "string",
  • "startYear": 0,
  • "endYear": 0,
  • "isCurrent": true
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "id": "string",
  • "schoolType": "PRIMARY_SCHOOL",
  • "schoolName": "string",
  • "schoolConcentration": "string",
  • "startYear": 0,
  • "endYear": 0,
  • "isCurrent": true
}

Delete Customer education

Deletes customer education

Authorizations:
OAuth2 (ADMINUSERTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

customerId
required
string

The unique identifier of customer

id
required
string

The unique identifier of customer education

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

423

Reindexing in progress

delete /workspaces/{workspaceId}/customers/{customerId}/educations/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/customers/{customerId}/educations/{id}

Create Customer like

Creates customer like

Authorizations:
OAuth2 (ADMINUSERTRUSTED_APPLICATIONUNTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

customerId
required
string

The unique identifier of customer

header Parameters
Authorization
required
string

A valid OAuth2 token

Request Body schema: application/json
id
string

unique identifier of like

category
string

The name of like category

name
string

the name of like

createdTime
string <date-time>

the like creation datetime

Responses

200

OK

403

Forbidden

post /workspaces/{workspaceId}/customers/{customerId}/likes
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/customers/{customerId}/likes

Request samples

application/json
Copy
Expand all Collapse all
{
  • "id": "string",
  • "category": "string",
  • "name": "string",
  • "createdTime": "2018-05-29T12:22:09Z"
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "id": "string",
  • "category": "string",
  • "name": "string",
  • "createdTime": "2018-05-29T12:22:09Z"
}

Get Customer like

Gets details of customer like

Authorizations:
OAuth2 (ADMINUSERGUESTTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

customerId
required
string

The unique identifier of customer

id
required
string

The unique identifier of customer like

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/customers/{customerId}/likes/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/customers/{customerId}/likes/{id}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "id": "string",
  • "category": "string",
  • "name": "string",
  • "createdTime": "2018-05-29T12:22:09Z"
}

Modify Customer like

Modifies customer like

Authorizations:
OAuth2 (ADMINUSERTRUSTED_APPLICATIONUNTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

customerId
required
string

The unique identifier of customer

id
required
string

The unique identifier of customer like

header Parameters
Authorization
required
string

A valid OAuth2 token

Request Body schema: application/json
id
string

unique identifier of like

category
string

The name of like category

name
string

the name of like

createdTime
string <date-time>

the like creation datetime

Responses

200

OK

403

Forbidden

423

Reindexing in progress

put /workspaces/{workspaceId}/customers/{customerId}/likes/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/customers/{customerId}/likes/{id}

Request samples

application/json
Copy
Expand all Collapse all
{
  • "id": "string",
  • "category": "string",
  • "name": "string",
  • "createdTime": "2018-05-29T12:22:09Z"
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "id": "string",
  • "category": "string",
  • "name": "string",
  • "createdTime": "2018-05-29T12:22:09Z"
}

Delete Customer like

Deletes customer like

Authorizations:
OAuth2 (ADMINUSERTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

customerId
required
string

The unique identifier of customer

id
required
string

The unique identifier of customer like

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

423

Reindexing in progress

delete /workspaces/{workspaceId}/customers/{customerId}/likes/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/customers/{customerId}/likes/{id}

Create Customer job

Creates customer job

Authorizations:
OAuth2 (ADMINUSERTRUSTED_APPLICATIONUNTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

customerId
required
string

The unique identifier of customer

header Parameters
Authorization
required
string

A valid OAuth2 token

Request Body schema: application/json
id
string

unique identifier of job

companyIndustry
string

The name of company industry

companyName
string

The name of company

jobTitle
string

The job title

startDate
string <date>

job start date

endDate
string <date>

job end date

isCurrent
boolean

Responses

200

OK

403

Forbidden

423

Reindexing in progress

post /workspaces/{workspaceId}/customers/{customerId}/jobs
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/customers/{customerId}/jobs

Request samples

application/json
Copy
Expand all Collapse all
{
  • "id": "string",
  • "companyIndustry": "string",
  • "companyName": "string",
  • "jobTitle": "string",
  • "startDate": "2018-05-29",
  • "endDate": "2018-05-29",
  • "isCurrent": true
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "id": "string",
  • "companyIndustry": "string",
  • "companyName": "string",
  • "jobTitle": "string",
  • "startDate": "2018-05-29",
  • "endDate": "2018-05-29",
  • "isCurrent": true
}

Get Customer job

Gets details of customer job

Authorizations:
OAuth2 (ADMINUSERGUESTTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

customerId
required
string

The unique identifier of customer

id
required
string

The unique identifier of customer job

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/customers/{customerId}/jobs/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/customers/{customerId}/jobs/{id}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "id": "string",
  • "companyIndustry": "string",
  • "companyName": "string",
  • "jobTitle": "string",
  • "startDate": "2018-05-29",
  • "endDate": "2018-05-29",
  • "isCurrent": true
}

Modify Customer job

Modifies customer job

Authorizations:
OAuth2 (ADMINUSERTRUSTED_APPLICATIONUNTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

customerId
required
string

The unique identifier of customer

id
required
string

The unique identifier of customer job

header Parameters
Authorization
required
string

A valid OAuth2 token

Request Body schema: application/json
id
string

unique identifier of job

companyIndustry
string

The name of company industry

companyName
string

The name of company

jobTitle
string

The job title

startDate
string <date>

job start date

endDate
string <date>

job end date

isCurrent
boolean

Responses

200

OK

403

Forbidden

423

Reindexing in progress

put /workspaces/{workspaceId}/customers/{customerId}/jobs/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/customers/{customerId}/jobs/{id}

Request samples

application/json
Copy
Expand all Collapse all
{
  • "id": "string",
  • "companyIndustry": "string",
  • "companyName": "string",
  • "jobTitle": "string",
  • "startDate": "2018-05-29",
  • "endDate": "2018-05-29",
  • "isCurrent": true
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "id": "string",
  • "companyIndustry": "string",
  • "companyName": "string",
  • "jobTitle": "string",
  • "startDate": "2018-05-29",
  • "endDate": "2018-05-29",
  • "isCurrent": true
}

Delete Customer job

Deletes customer job

Authorizations:
OAuth2 (ADMINUSERTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

customerId
required
string

The unique identifier of customer

id
required
string

The unique identifier of customer job

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

423

Reindexing in progress

delete /workspaces/{workspaceId}/customers/{customerId}/jobs/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/customers/{customerId}/jobs/{id}

Create Customer subscription

Creates customer subscription

Authorizations:
OAuth2 (ADMINUSERTRUSTED_APPLICATIONUNTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

customerId
required
string

The unique identifier of customer

header Parameters
Authorization
required
string

A valid OAuth2 token

Request Body schema: application/json
id
string

unique identifier of subscription

name
string

The name of subscription

type
string

The type of subscription

kind
string
Enum:"DIGITAL_MESSAGE" "SERVICE" "OTHER"

The kind of subscription

enable
boolean
startDate
string <date-time>

start date of subscription

endDate
string <date-time>

end date of subscription

subscriberId
string

unique identifier of subscriber

registeredAt
string <date-time>

subscription creation datetime

updatedAt
string <date-time>

subscription update datetime

preferences
Array of object

Responses

201

Created

403

Forbidden

423

Reindexing in progress

post /workspaces/{workspaceId}/customers/{customerId}/subscriptions
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/customers/{customerId}/subscriptions

Request samples

application/json
Copy
Expand all Collapse all
{
  • "id": "string",
  • "name": "string",
  • "type": "string",
  • "kind": "DIGITAL_MESSAGE",
  • "enable": true,
  • "startDate": "2018-05-29T12:22:09Z",
  • "endDate": "2018-05-29T12:22:09Z",
  • "subscriberId": "string",
  • "registeredAt": "2018-05-29T12:22:09Z",
  • "updatedAt": "2018-05-29T12:22:09Z",
  • "preferences":
    [
    ]
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "id": "string",
  • "name": "string",
  • "type": "string",
  • "kind": "DIGITAL_MESSAGE",
  • "enable": true,
  • "startDate": "2018-05-29T12:22:09Z",
  • "endDate": "2018-05-29T12:22:09Z",
  • "subscriberId": "string",
  • "registeredAt": "2018-05-29T12:22:09Z",
  • "updatedAt": "2018-05-29T12:22:09Z",
  • "preferences":
    [
    ]
}

Get Customer subscription

Gets details of customer subscription

Authorizations:
OAuth2 (ADMINUSERGUESTTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

customerId
required
string

The unique identifier of customer

id
required
string

The unique identifier of customer subscription

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/customers/{customerId}/subscriptions/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/customers/{customerId}/subscriptions/{id}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "id": "string",
  • "name": "string",
  • "type": "string",
  • "kind": "DIGITAL_MESSAGE",
  • "enable": true,
  • "startDate": "2018-05-29T12:22:09Z",
  • "endDate": "2018-05-29T12:22:09Z",
  • "subscriberId": "string",
  • "registeredAt": "2018-05-29T12:22:09Z",
  • "updatedAt": "2018-05-29T12:22:09Z",
  • "preferences":
    [
    ]
}

Modify Customer subscription

Modifies customer subscription

Authorizations:
OAuth2 (ADMINUSERTRUSTED_APPLICATIONUNTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

customerId
required
string

The unique identifier of customer

id
required
string

The unique identifier of customer subscription

header Parameters
Authorization
required
string

A valid OAuth2 token

Request Body schema: application/json
id
string

unique identifier of subscription

name
string

The name of subscription

type
string

The type of subscription

kind
string
Enum:"DIGITAL_MESSAGE" "SERVICE" "OTHER"

The kind of subscription

enable
boolean
startDate
string <date-time>

start date of subscription

endDate
string <date-time>

end date of subscription

subscriberId
string

unique identifier of subscriber

registeredAt
string <date-time>

subscription creation datetime

updatedAt
string <date-time>

subscription update datetime

preferences
Array of object

Responses

200

OK

403

Forbidden

423

Reindexing in progress

put /workspaces/{workspaceId}/customers/{customerId}/subscriptions/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/customers/{customerId}/subscriptions/{id}

Request samples

application/json
Copy
Expand all Collapse all
{
  • "id": "string",
  • "name": "string",
  • "type": "string",
  • "kind": "DIGITAL_MESSAGE",
  • "enable": true,
  • "startDate": "2018-05-29T12:22:09Z",
  • "endDate": "2018-05-29T12:22:09Z",
  • "subscriberId": "string",
  • "registeredAt": "2018-05-29T12:22:09Z",
  • "updatedAt": "2018-05-29T12:22:09Z",
  • "preferences":
    [
    ]
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "id": "string",
  • "name": "string",
  • "type": "string",
  • "kind": "DIGITAL_MESSAGE",
  • "enable": true,
  • "startDate": "2018-05-29T12:22:09Z",
  • "endDate": "2018-05-29T12:22:09Z",
  • "subscriberId": "string",
  • "registeredAt": "2018-05-29T12:22:09Z",
  • "updatedAt": "2018-05-29T12:22:09Z",
  • "preferences":
    [
    ]
}

Delete Customer subscription

Deletes customer subscription

Authorizations:
OAuth2 (ADMINUSERTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

customerId
required
string

The unique identifier of customer

id
required
string

The unique identifier of customer subscription

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

423

Reindexing in progress

delete /workspaces/{workspaceId}/customers/{customerId}/subscriptions/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/customers/{customerId}/subscriptions/{id}

Get Sessions list

Gets list of session assign to customer

Authorizations:
OAuth2 (ADMINUSERTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

customerId
required
string

The unique identifier of customer

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/customers/{customerId}/sessions
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/customers/{customerId}/sessions

Response samples

application/json
Copy
Expand all Collapse all
{
  • "elements":
    [
    ]
}

Create Session

Creates a session of customer

Authorizations:
OAuth2 (ADMINUSERTRUSTED_APPLICATIONUNTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

customerId
required
string

The unique identifier of customer

header Parameters
Authorization
required
string

A valid OAuth2 token

Request Body schema: application/json
value
string

the session id of customer. the value is unique for a single node

Responses

201

Created

403

Forbidden

post /workspaces/{workspaceId}/customers/{customerId}/sessions
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/customers/{customerId}/sessions

Request samples

application/json
Copy
Expand all Collapse all
{
  • "value": "string"
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "id": "string",
  • "value": "string"
}

Get Session details

Gets a specific sessions assigned at customer

Authorizations:
OAuth2 (ADMINUSERTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

customerId
required
string

The unique identifier of customer

sessionId
required
string

The unique identifier of session

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/customers/{customerId}/sessions/{sessionId}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/customers/{customerId}/sessions/{sessionId}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "id": "string",
  • "value": "string"
}

Delete Session

Deletes session assigned at customer

Authorizations:
OAuth2 (ADMINUSERTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

customerId
required
string

The unique identifier of customer

sessionId
required
string

The unique identifier of session

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

delete /workspaces/{workspaceId}/customers/{customerId}/sessions/{sessionId}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/customers/{customerId}/sessions/{sessionId}

events

Events endpoint

Get Events list

Gets list of events

Authorizations:
OAuth2 (ADMINUSERTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

query Parameters
customerId
string

The unique identifier of customer

nodeId
string

The node identifier

type
string

One or more event types (separated by comma)

context
string

One or more event context (separated by comma)

mode
string
Enum:"ACTIVE" "PASSIVE"

the mode of event. ACTIVE if the customer made the event, PASSIVE if the customer recive the event

dateFrom
string <date-time>

From datetime for search of event

dateTo
string <date-time>

To datetime for search of event

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/events
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/events

Response samples

application/json
Copy
Expand all Collapse all
{
  • "elements":
    [
    ],
  • "page":
    {
    }
}

Create Event

Inserts new event

Authorizations:
OAuth2 (ADMINUSERTRUSTED_APPLICATIONUNTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

header Parameters
Authorization
required
string

A valid OAuth2 token

Request Body schema: application/json
customerId
string

customer id

bringBackProperties
object (BringBackProperty)
type
required
string (EventType)
Enum:"abandonedCart" "addedCompare" "addedProduct" "addedWishlist" "campaignBlacklisted" "campaignBounced" "campaignLinkClicked" "campaignMarkedSpam" "campaignOpened" "campaignSent" "campaignSubscribed" "campaignUnsubscribed" "changedSetting" "clickedLink" "closedTicket" "completedOrder" "eventConfirmed" "eventDeclined" "eventEligible" "eventInvited" "eventNoShow" "eventNotInvited" "eventParticipated" "eventRegistered" "formCompiled" "genericActiveEvent" "genericPassiveEvent" "loggedIn" "loggedOut" "openedTicket" "orderShipped" "removedCompare" "removedProduct" "removedWishlist" "repliedTicket" "reviewedProduct" "searched" "serviceSubscribed" "serviceUnsubscribed" "viewedPage" "viewedProduct" "viewedProductCategory"

Type of the target event/s

context
required
string (EventContext)
Enum:"WEB" "MOBILE" "ECOMMERCE" "RETAIL" "SOCIAL" "DIGITAL_CAMPAIGN" "CONTACT_CENTER" "IOT" "OTHER"

Context of the target event/s

date
string <date-time>

the timestamp of event

contextInfo
object

the json schema related to event context. [Read here]

tracking
object (Tracking)
properties
required
object

the json schema related to event type. [Read here]

Responses

202

Accepted

403

Forbidden

post /workspaces/{workspaceId}/events
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/events

Request samples

application/json
Copy
Expand all Collapse all
{
  • "customerId": "string",
  • "bringBackProperties":
    {
    },
  • "type": "abandonedCart",
  • "context": "WEB",
  • "date": "2018-05-29T12:22:09Z",
  • "contextInfo": { },
  • "tracking":
    {
    },
  • "properties": { }
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "id": "string"
}

Get Event details

Gets details of specific event

Authorizations:
OAuth2 (ADMINUSERTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

id
required
string

The unique identifier of event

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/events/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/events/{id}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "customerId": "string",
  • "bringBackProperties":
    {
    },
  • "type": "abandonedCart",
  • "context": "WEB",
  • "date": "2018-05-29T12:22:09Z",
  • "contextInfo": { },
  • "tracking":
    {
    },
  • "properties": { },
  • "id": "string"
}

Modifies details of specific event

Modifies details of specific event

Authorizations:
OAuth2 (ADMINUSERTRUSTED_APPLICATIONUNTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

id
required
string

The unique identifier of event

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

202

The request has been accepted for processing

403

You don't have the necessary permissions for the resource

put /workspaces/{workspaceId}/events/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/events/{id}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "id": "string",
  • "customerId": "string",
  • "bringBackProperties":
    {
    },
  • "type": "abandonedCart",
  • "context": "WEB",
  • "date": "2018-05-29T12:22:09Z",
  • "contextInfo": { },
  • "tracking":
    {
    },
  • "registeredAt": "2018-05-29T12:22:09Z",
  • "updatedAt": "2018-05-29T12:22:09Z",
  • "properties": { }
}

Delete Event

Deletes a specific event

Authorizations:
OAuth2 (ADMINUSERTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

id
required
string

The event identifier

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

204

No Content

403

Forbidden

404

Not Found

delete /workspaces/{workspaceId}/events/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/events/{id}

model

Model endpoint

Get Base properties

Gets base properties. The json schema of base property (including for every elements the contactlabProperties object with property label, enabled.

Authorizations:
OAuth2 (ADMINUSERGUEST)
path Parameters
workspaceId
required
string

The unique identifier of workspace

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/models/properties/base
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/models/properties/base

Response samples

application/json
Copy
Expand all Collapse all
{
  • "schema": "string"
}

Get Merge policies list

Gets list of merge policies defined in contacthub

Authorizations:
OAuth2 (ADMINUSERGUEST)
path Parameters
workspaceId
required
string

The unique identifier of workspace

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/models/merge-policies
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/models/merge-policies

Response samples

application/json
Copy
Expand all Collapse all
{
  • "elements":
    [
    ]
}

Get Providers list

Gets list of providers defined in contacthub

Authorizations:
OAuth2 (ADMINUSERGUEST)
path Parameters
workspaceId
required
string

The unique identifier of workspace

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/models/providers
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/models/providers

Response samples

application/json
Copy
Expand all Collapse all
{
  • "elements":
    [
    ]
}

Get Contexts list

Gets list of event contexts defined in contacthub

Authorizations:
OAuth2 (ADMINUSERGUEST)
path Parameters
workspaceId
required
string

The unique identifier of workspace

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/models/contexts
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/models/contexts

Response samples

application/json
Copy
Expand all Collapse all
{
  • "elements":
    [
    ]
}

segment

Segment endpoint

Get Segments list

Gets list of segments

Authorizations:
OAuth2 (ADMINUSERGUESTTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

query Parameters
name
string

Query for filter by name the segment

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/segments
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/segments

Response samples

application/json
Copy
Expand all Collapse all
{
  • "elements":
    [
    ],
  • "page":
    {
    }
}

Create Segment

Inserts a new segment

Authorizations:
OAuth2 (ADMINUSERTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

header Parameters
Authorization
required
string

A valid OAuth2 token

Request Body schema: application/json
name
string

name of segment

query
object

object query

enabled
boolean
Default: true

enable/disable segment

Responses

201

Created

403

Forbidden

post /workspaces/{workspaceId}/segments
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/segments

Request samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "query": { },
  • "enabled": true
}

Response samples

application/json
Copy
Expand all Collapse all
[
  • {
    }
]

Get Segment details

Details of specific segment

Authorizations:
OAuth2 (ADMINUSERGUESTTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

id
required
string

The unique identifier of segment

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/segments/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/segments/{id}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "query": { },
  • "enabled": true,
  • "id": "string",
  • "createdAt": "2018-05-29T12:22:09Z",
  • "updatedAt": "2018-05-29T12:22:09Z"
}

Modify Segment

Modifies a specific segment

Authorizations:
OAuth2 (ADMINUSERTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

id
required
string

The unique identifier of segment

header Parameters
Authorization
required
string

A valid OAuth2 token

Request Body schema: application/json
name
string

name of segment

query
object

object query

enabled
boolean
Default: true

enable/disable segment

id
string

id of segment

Responses

200

OK

403

Forbidden

put /workspaces/{workspaceId}/segments/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/segments/{id}

Request samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "query": { },
  • "enabled": true,
  • "id": "string"
}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "query": { },
  • "enabled": true,
  • "id": "string",
  • "createdAt": "2018-05-29T12:22:09Z",
  • "updatedAt": "2018-05-29T12:22:09Z"
}

Delete Segment

Deletes a specific segment

Authorizations:
OAuth2 (ADMINUSERTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

id
required
string

The unique identifier of segment

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

delete /workspaces/{workspaceId}/segments/{id}
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/segments/{id}

Response samples

application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "query": { },
  • "enabled": true,
  • "id": "string",
  • "createdAt": "2018-05-29T12:22:09Z",
  • "updatedAt": "2018-05-29T12:22:09Z"
}

Get Segment customers

List of customer in a specific segment. The output it's a list of id. For other property specify with paramenters fields

Authorizations:
OAuth2 (ADMINUSERGUESTTRUSTED_APPLICATION)
path Parameters
workspaceId
required
string

The unique identifier of workspace

id
required
string

The unique identifier of segment

query Parameters
fields
required
string

Comma-separated list of properties to include in the response

nodeId
required
string

The identifier of node where you want made the query

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

OK

403

Forbidden

get /workspaces/{workspaceId}/segments/{id}/customers
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/segments/{id}/customers

Response samples

application/json
Copy
Expand all Collapse all
{
  • "elements":
    [
    ],
  • "page":
    {
    }
}

updates

Updates endpoint

get the offset of the last update to any customer

get the offset of the last update to any customer or event

Authorizations:
OAuth2 (ADMINUSERPLATFORM_UPDATES)
path Parameters
workspaceId
required
string

The unique identifier of workspace

query Parameters
nodeId
string

Filter the entities belonging to this node id

entity
string
Enum:"CUSTOMER" "EVENT"

Filter the entities by type

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

the offset has been returned

get /workspaces/{workspaceId}/updates/last-offset
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/updates/last-offset

Response samples

application/json
Copy
Expand all Collapse all
{
  • "lastOffset": 0
}

get the stream of updates on customers and events

get the stream of updates on customers and events

Authorizations:
OAuth2 (ADMINUSERPLATFORM_UPDATES)
path Parameters
workspaceId
required
string

The unique identifier of workspace

query Parameters
size
integer [ 0 .. 4000 ]
Default: 50

Paging: the page size

timestamp
integer

The timestamp of the first modified entity; ignored if the offset parameter has been defined

offset
integer

The greatest offset known by the client (not included in the returned result)

nodeId
string

Filter the entities belonging to this node id

entity
string
Enum:"CUSTOMER" "EVENT"

Filter the entities by type

header Parameters
Authorization
required
string

A valid OAuth2 token

Responses

200

Successful response

get /workspaces/{workspaceId}/updates
https://api.contactlab.it/hub/v1/workspaces/{workspaceId}/updates

Response samples

application/json
Copy
Expand all Collapse all
{
  • "nextOffset": 0,
  • "updates":
    [
    ]
}

user

User endpoint

Get User info

Gets all the info of user

Authorizations:
OAuth2 (ADMINUSERGUESTTRUSTED_APPLICATIONUNTRUSTED_APPLICATIONPLATFORM_UPDATES)

Responses

200

OK

403

Forbidden

get /me
https://api.contactlab.it/hub/v1/me

Response samples

application/json
Copy
Expand all Collapse all
{
  • "id": "string",
  • "name": "string",
  • "surname": "string",
  • "groups":
    [
    ]
}