Sources

Connect sources and ingest customer data.

Endpoint

Description

/custom-sources/ attribute-values

Connect a custom source and generate new attributes.

/sources/create-attribute

Create a new customer attribute from a specific source

Webhooks

Description

/source/custom

Description lorem ipsom Description lorem ipsom

/destination/custom

Description lorem ipsom Description lorem ipsom

/attributes/create

Description lorem ipsom Description lorem ipsom

/attributes/sync

Description lorem ipsom Description lorem ipsom

/custom-sources/attributes-value

If you want to send ModernLTV data from an internal system, database, or application and/or you want to customize the ingestion pipeline, you can create a custom source. To connect a custom source and automatically generate net new customer attributes, you can call the /custom-sources/attributes-value endpoint.

Before you start you must create the custom source from your dashboard by going "Connections" > click on "+Source" > scroll to bottom and click "+Custom source". Once you complete the steps and create the new custom source, a Bearer token and endpoint URL (includes your client_id and source_name) will be generated, both of which are unique to this custom source.

Request fields

POST

https://app.modernltv.com/billers/{CLIENT_ID}/custom-sources/{SOURCE_NAME}/attribute-values

name

string

The name of the new customer attribute.

object_uuid

string

Unique identifier of the object (e.g. customer attribute) to sync with the destination.

value

multiple

The value of the attribute associated with the object.

curl -X POST
-H "Content-Type: application/json"
-H "Authorization: Bearer {TOKEN}"
-d '
{
"name":"total_revenue",
"object_uuid":"45sdfsadbgq$4",
"value":"150"
}'
https://app.modernltv.com/billers/{CLIENT_ID}/custom-sources/{SOURCE_NAME}/attribute-values

/sources/create-attribute

When you connect a source of customer data, ModernLTV continuously processes the data and automatically generates any net new customer attributes that are identified. These attributes are displayed in your Data Manager where you can activate or modify as you see fit. If you want to explicitly create a new attribute from a specific source, you can declare the attribute by calling the /attributes/create endpoint.

Before you create a new attribute, you will need the Bearer token and endpoint URL that are unique to the source from which you create the new attribute. If you haven't already, you must first connect the source. Otherwise, you can find the token and endpoint URL in the source details page.

Request fields

POST

https://app.modernltv.com/billers/{CLIENT_ID}/sources/{SOURCE_NAME}/create-attribute

name

string

The name of the customer attribute.

data_type

string

The format of the customer attribute.

description

nullable, string

Brief description of the new customer attribute.

curl -X POST
-H "Content-Type: application/json"
-H "Authorization: Bearer {TOKEN}"
-d '
{
"name":"total_revenue",
"data_type":"integer",
"description":"total lifetime revenue collected"
}'
https://app.modernltv.com/billers/{CLIENT_ID}/sources/{SOURCE_NAME}/create-attribute