OptionalipIP address to override the API behavior for IP analysis.
OptionallocaleExperience API locale query parameter used to translate profile location fields such as
location.city and location.country.
OptionallocationRequest location for createProfile(), updateProfile(), and upsertProfile().
Optionalcity?: stringCity name associated with the location.
Optionalcontinent?: stringContinent name associated with the location.
Optionalcoordinates?: { latitude: number; longitude: number }Geographical coordinates for the location.
Latitude component of the coordinates.
Longitude component of the coordinates.
Optionalcountry?: stringCountry name associated with the location.
OptionalcountryCode?: stringCountry code associated with the location.
OptionalpostalCode?: stringPostal or ZIP code associated with the location.
Optionalregion?: stringRegion or state name associated with the location.
OptionalregionCode?: stringRegion or state code associated with the location.
Optionaltimezone?: stringTime zone identifier associated with the location.
A per-request value replaces the constructor default as a whole object.
The API merges each event's context.location over this request location.
An explicit {} overrides the constructor default and supplies an empty
request-location default instead of Cloudflare geolocation. When omitted
from both sources, existing API fallback behavior applies.
This affects evaluation and profile updates; it is not a permanent location lock.
For upsertManyProfiles(), use each event's context.location instead.
OptionalplainWhen true, sends performance-critical endpoints in plain text.
OptionalpreflightWhen true, instructs the API to aggregate a new profile state but not store it.
Request-bound Experience API options for stateless runtimes.