This API request stores inbound call conversion data, for a specific site using the HTTP method PUT. The request includes the following parameters:
AuthorizationstringRequired The authorization token for accessing the API. The header value should be set to "Bearer {your-access-token}", where {your-access-token} is the access token assigned to the user.
The data containing the conversion information to store/update. The payload should include the following parameters:
StartDateTimeISOstringRequiredThe date and time the call started in ISO 8601 format (yyyy-MM-ddThh:mm:ss) and in UTC time standard.
EndDateTimeISOstringRequiredThe date and time the call ended in ISO 8601 format (yyyy-MM-ddThh:mm:ss) and in UTC time standard.
CalledNumberstringRequiredThe number which was called.
CallerNumberstringRequiredThe number of the person who made the call.
ReferencestringRequiredThe reference of the call. This should be a unique value.
VisitorIdentifierOptionsArrayAn array of visitor identifiers. Each item in the array should include the following parameters:
KeystringRequiredThe key for the visitor identifier. Accepted Keys: EmailAddress, RaId, CookieValue
Please note that when using CookieValue there should be no other visitor identifiers present. EmailAddress and RaId will take precedence over CookieValue.
ValuestringRequiredThe value for the visitor identifier.
If using the CookieValue identifier you must pass the Google Client ID without the GA.1.1 prefix. e.g. GA1.1.101961087.1756204614 should be sent as 101961087.1756204614
RefererLabelstringThe referer label for the call.
AnswerTimestringThe amount of time it took for called number to answer.
ResultstringThe result of the call. E.g. Answered.
MarketingChannelOverridestringThe Marketing Channel Override you would like to provide: See table below for reference values.
SourceCategoryOverridestringThe Source Category Override you would like to provide: See table below for reference values.
| Source | Marketing Channels | |
|---|---|---|
| UnMatched | NotApplicable | |
| Direct | NotApplicable | |
| Offline | NotApplicable | |
| Referral | NotApplicable | |
| NotApplicable | ||
| SMS | NotApplicable | |
| Paid, Organic, Places | ||
| Yahoo | Paid, Organic | |
| Bing | Paid, Organic | |
| Paid, Organic | ||
| Paid, Organic | ||
| Paid, Organic | ||
| Paid, Organic | ||
| Paid, Organic | ||
| YouTube | Paid, Organic | |
| TikTok | Paid, Organic | |
| Paid, Organic | ||
| Snapchat | Paid, Organic | |
| AdRoll | Paid, Organic | |
| DuckDuckGo | Paid, Organic | |
| Outbrain | Paid | |
| StackAdapt | Paid | |
| Awin | Paid | |
| Klaviyo | Paid | |
| Criteo | Paid | |
| Impact | Paid | |
| ShareASale | Paid | |
| Taboola | Paid | |
| TheTradeDesk | Paid | |
| Journey | NotApplicable | Note that this source will join the call onto an existing touchpoint if one is found to match. Other sources will create a new touchpoint. |
| Custom Source | Custom | Use this method when you want to upload to one of your custom sources. Replace Custom Source with the name of your source |
| ChatGPT | Organic |
The {your-access-token} parameter in the authorization header should be replaced with the appropriate access token.
curl -X PUT \ 'https://rest.rulerapi.com/v1/{siteId}/conversion/inboundcall/upload' \ -H 'Authorization: Bearer {your-access-token}' \ -H 'Content-Type: application/json' \ -d { "StartDateTimeISO": "{startDateTimeISO}", "EndDateTimeISO": "{endDateTimeISO}", "CalledNumber": "{calledNumber}", "CallerNumber": "{callerNumber}", "Reference": "{reference}", "VisitorIdentifierOptions": [{ "key": "{key}", "value": "{value}" }], "RefererLabel": "{refererLabel}", "AnswerTime": "{answerTime}", "Result": "{result}", "MarketingChannelOverride" : "{marketingChannelOverride}", "SourceCategoryOverride": "{sourceCategoryOverride}" }