By providing a fully documented API reference, we want to enable everyone to maximize the usage of the Marigold Signals & Moments functionality
The Marigold Signals V1 API's are using the basic authentication protocol, i.e. key/secret authentication, using the X-Api-Key Header and Value {key}:{secret}. If you have a Marigold Moments account you are able to create an audience configuration. In this audience configuration a key and secret will be automatically created for you to copy paste. The key is by default disabled. If you want to use that key & secret, press the enable button.
Automatically both SDK (public) & server api key (private) will be created and disabled. You can enable them by using the slider or generated a new one. There is no expiry date on it for now.
Marigold uses the conventional HTTP response codes to indicate successful or failed API requests.
Codes in the 2xx
range indicate success.
Codes in the 4xx
range indicate an input related error or validation restrictions.
Codes in the 5xx
range indicate an error with Marigold Engage servers.
HTTP Status Codes | Description |
---|---|
200 - OK | We found the request resource |
401 - Unauthorized | The access key was incorrect |
5xx - Server errors | Something went wrong on our end. Please try again |
We provide the API specification in the format of OpenApi files which can be found in the openapi/ directory:
Signal tracking record
specversion required | string (Schema Version) Default: "1.0" Spec version. Fixed value. Value: "1.0" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
type required | string (Type) Default: "event.behavior" Classification/Category of event Value: "event.behavior" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
dataschema required | string (Data Schema) Default: "" A reference to the definition of the structure of data | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
id required | string (Event ID) Default: "" Identifier for event. Unique per source. GUID | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
traceId | string (Trace ID) Default: "" Unique ID for tracing request across systems | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
source required | string (Source) Default: "" Platform identifier.' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
time required | string (Time) Default: "" Date and time an event / activity the event relates to | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
event required | string (Event) Default: "booking_complete" Type of event: send, click, punch, ... Use underscore notation Value: "booking_complete" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
class | string (Class) Default: "signal" Event class Value: "signal" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
accountId required | string (Account ID) Default: "" Platform specific account id (tenant id) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | Data (object) or Data (object) (Data) The data Schema | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Any of
|
{- "specversion": "1.0",
- "type": "event.behavior",
- "dataschema": "evt:behavior/v1",
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
- "traceId": "xxxx-xxxx-xxxx-xxxx-xxxx",
- "source": "sgx:uscluster1",
- "time": "2007-04-05T14:32:10.700Z",
- "event": "booking_complete",
- "class": "signal",
- "accountId": "2002",
- "data": {
- "accountName": "Marigold_account",
- "parentAccountId": "2001",
- "organizationId": "2000",
- "organizationBu": "2002",
- "organizationName": "Marigold",
- "objectType": "booking",
- "objectId": "1001",
- "objectName": "New Shop",
- "objectVersion": "2",
- "platformRef": "loy:us1-cust100:console:hostnamexyz",
- "eventAttributes": { },
- "source": "campaign",
- "medium": "email",
- "channel": "Email Message",
- "channelId": "onlineshop.com",
- "ip": "127.0.0.1",
- "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6 Mobile/15E148 Safari/604.1",
- "deviceType": "ios",
- "country": "US",
- "region": "West",
- "city": "Sunnyvale",
- "state": "CA",
- "postalCode": "94089",
- "latitude": 40.4424,
- "longitude": 5.53919,
- "audienceId": "yyyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyy",
- "profileId": "100.123123",
- "profileAltId": "john.doe@example.com",
- "profileExternalId": "john.doe@example.com",
- "profileAttributes": { },
- "internalCustom": { },
- "debug": { }
}
}
Signal tracking records
Array of Booking Complete Event (object) or Booking Start Event (object) or Ecommerce Cart Abandon Event (object) or Ecommerce Cart Add Event (object) or Ecommerce Cart Empty Event (object) or Ecommerce Cart Remove Event (object) or Ecommerce Purchase Event (object) or Game End Event (object) or Game Start Event (object) or Site Browse in Event (object) or Site Sign in Event (object) or Site Sign out Event (object) or Survey Complete Event (object) or Survey Start Event (object) (SignalEvent) | |||||||||||||||||||||||
Array One of
|
{- "signals": [
- {
- "specversion": "1.0",
- "type": "event.behavior",
- "dataschema": "evt:behavior/v1",
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
- "traceId": "xxxx-xxxx-xxxx-xxxx-xxxx",
- "source": "sgx:uscluster1",
- "time": "2007-04-05T14:32:10.700Z",
- "event": "booking_complete",
- "class": "signal",
- "accountId": "2002",
- "data": {
- "accountName": "Marigold_account",
- "parentAccountId": "2001",
- "organizationId": "2000",
- "organizationBu": "2002",
- "organizationName": "Marigold",
- "objectType": "booking",
- "objectId": "1001",
- "objectName": "New Shop",
- "objectVersion": "2",
- "platformRef": "loy:us1-cust100:console:hostnamexyz",
- "eventAttributes": { },
- "source": "campaign",
- "medium": "email",
- "channel": "Email Message",
- "channelId": "onlineshop.com",
- "ip": "127.0.0.1",
- "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6 Mobile/15E148 Safari/604.1",
- "deviceType": "ios",
- "country": "US",
- "region": "West",
- "city": "Sunnyvale",
- "state": "CA",
- "postalCode": "94089",
- "latitude": 40.4424,
- "longitude": 5.53919,
- "audienceId": "yyyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyy",
- "profileId": "100.123123",
- "profileAltId": "john.doe@example.com",
- "profileExternalId": "john.doe@example.com",
- "profileAttributes": { },
- "internalCustom": { },
- "debug": { }
}
}
]
}