{"info":{"title":"Ours","version":"1.0.0","description":"The Ours Server-Side REST API"},"openapi":"3.0.0","servers":[{"url":"https://api.oursprivacy.com/api/v1"}],"components":{"schemas":{"JsonValue":{"description":"Any JSON value: string, number, boolean, array, object, or null.","anyOf":[{"type":"string","nullable":true},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"$ref":"#/components/schemas/JsonValue"}},{"type":"object","additionalProperties":{"$ref":"#/components/schemas/JsonValue"}}]},"IngestPropertyValueDepth2":{"anyOf":[{"type":"string","nullable":true},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"$ref":"#/components/schemas/JsonValue"}},{"type":"object","additionalProperties":{"$ref":"#/components/schemas/IngestPropertyValueDepth3"}}]},"IngestPropertyValueDepth3":{"anyOf":[{"type":"string","nullable":true},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"$ref":"#/components/schemas/JsonValue"}},{"type":"object","additionalProperties":{"$ref":"#/components/schemas/IngestPropertyValueDepth4"}}]},"IngestPropertyValueDepth4":{"anyOf":[{"type":"string","nullable":true},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"$ref":"#/components/schemas/JsonValue"}},{"type":"object","additionalProperties":{"$ref":"#/components/schemas/IngestPropertyValueDepth5"}}]},"IngestPropertyValueDepth5":{"anyOf":[{"type":"string","nullable":true},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"$ref":"#/components/schemas/JsonValue"}},{"type":"object","additionalProperties":{"$ref":"#/components/schemas/IngestPropertyValueDepth6"}}]},"IngestPropertyValueDepth6":{"anyOf":[{"type":"string","nullable":true},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"$ref":"#/components/schemas/JsonValue"}}]}},"parameters":{}},"paths":{"/track":{"post":{"description":"Track events from your server. Include visitorId, externalId, email, or userProperties.phone_number to associate the event with an existing visitor. Identity resolution runs in priority order: visitorId (direct, no lookup) → externalId → email → userProperties.phone_number. Each lookup runs only if earlier identifiers did not resolve a visitor. Phone matching ignores common formatting and an international + or 00 prefix, but does not infer a country code. If you know both visitorId and externalId, send both. For top-level visitor properties: null clears the existing value, while undefined, omitted fields, and empty strings are ignored. For entries inside custom_properties: null, undefined, and empty strings are all ignored (custom_properties use merge semantics). See https://docs.oursprivacy.com/docs/data-types for details and common pitfalls.","operationId":"track","tags":["OursPrivacy"],"servers":[{"url":"https://api.oursprivacy.com/api/v1"}],"x-stainless-method":"track.event","summary":"Track Events","requestBody":{"description":"The payload to track an event The schema describes canonical JSON inputs. The server also accepts values normalized by the preprocessing described on individual fields.","required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"event":{"type":"string","minLength":1,"maxLength":1000,"description":"The name of the event you're tracking. This must be whitelisted in the Ours dashboard. Leading and trailing whitespace is removed before validation.","pattern":"\\S"},"token":{"type":"string","minLength":1,"maxLength":250,"description":"The token for your Source. You can find this in the dashboard. Leading and trailing whitespace is removed before validation.","pattern":"\\S"},"visitorId":{"type":"string","nullable":true,"minLength":1,"maxLength":400,"description":"The Ours Visitor ID stored in local storage and cookies on your web properties. When present, this is used directly — no lookup by externalId, email, or phone is performed. If you have both a visitorId and an externalId, send both so the event is attached to the right visitor without any lookup overhead. visitorId takes precedence over the deprecated userId alias. Leading and trailing whitespace is removed before validation.","pattern":"\\S"},"userId":{"type":"string","nullable":true,"minLength":1,"maxLength":400,"description":"The Ours Visitor ID stored in local storage and cookies on your web properties. When present, this is used directly — no lookup by externalId, email, or phone is performed. If you have both a visitorId and an externalId, send both so the event is attached to the right visitor without any lookup overhead. visitorId takes precedence over the deprecated userId alias. Leading and trailing whitespace is removed before validation.","deprecated":true,"pattern":"\\S"},"externalId":{"type":"string","nullable":true,"minLength":1,"maxLength":400,"description":"Your system's unique identifier for this user. When visitorId is absent, we search your account for an existing visitor with this externalId. If no match is found, we try email and then userProperties.phone_number before creating a new visitor. If you also have the visitorId from cookies or local storage, send both — it removes the lookup round-trip. Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation.","pattern":"\\S"},"email":{"type":"string","nullable":true,"minLength":1,"maxLength":1000,"description":"The email address of a user. When visitorId is absent and externalId does not resolve a visitor, we search your account for a visitor with this email. If no match is found, we try userProperties.phone_number before creating a new visitor. Leading and trailing whitespace is removed before validation.","pattern":"\\S"},"time":{"type":"number","nullable":true,"description":"The time at which the event occurred in milliseconds since UTC epoch. Times older than one year are recorded as exactly one year ago, and future times as now."},"distinctId":{"type":"string","nullable":true,"minLength":1,"maxLength":400,"description":"A unique identifier for this event used for deduplication. Highly recommended — if omitted, Ours will generate one for you, but supplying your own gives you stronger idempotency guarantees (e.g. a Stripe payment intent ID or your internal order ID). Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation.","pattern":"\\S"},"eventProperties":{"type":"object","nullable":true,"additionalProperties":{"$ref":"#/components/schemas/IngestPropertyValueDepth2"},"description":"Any additional event properties you want to pass along. Use at most 200 nonempty property keys and five object levels. Array contents do not count toward the object-depth limit. Empty keys are removed recursively, arrays are truncated to 250 entries, and top-level numbers outside the safe integer range become strings. After normalization, the serialized JSON must be shorter than 1,048,576 UTF-16 code units.","maxProperties":200},"userProperties":{"type":"object","nullable":true,"properties":{"email":{"type":"string","nullable":true,"maxLength":2000,"description":"Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"first_name":{"type":"string","nullable":true,"maxLength":2000,"description":"Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"last_name":{"type":"string","nullable":true,"maxLength":2000,"description":"Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"gender":{"type":"string","nullable":true,"maxLength":2000,"description":"Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"date_of_birth":{"type":"string","nullable":true,"maxLength":2000,"description":"Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"phone_number":{"allOf":[{"$ref":"#/components/schemas/JsonValue"}]},"city":{"type":"string","nullable":true,"maxLength":2000,"description":"Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"state":{"type":"string","nullable":true,"maxLength":2000,"description":"Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"zip":{"allOf":[{"$ref":"#/components/schemas/JsonValue"}]},"country":{"type":"string","nullable":true,"maxLength":2000,"description":"Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"external_id":{"type":"string","nullable":true,"maxLength":2000,"description":"Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"company_name":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"job_title":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"ip":{"type":"string","nullable":true,"maxLength":2000,"description":"The IP address of the user Leading and trailing whitespace is removed before validation."},"custom_properties":{"type":"object","nullable":true,"additionalProperties":{"$ref":"#/components/schemas/IngestPropertyValueDepth2"},"maxProperties":200,"description":"Use at most 200 nonempty property keys and five object levels. Array contents do not count toward the object-depth limit. Empty keys are removed recursively, arrays are truncated to 250 entries, and top-level numbers outside the safe integer range become strings. After normalization, the serialized JSON must be shorter than 1,048,576 UTF-16 code units."},"consent":{"type":"object","nullable":true,"additionalProperties":{"$ref":"#/components/schemas/IngestPropertyValueDepth2"},"maxProperties":200,"description":"Use at most 200 nonempty property keys and five object levels. Array contents do not count toward the object-depth limit. Empty keys are removed recursively, arrays are truncated to 250 entries, and top-level numbers outside the safe integer range become strings. After normalization, the serialized JSON must be shorter than 1,048,576 UTF-16 code units."},"ad_id":{"type":"string","nullable":true},"adset_id":{"type":"string","nullable":true},"campaign_id":{"type":"string","nullable":true},"alart":{"type":"string","nullable":true},"aleid":{"type":"string","nullable":true},"axwrt":{"type":"string","nullable":true},"affiliatly_v3":{"type":"string","nullable":true},"fbc":{"type":"string","nullable":true},"fbp":{"type":"string","nullable":true},"fbclid":{"type":"string","nullable":true},"gad_source":{"type":"string","nullable":true},"gbraid":{"type":"string","nullable":true},"gclid":{"type":"string","nullable":true},"ndclid":{"type":"string","nullable":true},"oppref":{"type":"string","nullable":true},"dclid":{"type":"string","nullable":true},"qclid":{"type":"string","nullable":true},"msclkid":{"type":"string","nullable":true},"ttclid":{"type":"string","nullable":true},"twclid":{"type":"string","nullable":true},"clickid":{"type":"string","nullable":true},"sccid":{"type":"string","nullable":true},"irclickid":{"type":"string","nullable":true},"im_ref":{"type":"string","nullable":true},"clid":{"type":"string","nullable":true},"sid":{"type":"string","nullable":true,"description":"Non-string input is converted to text before validation; clients should send a string."},"li_fat_id":{"type":"string","nullable":true},"referrer":{"type":"string","nullable":true},"referring_domain":{"type":"string","nullable":true},"user_agent":{"type":"string","nullable":true},"user_agent_full_list":{"type":"string","nullable":true},"utm_campaign":{"type":"string","nullable":true,"description":"Non-string input is converted to text before validation; clients should send a string."},"utm_content":{"type":"string","nullable":true,"description":"Non-string input is converted to text before validation; clients should send a string."},"utm_medium":{"type":"string","nullable":true,"description":"Non-string input is converted to text before validation; clients should send a string."},"utm_name":{"type":"string","nullable":true,"description":"Non-string input is converted to text before validation; clients should send a string."},"utm_source":{"type":"string","nullable":true,"description":"Non-string input is converted to text before validation; clients should send a string."},"utm_term":{"type":"string","nullable":true,"description":"Non-string input is converted to text before validation; clients should send a string."},"wbraid":{"type":"string","nullable":true},"rdt_cid":{"type":"string","nullable":true},"is_bot":{"allOf":[{"$ref":"#/components/schemas/JsonValue"}]},"epik":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"sacid":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"ylpcid":{"type":"string","nullable":true,"maxLength":2000},"adct":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"basis_cid":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"ob_click_id":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"grclid":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"graid":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"beeswax_auction_id":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"admitad_uid":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"_ef_transaction_id":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"viant_click_id":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"ttd_impression_id":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"viant_impression_id":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"katalys_transaction_id":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"katalys_offer_id":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"katalys_publisher_id":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"gc_ref_id":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."}},"description":"Properties to set on the visitor. (optional) You can also update these properties via the identify endpoint."},"defaultProperties":{"type":"object","nullable":true,"properties":{"is_bot":{"description":"Whether we have detected that the user is a bot. This is set automatically by the Ours server primarily for events tracked through the web SDK.","allOf":[{"$ref":"#/components/schemas/JsonValue"}]},"ad_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The ad id detected in the session. This is set by the web sdk automatically. Leading and trailing whitespace is removed before validation."},"adset_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The adset id detected in the session. This is set by the web sdk automatically. Leading and trailing whitespace is removed before validation."},"campaign_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The campaign id detected in the session. This is set by the web sdk automatically. Leading and trailing whitespace is removed before validation."},"ours_ad":{"type":"string","nullable":true,"maxLength":2000,"description":"The Ours ad tag from the ours_ad query parameter, as platform.campaign.adset.ad. Ex: meta.120210.120211.120212 Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"ad_touch_platform":{"type":"string","nullable":true,"maxLength":2000,"description":"The ad platform resolved by the Ours server from the ad tag, ad ids, and click ids on this event. Ex: meta, google Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"ad_touch_campaign_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The platform campaign id resolved by the Ours server for this event. Ex: 120210 Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"ad_touch_adset_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The platform ad set or ad group id resolved by the Ours server for this event. Ex: 120211 Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"ad_touch_ad_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The platform ad id resolved by the Ours server for this event. Ex: 120212 Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"ad_touch_source":{"type":"string","nullable":true,"maxLength":2000,"description":"Which signal the Ours server used to resolve the ad touch: ours_ad, url_ids, gad_campaignid, utm_id, or click_id. Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"alart":{"type":"string","nullable":true,"maxLength":2000,"description":"The AppLovin alart query parameter. Ex: alart123 Leading and trailing whitespace is removed before validation."},"aleid":{"type":"string","nullable":true,"maxLength":2000,"description":"The AppLovin aleid query parameter. Ex: aleid123 Leading and trailing whitespace is removed before validation."},"axwrt":{"type":"string","nullable":true,"maxLength":2000,"description":"The AppLovin pixel cookie value (_axwrt). Web-only. Leading and trailing whitespace is removed before validation."},"affiliatly_v3":{"type":"string","nullable":true,"maxLength":2000,"description":"The raw Affiliatly tracking cookie value (affiliatly_v3), set by the Affiliatly script when a visitor lands from an affiliate link. Web-only. Ex: id_hash=abc&id_user=123&aff_uid=45 Leading and trailing whitespace is removed before validation."},"encoding":{"type":"string","nullable":true,"maxLength":2000,"description":"The browser's encoding. Ex: UTF-8 Leading and trailing whitespace is removed before validation."},"browser_name":{"type":"string","nullable":true,"maxLength":2000,"description":"The name of the browser. Ex: Chrome Leading and trailing whitespace is removed before validation."},"browser_version":{"type":"string","nullable":true,"maxLength":2000,"description":"The version of the browser. Ex: 114.0 Leading and trailing whitespace is removed before validation."},"cpu_architecture":{"type":"string","nullable":true,"maxLength":2000,"description":"The architecture of the CPU. Ex: amd64 Leading and trailing whitespace is removed before validation."},"device_type":{"type":"string","nullable":true,"maxLength":2000,"description":"The type of device the user is using. Ex: mobile Leading and trailing whitespace is removed before validation."},"device_model":{"type":"string","nullable":true,"maxLength":2000,"description":"The model of the device. Ex: iPhone Leading and trailing whitespace is removed before validation."},"device_vendor":{"type":"string","nullable":true,"maxLength":2000,"description":"The vendor of the device. Ex: Apple Leading and trailing whitespace is removed before validation."},"engine_name":{"type":"string","nullable":true,"maxLength":2000,"description":"The name of the browser engine. Ex: Blink Leading and trailing whitespace is removed before validation."},"engine_version":{"type":"string","nullable":true,"maxLength":2000,"description":"The version of the browser engine. Ex: 114.0 Leading and trailing whitespace is removed before validation."},"os_name":{"type":"string","nullable":true,"maxLength":2000,"description":"The name of the operating system. Ex: Windows Leading and trailing whitespace is removed before validation."},"os_version":{"type":"string","nullable":true,"maxLength":2000,"description":"The version of the operating system. Ex: 10.0 Leading and trailing whitespace is removed before validation."},"browser_language":{"type":"string","nullable":true,"maxLength":2000,"description":"The language of the browser, lowercased. Ex: en-us Leading and trailing whitespace is removed before validation."},"current_url":{"type":"string","nullable":true,"description":"The full url (including query params) of the current page Leading and trailing whitespace is removed before validation."},"webview":{"type":"boolean","nullable":true,"description":"Whether the user is in a webview. Ex: true"},"iframe":{"type":"boolean","nullable":true,"description":"Whether the user is in an iframe. Ex: true"},"sessionCount":{"type":"number","nullable":true,"description":"The number of sessions the user has had. Ex: 3"},"activeDuration":{"type":"number","nullable":true,"description":"The total time in milliseconds this tab has been visible since the page loaded"},"duration":{"type":"number","nullable":true,"description":"The time in milliseconds since the previous event on this page, or since the web SDK loaded for the first event. Restarts when a hidden tab becomes visible again."},"epik":{"type":"string","nullable":true,"maxLength":2000,"description":"The Pinterest Click ID. Ex: epik456 Leading and trailing whitespace is removed before validation."},"sacid":{"type":"string","nullable":true,"maxLength":2000,"description":"The StackAdapt Tracking ID. Ex: sacid123 Leading and trailing whitespace is removed before validation."},"ylpcid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Yelp Click ID from the landing URL, sent unchanged and unhashed."},"adct":{"type":"string","nullable":true,"maxLength":2000,"description":"The AdRoll Click ID (adct) from the landing URL. Ex: adct123 Leading and trailing whitespace is removed before validation."},"basis_cid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Basis DSP Click ID. Ex: basis_cid123 Leading and trailing whitespace is removed before validation."},"ob_click_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The Outbrain click ID, captured from the `ob_click_id` URL parameter (Outbrain `{{ob_click_id}}` macro) on the landing page. Ex: ob_click_abc123 Leading and trailing whitespace is removed before validation."},"grclid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Gravity click ID, captured from the `grclid` URL parameter that Gravity (trygravity.com) appends to ad click-through URLs on the landing page. Ex: grclid-abc123 Leading and trailing whitespace is removed before validation."},"graid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Gravity attribution ID, captured from the `graid` URL parameter on the landing page. Gravity resolves it to the campaign, publisher, and ad IDs server-side. Ex: graid-abc123 Leading and trailing whitespace is removed before validation."},"beeswax_auction_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The Beeswax (FreeWheel Buyer Cloud) auction ID, captured from the `{{AUCTION_ID}}` macro on creative click URLs. Ex: bx-auc-abc123 Leading and trailing whitespace is removed before validation."},"admitad_uid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Admitad (Mitgo) affiliate Click ID. Ex: admitad_uid_abc123 Leading and trailing whitespace is removed before validation."},"_ef_transaction_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The Everflow affiliate Click (Transaction) ID, captured from the `_ef_transaction_id` URL parameter. Ex: ef_click_abc123 Leading and trailing whitespace is removed before validation."},"viant_click_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The Viant (Adelphic) Click ID, captured from the `viant_click_id` URL parameter (Viant `${ADELPHIC_CLICKID}` macro). Sent as `xid` on Viant postbacks. Ex: viant_click_abc123 Leading and trailing whitespace is removed before validation."},"ttd_impression_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The Trade Desk impression ID, captured from a configured ttd_impression_id URL parameter using the %%TTD_IMPRESSIONID%% creative macro. Sent as imp on conversions. Leading and trailing whitespace is removed before validation."},"katalys_transaction_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The Katalys click (transaction) ID. The Web SDK stores the `transaction_id` landing-page parameter under this name only when the link also carries `publisher_id`, so another network's `transaction_id` is not captured. Ex: ka_tx_abc123 Leading and trailing whitespace is removed before validation."},"katalys_offer_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The Katalys offer ID. The Web SDK stores the `offer_id` landing-page parameter under this name only when the link also carries `publisher_id`. Ex: 1001 Leading and trailing whitespace is removed before validation."},"katalys_publisher_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The Katalys publisher (affiliate) ID, captured from the `publisher_id` landing-page parameter on Katalys links. Sent to Katalys as `aff_id`. Ex: 2002 Leading and trailing whitespace is removed before validation."},"gc_ref_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The Growth Channel tracking ID, captured from the `gc_ref_id` URL parameter. Advertisers add `?gc_ref_id={TRACKING_ID}` to their Growth Channel landing URLs. Sent as `ref_id` on Growth Channel postbacks. Ex: gc_ref_abc123 Leading and trailing whitespace is removed before validation."},"viant_impression_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The Viant (Adelphic) Impression ID, captured from the `viant_impression_id` URL parameter (Viant `${ADELPHIC_IMPRESSIONID}` macro). Sent as `imp_id` on Viant postbacks for post-view attribution. Ex: viant_imp_abc123 Leading and trailing whitespace is removed before validation."},"fbc":{"type":"string","nullable":true,"maxLength":2000,"description":"Facebook Click ID with prefix format for Conversions API tracking. Ex: fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890 Leading and trailing whitespace is removed before validation."},"fbclid":{"type":"string","nullable":true,"maxLength":2000,"description":"Raw Facebook Click ID query parameter without prefix from ad clicks. Ex: AbCdEfGhIjKlMnOpQrStUvWxYz1234567890 Leading and trailing whitespace is removed before validation."},"fbp":{"type":"string","nullable":true,"maxLength":2000,"description":"Facebook Browser ID parameter for identifying browsers and attributing events. Ex: fb.1.1554763741205.1098115397 Leading and trailing whitespace is removed before validation."},"gad_source":{"type":"string","nullable":true,"maxLength":2000,"description":"The Google Ad Source. Ex: google Leading and trailing whitespace is removed before validation."},"gad_campaignid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Google Ads campaign id that Google auto-tagging appends to ad clicks. Ex: 21780011223 Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"gbraid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Google Braid ID. Ex: gbraid123 Leading and trailing whitespace is removed before validation."},"gclid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Google Click ID. Ex: gclid123 Leading and trailing whitespace is removed before validation."},"ndclid":{"type":"string","nullable":true,"maxLength":2000,"description":"The NextDoor Click ID. Ex: ndclid123 Leading and trailing whitespace is removed before validation."},"oppref":{"type":"string","nullable":true,"maxLength":2000,"description":"The OpenAI Ads privacy-preserving reference, captured from the `oppref` URL parameter on landing pages (the OpenAI Pixel also stores it in a `__oppref` cookie). Sent to OpenAI Ads on Conversions API events for attribution. Ex: oppref_abc Leading and trailing whitespace is removed before validation."},"dclid":{"type":"string","nullable":true,"maxLength":2000,"description":"The DoubleClick Click ID. Ex: dclid123 Leading and trailing whitespace is removed before validation."},"qclid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Quora Click ID. Ex: qclid123 Leading and trailing whitespace is removed before validation."},"rdt_cid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Reddit Click ID. Ex: rdt_cid123 Leading and trailing whitespace is removed before validation."},"host":{"type":"string","nullable":true,"maxLength":2000,"description":"The host of the current page. Ex: example.com Leading and trailing whitespace is removed before validation."},"ip":{"type":"string","nullable":true,"maxLength":2000,"description":"The IP address of the user. Ex: 127.0.0.1 Leading and trailing whitespace is removed before validation."},"msclkid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Microsoft Click ID. Ex: msclkid123 Leading and trailing whitespace is removed before validation."},"li_fat_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The LinkedIn Click ID. Ex: li_fat_id123 Leading and trailing whitespace is removed before validation."},"pathname":{"type":"string","nullable":true,"maxLength":2000,"description":"The pathname of the current page. Ex: /home Leading and trailing whitespace is removed before validation."},"referrer":{"type":"string","nullable":true,"maxLength":5000,"description":"The referrer URL of the current page Leading and trailing whitespace is removed before validation."},"referring_domain":{"type":"string","nullable":true,"maxLength":5000,"description":"The referring domain of the current page Leading and trailing whitespace is removed before validation."},"screen_height":{"type":"number","nullable":true,"description":"The height of the screen. Ex: 1080"},"screen_width":{"type":"number","nullable":true,"description":"The width of the screen. Ex: 1920"},"title":{"type":"string","nullable":true,"maxLength":2000,"description":"The title of the current page Leading and trailing whitespace is removed before validation."},"user_agent":{"type":"string","nullable":true,"description":"The user agent of the browser Leading and trailing whitespace is removed before validation."},"utm_campaign":{"type":"string","nullable":true,"maxLength":2000,"description":"The UTM Campaign. The web SDK automatically captures this from the query params. Leading and trailing whitespace is removed before validation."},"utm_content":{"type":"string","nullable":true,"maxLength":2000,"description":"The UTM Content. The web SDK automatically captures this from the query params. Leading and trailing whitespace is removed before validation."},"utm_medium":{"type":"string","nullable":true,"maxLength":2000,"description":"The UTM Medium. The web SDK automatically captures this from the query params. Leading and trailing whitespace is removed before validation."},"utm_name":{"type":"string","nullable":true,"maxLength":2000,"description":"The UTM Name. The web SDK automatically captures this from the query params. Leading and trailing whitespace is removed before validation."},"ttclid":{"type":"string","nullable":true,"maxLength":2000,"description":"The TikTok Click ID. Ex: ttclid123 Leading and trailing whitespace is removed before validation."},"twclid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Twitter Click ID. Ex: twclid123 Leading and trailing whitespace is removed before validation."},"clickid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Click ID. Ex: clickid123 Leading and trailing whitespace is removed before validation."},"clid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Generic Click ID. Ex: clid123 Leading and trailing whitespace is removed before validation."},"sccid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Snapchat Click ID. Ex: sccid123 Leading and trailing whitespace is removed before validation."},"irclickid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Impact Click ID. Ex: irclickid123 Leading and trailing whitespace is removed before validation."},"im_ref":{"type":"string","nullable":true,"maxLength":2000,"description":"The Impact Click ID reference. Ex: im_ref123 Leading and trailing whitespace is removed before validation."},"utm_source":{"type":"string","nullable":true,"maxLength":2000,"description":"The UTM Source. The web SDK automatically captures this from the query params. Leading and trailing whitespace is removed before validation."},"utm_term":{"type":"string","nullable":true,"maxLength":2000,"description":"The UTM Term. The web SDK automatically captures this from the query params. Leading and trailing whitespace is removed before validation."},"utm_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The UTM ID. The web SDK automatically captures this from the query params. Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"version":{"type":"string","nullable":true,"maxLength":2000,"description":"The SDK version (e.g., web SDK or ingest-sdk-* via generated SDK headers) Leading and trailing whitespace is removed before validation."},"wbraid":{"type":"string","nullable":true,"maxLength":2000,"description":"The WBRAID Identifier. The web SDK automatically captures this from the query params. Leading and trailing whitespace is removed before validation."},"uafvl":{"type":"string","nullable":true,"maxLength":2000,"description":"The browser brands and full versions from User-Agent Client Hints, as brand;version pairs separated by |. Leading and trailing whitespace is removed before validation."},"page_hash":{"type":"number","nullable":true,"description":"A random set of numbers for the page load"},"sid":{"type":"string","nullable":true,"maxLength":2000,"description":"The session ID as assigned automatically by the web SDK. This is required for session replay Leading and trailing whitespace is removed before validation."},"new_s":{"type":"boolean","nullable":true,"description":"Deprecated"},"fv":{"type":"boolean","nullable":true,"description":"Deprecated"},"sr":{"type":"string","nullable":true,"maxLength":2000,"description":"The screen resolution as width x height in pixels. Ex: 1920x1080 Leading and trailing whitespace is removed before validation."},"received_at":{"type":"string","nullable":true,"description":"The time an Ours server received the event, in ISO 8601 UTC"}},"description":"These properties are used throughout the Ours app to pass known values onto destinations"},"identityContext":{"type":"object","nullable":true,"properties":{"ip":{"type":"string","description":"The end-user IP address (not the server IP)."},"userAgent":{"type":"string","description":"The end-user User-Agent string (not the server UA)."}},"required":["ip","userAgent"],"description":"Deprecated and ignored. Accepted so existing clients keep working.","deprecated":true}},"required":["event","token"]}}}},"responses":{"200":{"description":"Success - your event was sent to our servers","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]}},"required":["success"]}}}},"400":{"description":"Bad Request - Something about the body of your request is invalid. Please update your payload and try again.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]}},"required":["success"]}}}},"401":{"description":"Unauthorized - you are not authorized to send events to Ours. Please contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]}},"required":["success"]}}}},"500":{"description":"Internal Server Error.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]}},"required":["success"]}}}}}}},"/batch":{"post":{"description":"Send multiple `/track`-shaped events in a single request. This endpoint is intended for replay, backfill, and asynchronous bulk delivery. The top-level token is authorized once for the full batch. Each batch row must include `distinctId`, and mixed validation or queue outcomes are reported per row.","operationId":"batch","tags":["OursPrivacy"],"servers":[{"url":"https://api.oursprivacy.com/api/v1"}],"x-stainless-method":"batch.create","summary":"Batch Events","requestBody":{"description":"A token plus an array of `/track`-compatible events. The schema describes canonical JSON inputs. The server also accepts values normalized by the preprocessing described on individual fields.","required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":1,"maxLength":250,"description":"The token for your Source. You can find this in the dashboard. Leading and trailing whitespace is removed before validation.","pattern":"\\S"},"events":{"type":"array","items":{"type":"object","properties":{"event":{"type":"string","minLength":1,"maxLength":1000,"description":"The name of the event you're tracking. This must be whitelisted in the Ours dashboard. Leading and trailing whitespace is removed before validation.","pattern":"\\S"},"visitorId":{"type":"string","nullable":true,"minLength":1,"maxLength":400,"description":"The Ours Visitor ID stored in local storage and cookies on your web properties. When present, this is used directly — no lookup by externalId, email, or phone is performed. If you have both a visitorId and an externalId, send both so the event is attached to the right visitor without any lookup overhead. visitorId takes precedence over the deprecated userId alias. Leading and trailing whitespace is removed before validation.","pattern":"\\S"},"userId":{"type":"string","nullable":true,"minLength":1,"maxLength":400,"description":"The Ours Visitor ID stored in local storage and cookies on your web properties. When present, this is used directly — no lookup by externalId, email, or phone is performed. If you have both a visitorId and an externalId, send both so the event is attached to the right visitor without any lookup overhead. visitorId takes precedence over the deprecated userId alias. Leading and trailing whitespace is removed before validation.","deprecated":true,"pattern":"\\S"},"externalId":{"type":"string","nullable":true,"minLength":1,"maxLength":400,"description":"Your system's unique identifier for this user. When visitorId is absent, we search your account for an existing visitor with this externalId. If no match is found, we try email and then userProperties.phone_number before creating a new visitor. If you also have the visitorId from cookies or local storage, send both — it removes the lookup round-trip. Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation.","pattern":"\\S"},"email":{"type":"string","nullable":true,"minLength":1,"maxLength":1000,"description":"The email address of a user. When visitorId is absent and externalId does not resolve a visitor, we search your account for a visitor with this email. If no match is found, we try userProperties.phone_number before creating a new visitor. Leading and trailing whitespace is removed before validation.","pattern":"\\S"},"time":{"type":"number","nullable":true,"description":"The time at which the event occurred in milliseconds since UTC epoch. Times older than one year are recorded as exactly one year ago, and future times as now."},"eventProperties":{"type":"object","nullable":true,"additionalProperties":{"$ref":"#/components/schemas/IngestPropertyValueDepth2"},"description":"Any additional event properties you want to pass along. Use at most 200 nonempty property keys and five object levels. Array contents do not count toward the object-depth limit. Empty keys are removed recursively, arrays are truncated to 250 entries, and top-level numbers outside the safe integer range become strings. After normalization, the serialized JSON must be shorter than 1,048,576 UTF-16 code units.","maxProperties":200},"userProperties":{"type":"object","nullable":true,"properties":{"email":{"type":"string","nullable":true,"maxLength":2000,"description":"Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"first_name":{"type":"string","nullable":true,"maxLength":2000,"description":"Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"last_name":{"type":"string","nullable":true,"maxLength":2000,"description":"Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"gender":{"type":"string","nullable":true,"maxLength":2000,"description":"Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"date_of_birth":{"type":"string","nullable":true,"maxLength":2000,"description":"Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"phone_number":{"allOf":[{"$ref":"#/components/schemas/JsonValue"}]},"city":{"type":"string","nullable":true,"maxLength":2000,"description":"Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"state":{"type":"string","nullable":true,"maxLength":2000,"description":"Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"zip":{"allOf":[{"$ref":"#/components/schemas/JsonValue"}]},"country":{"type":"string","nullable":true,"maxLength":2000,"description":"Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"external_id":{"type":"string","nullable":true,"maxLength":2000,"description":"Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"company_name":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"job_title":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"ip":{"type":"string","nullable":true,"maxLength":2000,"description":"The IP address of the user Leading and trailing whitespace is removed before validation."},"custom_properties":{"type":"object","nullable":true,"additionalProperties":{"$ref":"#/components/schemas/IngestPropertyValueDepth2"},"maxProperties":200,"description":"Use at most 200 nonempty property keys and five object levels. Array contents do not count toward the object-depth limit. Empty keys are removed recursively, arrays are truncated to 250 entries, and top-level numbers outside the safe integer range become strings. After normalization, the serialized JSON must be shorter than 1,048,576 UTF-16 code units."},"consent":{"type":"object","nullable":true,"additionalProperties":{"$ref":"#/components/schemas/IngestPropertyValueDepth2"},"maxProperties":200,"description":"Use at most 200 nonempty property keys and five object levels. Array contents do not count toward the object-depth limit. Empty keys are removed recursively, arrays are truncated to 250 entries, and top-level numbers outside the safe integer range become strings. After normalization, the serialized JSON must be shorter than 1,048,576 UTF-16 code units."},"ad_id":{"type":"string","nullable":true},"adset_id":{"type":"string","nullable":true},"campaign_id":{"type":"string","nullable":true},"alart":{"type":"string","nullable":true},"aleid":{"type":"string","nullable":true},"axwrt":{"type":"string","nullable":true},"affiliatly_v3":{"type":"string","nullable":true},"fbc":{"type":"string","nullable":true},"fbp":{"type":"string","nullable":true},"fbclid":{"type":"string","nullable":true},"gad_source":{"type":"string","nullable":true},"gbraid":{"type":"string","nullable":true},"gclid":{"type":"string","nullable":true},"ndclid":{"type":"string","nullable":true},"oppref":{"type":"string","nullable":true},"dclid":{"type":"string","nullable":true},"qclid":{"type":"string","nullable":true},"msclkid":{"type":"string","nullable":true},"ttclid":{"type":"string","nullable":true},"twclid":{"type":"string","nullable":true},"clickid":{"type":"string","nullable":true},"sccid":{"type":"string","nullable":true},"irclickid":{"type":"string","nullable":true},"im_ref":{"type":"string","nullable":true},"clid":{"type":"string","nullable":true},"sid":{"type":"string","nullable":true,"description":"Non-string input is converted to text before validation; clients should send a string."},"li_fat_id":{"type":"string","nullable":true},"referrer":{"type":"string","nullable":true},"referring_domain":{"type":"string","nullable":true},"user_agent":{"type":"string","nullable":true},"user_agent_full_list":{"type":"string","nullable":true},"utm_campaign":{"type":"string","nullable":true,"description":"Non-string input is converted to text before validation; clients should send a string."},"utm_content":{"type":"string","nullable":true,"description":"Non-string input is converted to text before validation; clients should send a string."},"utm_medium":{"type":"string","nullable":true,"description":"Non-string input is converted to text before validation; clients should send a string."},"utm_name":{"type":"string","nullable":true,"description":"Non-string input is converted to text before validation; clients should send a string."},"utm_source":{"type":"string","nullable":true,"description":"Non-string input is converted to text before validation; clients should send a string."},"utm_term":{"type":"string","nullable":true,"description":"Non-string input is converted to text before validation; clients should send a string."},"wbraid":{"type":"string","nullable":true},"rdt_cid":{"type":"string","nullable":true},"is_bot":{"allOf":[{"$ref":"#/components/schemas/JsonValue"}]},"epik":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"sacid":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"ylpcid":{"type":"string","nullable":true,"maxLength":2000},"adct":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"basis_cid":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"ob_click_id":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"grclid":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"graid":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"beeswax_auction_id":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"admitad_uid":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"_ef_transaction_id":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"viant_click_id":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"ttd_impression_id":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"viant_impression_id":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"katalys_transaction_id":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"katalys_offer_id":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"katalys_publisher_id":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"gc_ref_id":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."}},"description":"Properties to set on the visitor. (optional) You can also update these properties via the identify endpoint."},"defaultProperties":{"type":"object","nullable":true,"properties":{"is_bot":{"description":"Whether we have detected that the user is a bot. This is set automatically by the Ours server primarily for events tracked through the web SDK.","allOf":[{"$ref":"#/components/schemas/JsonValue"}]},"ad_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The ad id detected in the session. This is set by the web sdk automatically. Leading and trailing whitespace is removed before validation."},"adset_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The adset id detected in the session. This is set by the web sdk automatically. Leading and trailing whitespace is removed before validation."},"campaign_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The campaign id detected in the session. This is set by the web sdk automatically. Leading and trailing whitespace is removed before validation."},"ours_ad":{"type":"string","nullable":true,"maxLength":2000,"description":"The Ours ad tag from the ours_ad query parameter, as platform.campaign.adset.ad. Ex: meta.120210.120211.120212 Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"ad_touch_platform":{"type":"string","nullable":true,"maxLength":2000,"description":"The ad platform resolved by the Ours server from the ad tag, ad ids, and click ids on this event. Ex: meta, google Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"ad_touch_campaign_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The platform campaign id resolved by the Ours server for this event. Ex: 120210 Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"ad_touch_adset_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The platform ad set or ad group id resolved by the Ours server for this event. Ex: 120211 Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"ad_touch_ad_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The platform ad id resolved by the Ours server for this event. Ex: 120212 Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"ad_touch_source":{"type":"string","nullable":true,"maxLength":2000,"description":"Which signal the Ours server used to resolve the ad touch: ours_ad, url_ids, gad_campaignid, utm_id, or click_id. Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"alart":{"type":"string","nullable":true,"maxLength":2000,"description":"The AppLovin alart query parameter. Ex: alart123 Leading and trailing whitespace is removed before validation."},"aleid":{"type":"string","nullable":true,"maxLength":2000,"description":"The AppLovin aleid query parameter. Ex: aleid123 Leading and trailing whitespace is removed before validation."},"axwrt":{"type":"string","nullable":true,"maxLength":2000,"description":"The AppLovin pixel cookie value (_axwrt). Web-only. Leading and trailing whitespace is removed before validation."},"affiliatly_v3":{"type":"string","nullable":true,"maxLength":2000,"description":"The raw Affiliatly tracking cookie value (affiliatly_v3), set by the Affiliatly script when a visitor lands from an affiliate link. Web-only. Ex: id_hash=abc&id_user=123&aff_uid=45 Leading and trailing whitespace is removed before validation."},"encoding":{"type":"string","nullable":true,"maxLength":2000,"description":"The browser's encoding. Ex: UTF-8 Leading and trailing whitespace is removed before validation."},"browser_name":{"type":"string","nullable":true,"maxLength":2000,"description":"The name of the browser. Ex: Chrome Leading and trailing whitespace is removed before validation."},"browser_version":{"type":"string","nullable":true,"maxLength":2000,"description":"The version of the browser. Ex: 114.0 Leading and trailing whitespace is removed before validation."},"cpu_architecture":{"type":"string","nullable":true,"maxLength":2000,"description":"The architecture of the CPU. Ex: amd64 Leading and trailing whitespace is removed before validation."},"device_type":{"type":"string","nullable":true,"maxLength":2000,"description":"The type of device the user is using. Ex: mobile Leading and trailing whitespace is removed before validation."},"device_model":{"type":"string","nullable":true,"maxLength":2000,"description":"The model of the device. Ex: iPhone Leading and trailing whitespace is removed before validation."},"device_vendor":{"type":"string","nullable":true,"maxLength":2000,"description":"The vendor of the device. Ex: Apple Leading and trailing whitespace is removed before validation."},"engine_name":{"type":"string","nullable":true,"maxLength":2000,"description":"The name of the browser engine. Ex: Blink Leading and trailing whitespace is removed before validation."},"engine_version":{"type":"string","nullable":true,"maxLength":2000,"description":"The version of the browser engine. Ex: 114.0 Leading and trailing whitespace is removed before validation."},"os_name":{"type":"string","nullable":true,"maxLength":2000,"description":"The name of the operating system. Ex: Windows Leading and trailing whitespace is removed before validation."},"os_version":{"type":"string","nullable":true,"maxLength":2000,"description":"The version of the operating system. Ex: 10.0 Leading and trailing whitespace is removed before validation."},"browser_language":{"type":"string","nullable":true,"maxLength":2000,"description":"The language of the browser, lowercased. Ex: en-us Leading and trailing whitespace is removed before validation."},"current_url":{"type":"string","nullable":true,"description":"The full url (including query params) of the current page Leading and trailing whitespace is removed before validation."},"webview":{"type":"boolean","nullable":true,"description":"Whether the user is in a webview. Ex: true"},"iframe":{"type":"boolean","nullable":true,"description":"Whether the user is in an iframe. Ex: true"},"sessionCount":{"type":"number","nullable":true,"description":"The number of sessions the user has had. Ex: 3"},"activeDuration":{"type":"number","nullable":true,"description":"The total time in milliseconds this tab has been visible since the page loaded"},"duration":{"type":"number","nullable":true,"description":"The time in milliseconds since the previous event on this page, or since the web SDK loaded for the first event. Restarts when a hidden tab becomes visible again."},"epik":{"type":"string","nullable":true,"maxLength":2000,"description":"The Pinterest Click ID. Ex: epik456 Leading and trailing whitespace is removed before validation."},"sacid":{"type":"string","nullable":true,"maxLength":2000,"description":"The StackAdapt Tracking ID. Ex: sacid123 Leading and trailing whitespace is removed before validation."},"ylpcid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Yelp Click ID from the landing URL, sent unchanged and unhashed."},"adct":{"type":"string","nullable":true,"maxLength":2000,"description":"The AdRoll Click ID (adct) from the landing URL. Ex: adct123 Leading and trailing whitespace is removed before validation."},"basis_cid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Basis DSP Click ID. Ex: basis_cid123 Leading and trailing whitespace is removed before validation."},"ob_click_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The Outbrain click ID, captured from the `ob_click_id` URL parameter (Outbrain `{{ob_click_id}}` macro) on the landing page. Ex: ob_click_abc123 Leading and trailing whitespace is removed before validation."},"grclid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Gravity click ID, captured from the `grclid` URL parameter that Gravity (trygravity.com) appends to ad click-through URLs on the landing page. Ex: grclid-abc123 Leading and trailing whitespace is removed before validation."},"graid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Gravity attribution ID, captured from the `graid` URL parameter on the landing page. Gravity resolves it to the campaign, publisher, and ad IDs server-side. Ex: graid-abc123 Leading and trailing whitespace is removed before validation."},"beeswax_auction_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The Beeswax (FreeWheel Buyer Cloud) auction ID, captured from the `{{AUCTION_ID}}` macro on creative click URLs. Ex: bx-auc-abc123 Leading and trailing whitespace is removed before validation."},"admitad_uid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Admitad (Mitgo) affiliate Click ID. Ex: admitad_uid_abc123 Leading and trailing whitespace is removed before validation."},"_ef_transaction_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The Everflow affiliate Click (Transaction) ID, captured from the `_ef_transaction_id` URL parameter. Ex: ef_click_abc123 Leading and trailing whitespace is removed before validation."},"viant_click_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The Viant (Adelphic) Click ID, captured from the `viant_click_id` URL parameter (Viant `${ADELPHIC_CLICKID}` macro). Sent as `xid` on Viant postbacks. Ex: viant_click_abc123 Leading and trailing whitespace is removed before validation."},"ttd_impression_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The Trade Desk impression ID, captured from a configured ttd_impression_id URL parameter using the %%TTD_IMPRESSIONID%% creative macro. Sent as imp on conversions. Leading and trailing whitespace is removed before validation."},"katalys_transaction_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The Katalys click (transaction) ID. The Web SDK stores the `transaction_id` landing-page parameter under this name only when the link also carries `publisher_id`, so another network's `transaction_id` is not captured. Ex: ka_tx_abc123 Leading and trailing whitespace is removed before validation."},"katalys_offer_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The Katalys offer ID. The Web SDK stores the `offer_id` landing-page parameter under this name only when the link also carries `publisher_id`. Ex: 1001 Leading and trailing whitespace is removed before validation."},"katalys_publisher_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The Katalys publisher (affiliate) ID, captured from the `publisher_id` landing-page parameter on Katalys links. Sent to Katalys as `aff_id`. Ex: 2002 Leading and trailing whitespace is removed before validation."},"gc_ref_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The Growth Channel tracking ID, captured from the `gc_ref_id` URL parameter. Advertisers add `?gc_ref_id={TRACKING_ID}` to their Growth Channel landing URLs. Sent as `ref_id` on Growth Channel postbacks. Ex: gc_ref_abc123 Leading and trailing whitespace is removed before validation."},"viant_impression_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The Viant (Adelphic) Impression ID, captured from the `viant_impression_id` URL parameter (Viant `${ADELPHIC_IMPRESSIONID}` macro). Sent as `imp_id` on Viant postbacks for post-view attribution. Ex: viant_imp_abc123 Leading and trailing whitespace is removed before validation."},"fbc":{"type":"string","nullable":true,"maxLength":2000,"description":"Facebook Click ID with prefix format for Conversions API tracking. Ex: fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890 Leading and trailing whitespace is removed before validation."},"fbclid":{"type":"string","nullable":true,"maxLength":2000,"description":"Raw Facebook Click ID query parameter without prefix from ad clicks. Ex: AbCdEfGhIjKlMnOpQrStUvWxYz1234567890 Leading and trailing whitespace is removed before validation."},"fbp":{"type":"string","nullable":true,"maxLength":2000,"description":"Facebook Browser ID parameter for identifying browsers and attributing events. Ex: fb.1.1554763741205.1098115397 Leading and trailing whitespace is removed before validation."},"gad_source":{"type":"string","nullable":true,"maxLength":2000,"description":"The Google Ad Source. Ex: google Leading and trailing whitespace is removed before validation."},"gad_campaignid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Google Ads campaign id that Google auto-tagging appends to ad clicks. Ex: 21780011223 Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"gbraid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Google Braid ID. Ex: gbraid123 Leading and trailing whitespace is removed before validation."},"gclid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Google Click ID. Ex: gclid123 Leading and trailing whitespace is removed before validation."},"ndclid":{"type":"string","nullable":true,"maxLength":2000,"description":"The NextDoor Click ID. Ex: ndclid123 Leading and trailing whitespace is removed before validation."},"oppref":{"type":"string","nullable":true,"maxLength":2000,"description":"The OpenAI Ads privacy-preserving reference, captured from the `oppref` URL parameter on landing pages (the OpenAI Pixel also stores it in a `__oppref` cookie). Sent to OpenAI Ads on Conversions API events for attribution. Ex: oppref_abc Leading and trailing whitespace is removed before validation."},"dclid":{"type":"string","nullable":true,"maxLength":2000,"description":"The DoubleClick Click ID. Ex: dclid123 Leading and trailing whitespace is removed before validation."},"qclid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Quora Click ID. Ex: qclid123 Leading and trailing whitespace is removed before validation."},"rdt_cid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Reddit Click ID. Ex: rdt_cid123 Leading and trailing whitespace is removed before validation."},"host":{"type":"string","nullable":true,"maxLength":2000,"description":"The host of the current page. Ex: example.com Leading and trailing whitespace is removed before validation."},"ip":{"type":"string","nullable":true,"maxLength":2000,"description":"The IP address of the user. Ex: 127.0.0.1 Leading and trailing whitespace is removed before validation."},"msclkid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Microsoft Click ID. Ex: msclkid123 Leading and trailing whitespace is removed before validation."},"li_fat_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The LinkedIn Click ID. Ex: li_fat_id123 Leading and trailing whitespace is removed before validation."},"pathname":{"type":"string","nullable":true,"maxLength":2000,"description":"The pathname of the current page. Ex: /home Leading and trailing whitespace is removed before validation."},"referrer":{"type":"string","nullable":true,"maxLength":5000,"description":"The referrer URL of the current page Leading and trailing whitespace is removed before validation."},"referring_domain":{"type":"string","nullable":true,"maxLength":5000,"description":"The referring domain of the current page Leading and trailing whitespace is removed before validation."},"screen_height":{"type":"number","nullable":true,"description":"The height of the screen. Ex: 1080"},"screen_width":{"type":"number","nullable":true,"description":"The width of the screen. Ex: 1920"},"title":{"type":"string","nullable":true,"maxLength":2000,"description":"The title of the current page Leading and trailing whitespace is removed before validation."},"user_agent":{"type":"string","nullable":true,"description":"The user agent of the browser Leading and trailing whitespace is removed before validation."},"utm_campaign":{"type":"string","nullable":true,"maxLength":2000,"description":"The UTM Campaign. The web SDK automatically captures this from the query params. Leading and trailing whitespace is removed before validation."},"utm_content":{"type":"string","nullable":true,"maxLength":2000,"description":"The UTM Content. The web SDK automatically captures this from the query params. Leading and trailing whitespace is removed before validation."},"utm_medium":{"type":"string","nullable":true,"maxLength":2000,"description":"The UTM Medium. The web SDK automatically captures this from the query params. Leading and trailing whitespace is removed before validation."},"utm_name":{"type":"string","nullable":true,"maxLength":2000,"description":"The UTM Name. The web SDK automatically captures this from the query params. Leading and trailing whitespace is removed before validation."},"ttclid":{"type":"string","nullable":true,"maxLength":2000,"description":"The TikTok Click ID. Ex: ttclid123 Leading and trailing whitespace is removed before validation."},"twclid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Twitter Click ID. Ex: twclid123 Leading and trailing whitespace is removed before validation."},"clickid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Click ID. Ex: clickid123 Leading and trailing whitespace is removed before validation."},"clid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Generic Click ID. Ex: clid123 Leading and trailing whitespace is removed before validation."},"sccid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Snapchat Click ID. Ex: sccid123 Leading and trailing whitespace is removed before validation."},"irclickid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Impact Click ID. Ex: irclickid123 Leading and trailing whitespace is removed before validation."},"im_ref":{"type":"string","nullable":true,"maxLength":2000,"description":"The Impact Click ID reference. Ex: im_ref123 Leading and trailing whitespace is removed before validation."},"utm_source":{"type":"string","nullable":true,"maxLength":2000,"description":"The UTM Source. The web SDK automatically captures this from the query params. Leading and trailing whitespace is removed before validation."},"utm_term":{"type":"string","nullable":true,"maxLength":2000,"description":"The UTM Term. The web SDK automatically captures this from the query params. Leading and trailing whitespace is removed before validation."},"utm_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The UTM ID. The web SDK automatically captures this from the query params. Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"version":{"type":"string","nullable":true,"maxLength":2000,"description":"The SDK version (e.g., web SDK or ingest-sdk-* via generated SDK headers) Leading and trailing whitespace is removed before validation."},"wbraid":{"type":"string","nullable":true,"maxLength":2000,"description":"The WBRAID Identifier. The web SDK automatically captures this from the query params. Leading and trailing whitespace is removed before validation."},"uafvl":{"type":"string","nullable":true,"maxLength":2000,"description":"The browser brands and full versions from User-Agent Client Hints, as brand;version pairs separated by |. Leading and trailing whitespace is removed before validation."},"page_hash":{"type":"number","nullable":true,"description":"A random set of numbers for the page load"},"sid":{"type":"string","nullable":true,"maxLength":2000,"description":"The session ID as assigned automatically by the web SDK. This is required for session replay Leading and trailing whitespace is removed before validation."},"new_s":{"type":"boolean","nullable":true,"description":"Deprecated"},"fv":{"type":"boolean","nullable":true,"description":"Deprecated"},"sr":{"type":"string","nullable":true,"maxLength":2000,"description":"The screen resolution as width x height in pixels. Ex: 1920x1080 Leading and trailing whitespace is removed before validation."},"received_at":{"type":"string","nullable":true,"description":"The time an Ours server received the event, in ISO 8601 UTC"}},"description":"These properties are used throughout the Ours app to pass known values onto destinations"},"identityContext":{"type":"object","nullable":true,"properties":{"ip":{"type":"string","description":"The end-user IP address (not the server IP)."},"userAgent":{"type":"string","description":"The end-user User-Agent string (not the server UA)."}},"required":["ip","userAgent"],"description":"Deprecated and ignored. Accepted so existing clients keep working.","deprecated":true},"distinctId":{"type":"string","minLength":1,"maxLength":400,"description":"A unique identifier for this event used for deduplication. Highly recommended — if omitted, Ours will generate one for you, but supplying your own gives you stronger idempotency guarantees (e.g. a Stripe payment intent ID or your internal order ID). Leading and trailing whitespace is removed before validation.","pattern":"\\S"}},"required":["event","distinctId"]},"minItems":1,"maxItems":1000,"description":"A list of `/track`-shaped events to validate and enqueue together."}},"required":["token","events"]}}}},"responses":{"200":{"description":"Every event in the batch was accepted onto the ingest queue.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"accepted":{"type":"integer","minimum":0},"failed":{"type":"integer","minimum":0},"results":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"index":{"type":"integer","minimum":0},"success":{"type":"boolean","enum":[true]}},"required":["index","success"]},{"type":"object","properties":{"index":{"type":"integer","minimum":0},"success":{"type":"boolean","enum":[false]},"code":{"type":"string","enum":["invalid_event","queue_failed"]},"message":{"type":"string"}},"required":["index","success","code","message"]}]}}},"required":["success","accepted","failed","results"]}}}},"207":{"description":"At least one row was accepted and at least one row failed validation or queue transport. Correct and resubmit `invalid_event` rows. Retry only `queue_failed` rows with the same `distinctId` values.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"accepted":{"type":"integer","minimum":0},"failed":{"type":"integer","minimum":0},"results":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"index":{"type":"integer","minimum":0},"success":{"type":"boolean","enum":[true]}},"required":["index","success"]},{"type":"object","properties":{"index":{"type":"integer","minimum":0},"success":{"type":"boolean","enum":[false]},"code":{"type":"string","enum":["invalid_event","queue_failed"]},"message":{"type":"string"}},"required":["index","success","code","message"]}]}}},"required":["success","accepted","failed","results"]}}}},"400":{"description":"Invalid JSON, missing `token`, missing or empty `events`, token mismatch, invalid gzip body, or every row failed validation.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"string"}},"required":["success","error"]}}}},"401":{"description":"The top-level token is invalid or is not allowed for the public HTTP API.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"string"}},"required":["success","error"]}}}},"413":{"description":"The request exceeded the configured body, batch-count, or per-event size limit.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"string"},"limit":{"anyOf":[{"type":"number"},{"type":"string"}]}},"required":["success","error","limit"]}}}},"415":{"description":"The request used an unsupported content type or content encoding.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"string"}},"required":["success","error"]}}}},"500":{"description":"A transient source lookup failed or every accepted row failed queue transport. Retry the failed rows with the same `distinctId` values.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"error":{"type":"string"},"retryable":{"type":"boolean","enum":[true]},"results":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":0},"success":{"type":"boolean","enum":[false]},"code":{"type":"string","enum":["invalid_event","queue_failed"]},"message":{"type":"string"}},"required":["index","success","code","message"]}}},"required":["success","error","retryable"]}}}}}}},"/identify":{"post":{"description":"Set or update properties on an existing visitor, or create a new visitor if no match is found. This fires a $identify event, making the call visible in the event stream. Identity resolution runs in priority order: visitorId (direct, no lookup) → externalId → email → userProperties.phone_number. Each lookup runs only if earlier identifiers did not resolve a visitor. Phone matching ignores common formatting and an international + or 00 prefix, but does not infer a country code. When a visitor is found, their Ours Visitor ID is used going forward so all future events are attached to the same profile. For top-level visitor properties: null clears the existing value, while undefined, omitted fields, and empty strings are ignored. For entries inside custom_properties: null, undefined, and empty strings are all ignored (custom_properties use merge semantics). See https://docs.oursprivacy.com/docs/data-types for details and common pitfalls.","operationId":"identify","tags":["OursPrivacy"],"servers":[{"url":"https://api.oursprivacy.com/api/v1"}],"x-stainless-method":"visitor.upsert","summary":"Identify Visitors","requestBody":{"description":"The payload to identify a visitor The schema describes canonical JSON inputs. The server also accepts values normalized by the preprocessing described on individual fields.","required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":1,"maxLength":250,"description":"The token for your Source. You can find this in the dashboard. Leading and trailing whitespace is removed before validation.","pattern":"\\S"},"visitorId":{"type":"string","nullable":true,"minLength":1,"maxLength":400,"description":"The Ours Visitor ID stored in local storage and cookies on your web properties. When present, this is used directly — no lookup by externalId, email, or phone is performed. If you have both a visitorId and an externalId, send both so the event is attached to the right visitor without any lookup overhead. visitorId takes precedence over the deprecated userId alias. Leading and trailing whitespace is removed before validation.","pattern":"\\S"},"userId":{"type":"string","nullable":true,"minLength":1,"maxLength":400,"description":"The Ours Visitor ID stored in local storage and cookies on your web properties. When present, this is used directly — no lookup by externalId, email, or phone is performed. If you have both a visitorId and an externalId, send both so the event is attached to the right visitor without any lookup overhead. visitorId takes precedence over the deprecated userId alias. Leading and trailing whitespace is removed before validation.","deprecated":true,"pattern":"\\S"},"externalId":{"type":"string","nullable":true,"minLength":1,"maxLength":400,"description":"Your system's unique identifier for this user. When visitorId is absent, we search your account for an existing visitor with this externalId. If no match is found, we try email and then userProperties.phone_number before creating a new visitor. If you also have the visitorId from cookies or local storage, send both — it removes the lookup round-trip. Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation.","pattern":"\\S"},"email":{"type":"string","nullable":true,"minLength":1,"maxLength":1000,"description":"The email address of a user. When visitorId is absent and externalId does not resolve a visitor, we search your account for a visitor with this email. If no match is found, we try userProperties.phone_number before creating a new visitor. Leading and trailing whitespace is removed before validation.","pattern":"\\S"},"userProperties":{"type":"object","properties":{"email":{"type":"string","nullable":true,"maxLength":2000,"description":"Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"first_name":{"type":"string","nullable":true,"maxLength":2000,"description":"Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"last_name":{"type":"string","nullable":true,"maxLength":2000,"description":"Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"gender":{"type":"string","nullable":true,"maxLength":2000,"description":"Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"date_of_birth":{"type":"string","nullable":true,"maxLength":2000,"description":"Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"phone_number":{"allOf":[{"$ref":"#/components/schemas/JsonValue"}]},"city":{"type":"string","nullable":true,"maxLength":2000,"description":"Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"state":{"type":"string","nullable":true,"maxLength":2000,"description":"Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"zip":{"allOf":[{"$ref":"#/components/schemas/JsonValue"}]},"country":{"type":"string","nullable":true,"maxLength":2000,"description":"Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"external_id":{"type":"string","nullable":true,"maxLength":2000,"description":"Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"company_name":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"job_title":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"ip":{"type":"string","nullable":true,"maxLength":2000,"description":"The IP address of the user Leading and trailing whitespace is removed before validation."},"custom_properties":{"type":"object","nullable":true,"additionalProperties":{"$ref":"#/components/schemas/IngestPropertyValueDepth2"},"maxProperties":200,"description":"Use at most 200 nonempty property keys and five object levels. Array contents do not count toward the object-depth limit. Empty keys are removed recursively, arrays are truncated to 250 entries, and top-level numbers outside the safe integer range become strings. After normalization, the serialized JSON must be shorter than 1,048,576 UTF-16 code units."},"consent":{"type":"object","nullable":true,"additionalProperties":{"$ref":"#/components/schemas/IngestPropertyValueDepth2"},"maxProperties":200,"description":"Use at most 200 nonempty property keys and five object levels. Array contents do not count toward the object-depth limit. Empty keys are removed recursively, arrays are truncated to 250 entries, and top-level numbers outside the safe integer range become strings. After normalization, the serialized JSON must be shorter than 1,048,576 UTF-16 code units."},"ad_id":{"type":"string","nullable":true},"adset_id":{"type":"string","nullable":true},"campaign_id":{"type":"string","nullable":true},"alart":{"type":"string","nullable":true},"aleid":{"type":"string","nullable":true},"axwrt":{"type":"string","nullable":true},"affiliatly_v3":{"type":"string","nullable":true},"fbc":{"type":"string","nullable":true},"fbp":{"type":"string","nullable":true},"fbclid":{"type":"string","nullable":true},"gad_source":{"type":"string","nullable":true},"gbraid":{"type":"string","nullable":true},"gclid":{"type":"string","nullable":true},"ndclid":{"type":"string","nullable":true},"oppref":{"type":"string","nullable":true},"dclid":{"type":"string","nullable":true},"qclid":{"type":"string","nullable":true},"msclkid":{"type":"string","nullable":true},"ttclid":{"type":"string","nullable":true},"twclid":{"type":"string","nullable":true},"clickid":{"type":"string","nullable":true},"sccid":{"type":"string","nullable":true},"irclickid":{"type":"string","nullable":true},"im_ref":{"type":"string","nullable":true},"clid":{"type":"string","nullable":true},"sid":{"type":"string","nullable":true,"description":"Non-string input is converted to text before validation; clients should send a string."},"li_fat_id":{"type":"string","nullable":true},"referrer":{"type":"string","nullable":true},"referring_domain":{"type":"string","nullable":true},"user_agent":{"type":"string","nullable":true},"user_agent_full_list":{"type":"string","nullable":true},"utm_campaign":{"type":"string","nullable":true,"description":"Non-string input is converted to text before validation; clients should send a string."},"utm_content":{"type":"string","nullable":true,"description":"Non-string input is converted to text before validation; clients should send a string."},"utm_medium":{"type":"string","nullable":true,"description":"Non-string input is converted to text before validation; clients should send a string."},"utm_name":{"type":"string","nullable":true,"description":"Non-string input is converted to text before validation; clients should send a string."},"utm_source":{"type":"string","nullable":true,"description":"Non-string input is converted to text before validation; clients should send a string."},"utm_term":{"type":"string","nullable":true,"description":"Non-string input is converted to text before validation; clients should send a string."},"wbraid":{"type":"string","nullable":true},"rdt_cid":{"type":"string","nullable":true},"is_bot":{"allOf":[{"$ref":"#/components/schemas/JsonValue"}]},"epik":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"sacid":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"ylpcid":{"type":"string","nullable":true,"maxLength":2000},"adct":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"basis_cid":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"ob_click_id":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"grclid":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"graid":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"beeswax_auction_id":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"admitad_uid":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"_ef_transaction_id":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"viant_click_id":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"ttd_impression_id":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"viant_impression_id":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"katalys_transaction_id":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"katalys_offer_id":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"katalys_publisher_id":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."},"gc_ref_id":{"type":"string","nullable":true,"maxLength":2000,"description":"Leading and trailing whitespace is removed before validation."}},"description":"User properties to associate with this user. The existing user properties will be updated. And all future events will have these properties associated with them."},"defaultProperties":{"type":"object","nullable":true,"properties":{"is_bot":{"description":"Whether we have detected that the user is a bot. This is set automatically by the Ours server primarily for events tracked through the web SDK.","allOf":[{"$ref":"#/components/schemas/JsonValue"}]},"ad_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The ad id detected in the session. This is set by the web sdk automatically. Leading and trailing whitespace is removed before validation."},"adset_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The adset id detected in the session. This is set by the web sdk automatically. Leading and trailing whitespace is removed before validation."},"campaign_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The campaign id detected in the session. This is set by the web sdk automatically. Leading and trailing whitespace is removed before validation."},"ours_ad":{"type":"string","nullable":true,"maxLength":2000,"description":"The Ours ad tag from the ours_ad query parameter, as platform.campaign.adset.ad. Ex: meta.120210.120211.120212 Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"ad_touch_platform":{"type":"string","nullable":true,"maxLength":2000,"description":"The ad platform resolved by the Ours server from the ad tag, ad ids, and click ids on this event. Ex: meta, google Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"ad_touch_campaign_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The platform campaign id resolved by the Ours server for this event. Ex: 120210 Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"ad_touch_adset_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The platform ad set or ad group id resolved by the Ours server for this event. Ex: 120211 Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"ad_touch_ad_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The platform ad id resolved by the Ours server for this event. Ex: 120212 Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"ad_touch_source":{"type":"string","nullable":true,"maxLength":2000,"description":"Which signal the Ours server used to resolve the ad touch: ours_ad, url_ids, gad_campaignid, utm_id, or click_id. Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"alart":{"type":"string","nullable":true,"maxLength":2000,"description":"The AppLovin alart query parameter. Ex: alart123 Leading and trailing whitespace is removed before validation."},"aleid":{"type":"string","nullable":true,"maxLength":2000,"description":"The AppLovin aleid query parameter. Ex: aleid123 Leading and trailing whitespace is removed before validation."},"axwrt":{"type":"string","nullable":true,"maxLength":2000,"description":"The AppLovin pixel cookie value (_axwrt). Web-only. Leading and trailing whitespace is removed before validation."},"affiliatly_v3":{"type":"string","nullable":true,"maxLength":2000,"description":"The raw Affiliatly tracking cookie value (affiliatly_v3), set by the Affiliatly script when a visitor lands from an affiliate link. Web-only. Ex: id_hash=abc&id_user=123&aff_uid=45 Leading and trailing whitespace is removed before validation."},"encoding":{"type":"string","nullable":true,"maxLength":2000,"description":"The browser's encoding. Ex: UTF-8 Leading and trailing whitespace is removed before validation."},"browser_name":{"type":"string","nullable":true,"maxLength":2000,"description":"The name of the browser. Ex: Chrome Leading and trailing whitespace is removed before validation."},"browser_version":{"type":"string","nullable":true,"maxLength":2000,"description":"The version of the browser. Ex: 114.0 Leading and trailing whitespace is removed before validation."},"cpu_architecture":{"type":"string","nullable":true,"maxLength":2000,"description":"The architecture of the CPU. Ex: amd64 Leading and trailing whitespace is removed before validation."},"device_type":{"type":"string","nullable":true,"maxLength":2000,"description":"The type of device the user is using. Ex: mobile Leading and trailing whitespace is removed before validation."},"device_model":{"type":"string","nullable":true,"maxLength":2000,"description":"The model of the device. Ex: iPhone Leading and trailing whitespace is removed before validation."},"device_vendor":{"type":"string","nullable":true,"maxLength":2000,"description":"The vendor of the device. Ex: Apple Leading and trailing whitespace is removed before validation."},"engine_name":{"type":"string","nullable":true,"maxLength":2000,"description":"The name of the browser engine. Ex: Blink Leading and trailing whitespace is removed before validation."},"engine_version":{"type":"string","nullable":true,"maxLength":2000,"description":"The version of the browser engine. Ex: 114.0 Leading and trailing whitespace is removed before validation."},"os_name":{"type":"string","nullable":true,"maxLength":2000,"description":"The name of the operating system. Ex: Windows Leading and trailing whitespace is removed before validation."},"os_version":{"type":"string","nullable":true,"maxLength":2000,"description":"The version of the operating system. Ex: 10.0 Leading and trailing whitespace is removed before validation."},"browser_language":{"type":"string","nullable":true,"maxLength":2000,"description":"The language of the browser, lowercased. Ex: en-us Leading and trailing whitespace is removed before validation."},"current_url":{"type":"string","nullable":true,"description":"The full url (including query params) of the current page Leading and trailing whitespace is removed before validation."},"webview":{"type":"boolean","nullable":true,"description":"Whether the user is in a webview. Ex: true"},"iframe":{"type":"boolean","nullable":true,"description":"Whether the user is in an iframe. Ex: true"},"sessionCount":{"type":"number","nullable":true,"description":"The number of sessions the user has had. Ex: 3"},"activeDuration":{"type":"number","nullable":true,"description":"The total time in milliseconds this tab has been visible since the page loaded"},"duration":{"type":"number","nullable":true,"description":"The time in milliseconds since the previous event on this page, or since the web SDK loaded for the first event. Restarts when a hidden tab becomes visible again."},"epik":{"type":"string","nullable":true,"maxLength":2000,"description":"The Pinterest Click ID. Ex: epik456 Leading and trailing whitespace is removed before validation."},"sacid":{"type":"string","nullable":true,"maxLength":2000,"description":"The StackAdapt Tracking ID. Ex: sacid123 Leading and trailing whitespace is removed before validation."},"ylpcid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Yelp Click ID from the landing URL, sent unchanged and unhashed."},"adct":{"type":"string","nullable":true,"maxLength":2000,"description":"The AdRoll Click ID (adct) from the landing URL. Ex: adct123 Leading and trailing whitespace is removed before validation."},"basis_cid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Basis DSP Click ID. Ex: basis_cid123 Leading and trailing whitespace is removed before validation."},"ob_click_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The Outbrain click ID, captured from the `ob_click_id` URL parameter (Outbrain `{{ob_click_id}}` macro) on the landing page. Ex: ob_click_abc123 Leading and trailing whitespace is removed before validation."},"grclid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Gravity click ID, captured from the `grclid` URL parameter that Gravity (trygravity.com) appends to ad click-through URLs on the landing page. Ex: grclid-abc123 Leading and trailing whitespace is removed before validation."},"graid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Gravity attribution ID, captured from the `graid` URL parameter on the landing page. Gravity resolves it to the campaign, publisher, and ad IDs server-side. Ex: graid-abc123 Leading and trailing whitespace is removed before validation."},"beeswax_auction_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The Beeswax (FreeWheel Buyer Cloud) auction ID, captured from the `{{AUCTION_ID}}` macro on creative click URLs. Ex: bx-auc-abc123 Leading and trailing whitespace is removed before validation."},"admitad_uid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Admitad (Mitgo) affiliate Click ID. Ex: admitad_uid_abc123 Leading and trailing whitespace is removed before validation."},"_ef_transaction_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The Everflow affiliate Click (Transaction) ID, captured from the `_ef_transaction_id` URL parameter. Ex: ef_click_abc123 Leading and trailing whitespace is removed before validation."},"viant_click_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The Viant (Adelphic) Click ID, captured from the `viant_click_id` URL parameter (Viant `${ADELPHIC_CLICKID}` macro). Sent as `xid` on Viant postbacks. Ex: viant_click_abc123 Leading and trailing whitespace is removed before validation."},"ttd_impression_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The Trade Desk impression ID, captured from a configured ttd_impression_id URL parameter using the %%TTD_IMPRESSIONID%% creative macro. Sent as imp on conversions. Leading and trailing whitespace is removed before validation."},"katalys_transaction_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The Katalys click (transaction) ID. The Web SDK stores the `transaction_id` landing-page parameter under this name only when the link also carries `publisher_id`, so another network's `transaction_id` is not captured. Ex: ka_tx_abc123 Leading and trailing whitespace is removed before validation."},"katalys_offer_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The Katalys offer ID. The Web SDK stores the `offer_id` landing-page parameter under this name only when the link also carries `publisher_id`. Ex: 1001 Leading and trailing whitespace is removed before validation."},"katalys_publisher_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The Katalys publisher (affiliate) ID, captured from the `publisher_id` landing-page parameter on Katalys links. Sent to Katalys as `aff_id`. Ex: 2002 Leading and trailing whitespace is removed before validation."},"gc_ref_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The Growth Channel tracking ID, captured from the `gc_ref_id` URL parameter. Advertisers add `?gc_ref_id={TRACKING_ID}` to their Growth Channel landing URLs. Sent as `ref_id` on Growth Channel postbacks. Ex: gc_ref_abc123 Leading and trailing whitespace is removed before validation."},"viant_impression_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The Viant (Adelphic) Impression ID, captured from the `viant_impression_id` URL parameter (Viant `${ADELPHIC_IMPRESSIONID}` macro). Sent as `imp_id` on Viant postbacks for post-view attribution. Ex: viant_imp_abc123 Leading and trailing whitespace is removed before validation."},"fbc":{"type":"string","nullable":true,"maxLength":2000,"description":"Facebook Click ID with prefix format for Conversions API tracking. Ex: fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890 Leading and trailing whitespace is removed before validation."},"fbclid":{"type":"string","nullable":true,"maxLength":2000,"description":"Raw Facebook Click ID query parameter without prefix from ad clicks. Ex: AbCdEfGhIjKlMnOpQrStUvWxYz1234567890 Leading and trailing whitespace is removed before validation."},"fbp":{"type":"string","nullable":true,"maxLength":2000,"description":"Facebook Browser ID parameter for identifying browsers and attributing events. Ex: fb.1.1554763741205.1098115397 Leading and trailing whitespace is removed before validation."},"gad_source":{"type":"string","nullable":true,"maxLength":2000,"description":"The Google Ad Source. Ex: google Leading and trailing whitespace is removed before validation."},"gad_campaignid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Google Ads campaign id that Google auto-tagging appends to ad clicks. Ex: 21780011223 Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"gbraid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Google Braid ID. Ex: gbraid123 Leading and trailing whitespace is removed before validation."},"gclid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Google Click ID. Ex: gclid123 Leading and trailing whitespace is removed before validation."},"ndclid":{"type":"string","nullable":true,"maxLength":2000,"description":"The NextDoor Click ID. Ex: ndclid123 Leading and trailing whitespace is removed before validation."},"oppref":{"type":"string","nullable":true,"maxLength":2000,"description":"The OpenAI Ads privacy-preserving reference, captured from the `oppref` URL parameter on landing pages (the OpenAI Pixel also stores it in a `__oppref` cookie). Sent to OpenAI Ads on Conversions API events for attribution. Ex: oppref_abc Leading and trailing whitespace is removed before validation."},"dclid":{"type":"string","nullable":true,"maxLength":2000,"description":"The DoubleClick Click ID. Ex: dclid123 Leading and trailing whitespace is removed before validation."},"qclid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Quora Click ID. Ex: qclid123 Leading and trailing whitespace is removed before validation."},"rdt_cid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Reddit Click ID. Ex: rdt_cid123 Leading and trailing whitespace is removed before validation."},"host":{"type":"string","nullable":true,"maxLength":2000,"description":"The host of the current page. Ex: example.com Leading and trailing whitespace is removed before validation."},"ip":{"type":"string","nullable":true,"maxLength":2000,"description":"The IP address of the user. Ex: 127.0.0.1 Leading and trailing whitespace is removed before validation."},"msclkid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Microsoft Click ID. Ex: msclkid123 Leading and trailing whitespace is removed before validation."},"li_fat_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The LinkedIn Click ID. Ex: li_fat_id123 Leading and trailing whitespace is removed before validation."},"pathname":{"type":"string","nullable":true,"maxLength":2000,"description":"The pathname of the current page. Ex: /home Leading and trailing whitespace is removed before validation."},"referrer":{"type":"string","nullable":true,"maxLength":5000,"description":"The referrer URL of the current page Leading and trailing whitespace is removed before validation."},"referring_domain":{"type":"string","nullable":true,"maxLength":5000,"description":"The referring domain of the current page Leading and trailing whitespace is removed before validation."},"screen_height":{"type":"number","nullable":true,"description":"The height of the screen. Ex: 1080"},"screen_width":{"type":"number","nullable":true,"description":"The width of the screen. Ex: 1920"},"title":{"type":"string","nullable":true,"maxLength":2000,"description":"The title of the current page Leading and trailing whitespace is removed before validation."},"user_agent":{"type":"string","nullable":true,"description":"The user agent of the browser Leading and trailing whitespace is removed before validation."},"utm_campaign":{"type":"string","nullable":true,"maxLength":2000,"description":"The UTM Campaign. The web SDK automatically captures this from the query params. Leading and trailing whitespace is removed before validation."},"utm_content":{"type":"string","nullable":true,"maxLength":2000,"description":"The UTM Content. The web SDK automatically captures this from the query params. Leading and trailing whitespace is removed before validation."},"utm_medium":{"type":"string","nullable":true,"maxLength":2000,"description":"The UTM Medium. The web SDK automatically captures this from the query params. Leading and trailing whitespace is removed before validation."},"utm_name":{"type":"string","nullable":true,"maxLength":2000,"description":"The UTM Name. The web SDK automatically captures this from the query params. Leading and trailing whitespace is removed before validation."},"ttclid":{"type":"string","nullable":true,"maxLength":2000,"description":"The TikTok Click ID. Ex: ttclid123 Leading and trailing whitespace is removed before validation."},"twclid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Twitter Click ID. Ex: twclid123 Leading and trailing whitespace is removed before validation."},"clickid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Click ID. Ex: clickid123 Leading and trailing whitespace is removed before validation."},"clid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Generic Click ID. Ex: clid123 Leading and trailing whitespace is removed before validation."},"sccid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Snapchat Click ID. Ex: sccid123 Leading and trailing whitespace is removed before validation."},"irclickid":{"type":"string","nullable":true,"maxLength":2000,"description":"The Impact Click ID. Ex: irclickid123 Leading and trailing whitespace is removed before validation."},"im_ref":{"type":"string","nullable":true,"maxLength":2000,"description":"The Impact Click ID reference. Ex: im_ref123 Leading and trailing whitespace is removed before validation."},"utm_source":{"type":"string","nullable":true,"maxLength":2000,"description":"The UTM Source. The web SDK automatically captures this from the query params. Leading and trailing whitespace is removed before validation."},"utm_term":{"type":"string","nullable":true,"maxLength":2000,"description":"The UTM Term. The web SDK automatically captures this from the query params. Leading and trailing whitespace is removed before validation."},"utm_id":{"type":"string","nullable":true,"maxLength":2000,"description":"The UTM ID. The web SDK automatically captures this from the query params. Non-string input is converted to text before validation; clients should send a string. Leading and trailing whitespace is removed before validation."},"version":{"type":"string","nullable":true,"maxLength":2000,"description":"The SDK version (e.g., web SDK or ingest-sdk-* via generated SDK headers) Leading and trailing whitespace is removed before validation."},"wbraid":{"type":"string","nullable":true,"maxLength":2000,"description":"The WBRAID Identifier. The web SDK automatically captures this from the query params. Leading and trailing whitespace is removed before validation."},"uafvl":{"type":"string","nullable":true,"maxLength":2000,"description":"The browser brands and full versions from User-Agent Client Hints, as brand;version pairs separated by |. Leading and trailing whitespace is removed before validation."},"page_hash":{"type":"number","nullable":true,"description":"A random set of numbers for the page load"},"sid":{"type":"string","nullable":true,"maxLength":2000,"description":"The session ID as assigned automatically by the web SDK. This is required for session replay Leading and trailing whitespace is removed before validation."},"new_s":{"type":"boolean","nullable":true,"description":"Deprecated"},"fv":{"type":"boolean","nullable":true,"description":"Deprecated"},"sr":{"type":"string","nullable":true,"maxLength":2000,"description":"The screen resolution as width x height in pixels. Ex: 1920x1080 Leading and trailing whitespace is removed before validation."},"received_at":{"type":"string","nullable":true,"description":"The time an Ours server received the event, in ISO 8601 UTC"}},"description":"These properties are used throughout the Ours app to pass known values onto destinations"},"identityContext":{"type":"object","nullable":true,"properties":{"ip":{"type":"string","description":"The end-user IP address (not the server IP)."},"userAgent":{"type":"string","description":"The end-user User-Agent string (not the server UA)."}},"required":["ip","userAgent"],"description":"Deprecated and ignored. Accepted so existing clients keep working.","deprecated":true}},"required":["token","userProperties"]}}}},"responses":{"200":{"description":"Success - your event was sent to our servers","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]}},"required":["success"]}}}},"400":{"description":"Bad Request - Something about the body of your request is invalid. Please update your payload and try again.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]}},"required":["success"]}}}},"401":{"description":"Unauthorized - you are not authorized to send events to Ours. Please contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]}},"required":["success"]}}}},"500":{"description":"Internal Server Error.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]}},"required":["success"]}}}}}}},"/experiments/assignments/{experiment_key}":{"post":{"description":"Return the server-side variant assignment for a visitor in a single A/B or multivariate experiment, identified by its experiment key. Bucketing is deterministic on `visitor_id` and is sticky across calls. Tracking an impression is the default — pass `track_impression: false` to read without recording. The browser SDK and this endpoint converge on the same variant for the same visitor.","operationId":"experimentAssignment","tags":["OursPrivacy"],"servers":[{"url":"https://api.oursprivacy.com/api/v1"}],"x-stainless-method":"experiments.assignment","summary":"Get Experiment Assignment","parameters":[{"schema":{"type":"string","description":"The experiment's stable key. Surfaced in the dashboard under each experiment's setup tab."},"required":true,"description":"The experiment's stable key. Surfaced in the dashboard under each experiment's setup tab.","name":"experiment_key","in":"path"}],"requestBody":{"description":"Visitor + optional page context for eligibility. The schema describes canonical JSON inputs. The server also accepts values normalized by the preprocessing described on individual fields.","required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","description":"The experiment token (`exp_*`) for the experiment settings holding this experiment. Available from the dashboard."},"visitor_id":{"type":"string","minLength":1,"maxLength":400,"description":"Stable identifier for the visitor — typically the Ours visitor id from your browser cookie, or your own server-side user id if you keep the same id consistent across browser and server."},"context":{"type":"object","nullable":true,"properties":{"url":{"type":"string","nullable":true,"description":"The current page URL. When provided, the experiment's URL patterns are evaluated for eligibility — visitors on non-matching URLs are returned `in_experiment: false`. Omit when the caller is pre-gating the request."},"search":{"type":"string","nullable":true,"description":"The current query string (e.g. `?utm_source=meta`). When provided, the experiment's query-param conditions are evaluated for eligibility. If omitted, the query string is parsed from `url`."}},"description":"Optional page context for URL + query-param eligibility. Variant bucketing is deterministic on `visitor_id` regardless of context."},"track_impression":{"type":"boolean","nullable":true,"description":"When true (default), an `$experiment_impression` event is enqueued and the visitor's `experiment_assignments` map is updated. Set to false to read the assignment without recording an impression — useful for in-test diagnostics."}},"required":["token","visitor_id"]}}}},"responses":{"200":{"description":"The assignment outcome — including out-of-experiment results.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"in_experiment":{"type":"boolean","enum":[true]},"experiment_id":{"type":"string"},"experiment_key":{"type":"string","nullable":true},"experiment_name":{"type":"string","nullable":true},"variant_id":{"type":"string"},"variant_name":{"type":"string","nullable":true},"is_control":{"type":"boolean","nullable":true},"type":{"type":"string","nullable":true},"redirect":{"type":"string","nullable":true,"description":"Redirect destination for redirect (split-URL) variants — a same-domain relative path or an absolute https:// URL. Present only when the assigned variant is a redirect; absent for on-page (DOM-modification) variants. Read it straight off the payload and issue the redirect server-side."}},"required":["success","in_experiment","experiment_id","variant_id"]},{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"in_experiment":{"type":"boolean","enum":[false]}},"required":["success","in_experiment"]}]}}}},"400":{"description":"Bad Request - Something about the body of your request is invalid. Please update your payload and try again.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]}},"required":["success"]}}}},"401":{"description":"Unauthorized - you are not authorized to send events to Ours. Please contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]}},"required":["success"]}}}},"404":{"description":"The experiment key is unknown or not currently running.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]}},"required":["success"]}}}},"500":{"description":"Internal Server Error.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]}},"required":["success"]}}}}}}},"/experiments/personalization":{"post":{"description":"Return the visitor traits accumulated by personalization property rules. Read-only and never records an impression. Use the properties to select personalized server-rendered copy or targeting; the browser experiment runtime receives the same bag at initialization.","operationId":"experimentPersonalization","tags":["OursPrivacy"],"servers":[{"url":"https://api.oursprivacy.com/api/v1"}],"x-stainless-method":"experiments.personalization","summary":"Get Personalization Properties","requestBody":{"description":"Token + visitor id. The schema describes canonical JSON inputs. The server also accepts values normalized by the preprocessing described on individual fields.","required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","description":"The experiment token (`exp_*`)."},"visitor_id":{"type":"string","minLength":1,"maxLength":400}},"required":["token","visitor_id"]}}}},"responses":{"200":{"description":"The visitor's accumulated personalization properties.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]},"properties":{"type":"object","additionalProperties":{"anyOf":[{"type":"string","nullable":true},{"type":"number"},{"type":"boolean"}]},"description":"The visitor traits accumulated by your personalization property rules, keyed by property key. Values are always scalars — a string, number, or boolean, or null when the captured field was itself empty. Empty for a visitor who has not matched any rule yet. These same values are delivered to the visitor's browser and are readable by anyone who knows the visitor_id, so never accumulate secrets, credentials, PHI, or confidential data into a property."}},"required":["success","properties"]}}}},"400":{"description":"Bad Request - Something about the body of your request is invalid. Please update your payload and try again.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]}},"required":["success"]}}}},"401":{"description":"Unauthorized - you are not authorized to send events to Ours. Please contact support.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]}},"required":["success"]}}}},"500":{"description":"Internal Server Error.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]}},"required":["success"]}}}},"503":{"description":"Temporarily unable to read the personalization state. The request was valid — retry it after the number of seconds in the `Retry-After` header. Never treat this as \"the visitor has no properties\".","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","enum":[false]},"retryable":{"type":"boolean","enum":[true]},"error":{"type":"string"}},"required":["success","retryable","error"]}}}}}}}}}