Skip to content
Developer docs
⌘ K
Dashboard ↗

HTTP endpoints

resolvePlacement

GET /api/tracking/{key}/placements/{placementKey}

Uses the publishable tracking key in the path. Website requests need an allowed Origin. Native capture must be enabled on the key. No server key is sent.

HTTP

Use your backend's HTTP client. The cURL request shows the wire format. Replace path parameters and example values.

sh
curl --fail-with-body --request GET \
  'https://app.grizzlee.ca/api/tracking/{key}/placements/{placementKey}' \
  -H 'Origin: https://shop.example.com'

Response

HTTP responses wrap this value in data. The SDK returns the value directly unless the note above describes a wrapper.

FieldTypeRequiredDetails
placementstringYes
programIdstringYes
activebooleanYes
displayobjectYesThe program's public name, headline and milestone label.

display

FieldTypeRequiredDetails
display.publicNameobjectYes
display.headlineobjectYes
display.milestoneLabelunionYesNull for order programs. Forms by plural category, picked with Intl.PluralRules. few and many matter in Russian. A merchant's label sets one and other, and few and many reuse other.

display.publicName

FieldTypeRequiredDetails
display.publicName.enstringYes
display.publicName.fr-CAstringYes
display.publicName.hystringYes
display.publicName.rustringYes

display.headline

FieldTypeRequiredDetails
display.headline.enstringYes
display.headline.fr-CAstringYes
display.headline.hystringYes
display.headline.rustringYes

display.milestoneLabel

Variant 1

Type: null.

Variant 2

FieldTypeRequiredDetails
display.milestoneLabel.oneobjectYes
display.milestoneLabel.fewobjectYes
display.milestoneLabel.manyobjectYes
display.milestoneLabel.otherobjectYes

display.milestoneLabel.one

FieldTypeRequiredDetails
display.milestoneLabel.one.enstringYes
display.milestoneLabel.one.fr-CAstringYes
display.milestoneLabel.one.hystringYes
display.milestoneLabel.one.rustringYes

display.milestoneLabel.few

FieldTypeRequiredDetails
display.milestoneLabel.few.enstringYes
display.milestoneLabel.few.fr-CAstringYes
display.milestoneLabel.few.hystringYes
display.milestoneLabel.few.rustringYes

display.milestoneLabel.many

FieldTypeRequiredDetails
display.milestoneLabel.many.enstringYes
display.milestoneLabel.many.fr-CAstringYes
display.milestoneLabel.many.hystringYes
display.milestoneLabel.many.rustringYes

display.milestoneLabel.other

FieldTypeRequiredDetails
display.milestoneLabel.other.enstringYes
display.milestoneLabel.other.fr-CAstringYes
display.milestoneLabel.other.hystringYes
display.milestoneLabel.other.rustringYes

Response schema

json
{
  "type": "object",
  "properties": {
    "placement": {
      "type": "string"
    },
    "programId": {
      "type": "string"
    },
    "active": {
      "type": "boolean"
    },
    "display": {
      "type": "object",
      "properties": {
        "publicName": {
          "type": "object",
          "properties": {
            "en": {
              "type": "string"
            },
            "fr-CA": {
              "type": "string"
            },
            "hy": {
              "type": "string"
            },
            "ru": {
              "type": "string"
            }
          },
          "required": [
            "en",
            "fr-CA",
            "hy",
            "ru"
          ]
        },
        "headline": {
          "type": "object",
          "properties": {
            "en": {
              "type": "string"
            },
            "fr-CA": {
              "type": "string"
            },
            "hy": {
              "type": "string"
            },
            "ru": {
              "type": "string"
            }
          },
          "required": [
            "en",
            "fr-CA",
            "hy",
            "ru"
          ]
        },
        "milestoneLabel": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "object",
              "properties": {
                "one": {
                  "type": "object",
                  "properties": {
                    "en": {
                      "type": "string"
                    },
                    "fr-CA": {
                      "type": "string"
                    },
                    "hy": {
                      "type": "string"
                    },
                    "ru": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "en",
                    "fr-CA",
                    "hy",
                    "ru"
                  ]
                },
                "few": {
                  "type": "object",
                  "properties": {
                    "en": {
                      "type": "string"
                    },
                    "fr-CA": {
                      "type": "string"
                    },
                    "hy": {
                      "type": "string"
                    },
                    "ru": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "en",
                    "fr-CA",
                    "hy",
                    "ru"
                  ]
                },
                "many": {
                  "type": "object",
                  "properties": {
                    "en": {
                      "type": "string"
                    },
                    "fr-CA": {
                      "type": "string"
                    },
                    "hy": {
                      "type": "string"
                    },
                    "ru": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "en",
                    "fr-CA",
                    "hy",
                    "ru"
                  ]
                },
                "other": {
                  "type": "object",
                  "properties": {
                    "en": {
                      "type": "string"
                    },
                    "fr-CA": {
                      "type": "string"
                    },
                    "hy": {
                      "type": "string"
                    },
                    "ru": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "en",
                    "fr-CA",
                    "hy",
                    "ru"
                  ]
                }
              },
              "required": [
                "one",
                "few",
                "many",
                "other"
              ]
            }
          ],
          "description": "Null for order programs. Forms by plural category, picked with Intl.PluralRules. few and\nmany matter in Russian. A merchant's label sets one and other, and few and many reuse other."
        }
      },
      "required": [
        "publicName",
        "headline",
        "milestoneLabel"
      ],
      "description": "The program's public name, headline and milestone label."
    }
  },
  "required": [
    "placement",
    "programId",
    "active",
    "display"
  ]
}

Errors

Failures return { "error": { "code": "...", "message": "...", "details": {} } }. Details are optional. See error statuses. Reuse an unchanged event payload when retrying.