Skip to content

This page is available as Markdown at https://developers.klaviyo.com/en/reference/create_location_beta.md. Its OpenAPI document is at https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/create_location_beta.json. An index of every page is at https://developers.klaviyo.com/llms.txt.

KlaviyoKlaviyoDevelopers
v2026-10-15

This endpoint is in beta. Call it with the revision header 2026-10-15.pre. Beta endpoints may change before they're generally available. See our versioning and deprecation policy for more information.

Create Location

POSThttps://a.klaviyo.com/api/locations

Create a physical location.

The location has to be placeable on a map: supply either a full address (address1, city, zip, and country, plus region in countries that have states or provinces, such as the US, Canada, and Australia), or both latitude and longitude. Klaviyo geocodes whatever is supplied and fills in the remaining address fields it can resolve, so latitude and longitude may be absent from the response until geocoding finishes — check geocode_status.

Revision header
revision: 2026-10-15.prerequired
Scopes
locations:write
Rate limits
Burst: 10/sSteady: 150/m

Query parameters

  • fields[location]#string[]

    For more information please visit API overview

    Show 22 allowed values
    • address1
    • address2
    • city
    • country
    • description
    • email
    • features
    • geocode_status
    • id
    • latitude
    • longitude
    • manager_email
    • manager_name
    • name
    • phone_number
    • profile_count
    • profile_property_value
    • region
    • segment_count
    • type_label
    • url
    • zip
  • include#string[]

    For more information please visit API overview

    Allowed values:
    • segments

Headers

  • revision#stringrequired

    API endpoint revision (format: YYYY-MM-DD[.suffix])

    2026-10-15.pre

Request body

Content type: application/vnd.api+jsonrequired

  • data#objectrequired
    Show 2 fields
    • type#stringrequired
      Allowed values:
      • location
    • attributes#objectrequired
      Show 18 fields
      • name#stringrequired

        Name of the location as it should appear to your team and in profile properties. Leading and trailing whitespace is stripped; the result must be non-empty. Maximum 255 characters.

        Example: Klaviyo Boston

      • address1#stringnullable

        First line of the street address.

        Example: 125 Summer St

      • address2#stringnullable

        Second line of the street address, such as a suite or floor.

        Example: Floor 6

      • city#stringnullable

        City or town.

        Example: Boston

      • region#stringnullable

        State, province, or other top-level administrative area.

        Example: MA

      • zip#stringnullable

        Postal code.

        Example: 02110

      • country#stringnullable

        Country name or ISO country code.

        Example: US

      • latitude#numbernullable

        Latitude of the location. Supply with longitude to place a location that has no resolvable street address.

        Example: 42.3505

      • longitude#numbernullable

        Longitude of the location. Supply with latitude to place a location that has no resolvable street address.

        Example: -71.055

      • type_label#stringnullable

        Your own category for this location, used to group locations in reporting. Maximum 50 characters.

        Example: Flagship store

      • description#stringnullable

        Free-text description of the location.

        Example: Corner store with in-store pickup.

      • url#stringnullable

        Web page for this location. Maximum 500 characters.

        Example: https://example.com/stores/boston

      • phone_number#stringnullable

        Public phone number for this location. Maximum 20 characters.

        Example: +16175551234

      • email#stringnullable

        Public contact email address for this location. Maximum 255 characters.

        Example: boston@example.com

      • manager_name#stringnullable

        Name of the person responsible for this location. Maximum 255 characters.

        Example: Alex Chen

      • manager_email#stringnullable

        Email address of the person responsible for this location. Maximum 255 characters.

        Example: alex.chen@example.com

      • features#string[]nullable

        Amenities or capabilities offered at this location.

      • profile_property_value#stringnullable

        Value written to the location profile property on profiles associated with this location. Defaults to the location name when omitted. Maximum 500 characters.

        Example: Klaviyo Boston

Responses

201Success

Content type: application/vnd.api+json

  • data#objectrequired
    Show 5 fields
    • type#stringrequired
      Allowed values:
      • location
    • id#stringrequired

      Primary key that uniquely identifies this location.

      Example: 01HQ8V5X9K2M4N6P8R0T2W4Y6A

    • attributes#objectrequired
      Show 21 fields
      • name#stringrequired

        Name of the location.

        Example: Klaviyo Boston

      • address1#stringnullable

        First line of the street address.

        Example: 125 Summer St

      • address2#stringnullable

        Second line of the street address, such as a suite or floor.

        Example: Floor 6

      • city#stringnullable

        City or town.

        Example: Boston

      • region#stringnullable

        State, province, or other top-level administrative area.

        Example: MA

      • zip#stringnullable

        Postal code.

        Example: 02110

      • country#stringnullable

        Country name or ISO country code.

        Example: US

      • latitude#numbernullable

        Latitude of the location, resolved by geocoding when not supplied directly.

        Example: 42.3505

      • longitude#numbernullable

        Longitude of the location, resolved by geocoding when not supplied directly.

        Example: -71.055

      • geocode_status#stringnullable

        Whether the supplied address has been resolved to coordinates. Locations still pending or queued have no latitude or longitude yet, and locations that failed geocoding cannot be used for proximity segmentation.

        Allowed values:
        • pending
        • queued
        • successful
        • failed

        Example: successful

      • type_label#stringnullable

        Your own category for this location.

        Example: Flagship store

      • description#stringnullable

        Free-text description of the location.

        Example: Corner store with in-store pickup.

      • url#stringnullable

        Web page for this location.

        Example: https://example.com/stores/boston

      • phone_number#stringnullable

        Public phone number for this location.

        Example: +16175551234

      • email#stringnullable

        Public contact email address for this location.

        Example: boston@example.com

      • manager_name#stringnullable

        Name of the person responsible for this location.

        Example: Alex Chen

      • manager_email#stringnullable

        Email address of the person responsible for this location.

        Example: alex.chen@example.com

      • features#string[]nullable

        Amenities or capabilities offered at this location.

      • profile_property_value#stringnullable

        Value written to the location profile property on profiles associated with this location.

        Example: Klaviyo Boston

      • profile_count#integernullable

        Number of profiles currently associated with this location. Recomputed periodically, so it lags recent segment membership changes.

        Example: 1284

      • segment_count#integernullable

        Number of segments linked to this location. Available via ?include=segments.

        Example: 3

    • relationships#object
      Show 1 field
      • segments#object
        Show 2 fields
        • data#object[]
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • segment
          • id#stringrequired

            IDs of the segments linked to this location. Available via ?include=segments.

  • included#object[]
    Show 3 fields
    • type#stringrequired
      Allowed values:
      • segment
    • id#stringrequired

      Identifier of the segment.

      Example: 01HQ8V5X9K2M4N6P8R0T2W4Y6A

4XXClient Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string

5XXServer Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string