Skip to main content
Problem Solver II
June 9, 2023
Solved

Track Events Metric DEPRECATED

  • June 9, 2023
  • 3 replies
  • 335 views

Has the Track API Endpoint been DEPRECATED? If so, is there another alternative or perhaps I’m not seeing it in the new API versions? This options is so powerful and I’m using it in a ton of scenerios. 

Any updates on the Track API would be appreciated?

    This topic has been closed for replies.
    Best answer by jmacman

    I figured it out:

     

    {
      "data": {
        "type": "event",
        "attributes": {
          "profile": {
            "$email": "{{1.email}}"
          },
          "metric": {
            "name": "User Logged In"
          },
          "properties": {
            "email": "{{1.email}}"
          },
          "time": "{{now}}"
        }
      }
    }

    3 replies

    jmacmanAuthor
    Problem Solver II
    June 9, 2023

    Ok, I see the new event has been changed to Create Event using the new API. Hopefully someone can help me out as I am terrible with APIs. I’m using Integromat using the custom API. Can anyone tell me what I’m doing wrong as far as the Error Messages

     

    JSON Param

    {
      "data": {
        "type": "event",
        "attributes": {
          "profile": {
            "email ": "email@email.com"
          },
          "metric": {
            "name": "User Logged In"
          },
          "properties": {
            "email": "email@email.com"
          },
          "time": "{{now}}"
        }
      }
    }

     

    • status

      400

    • code

      invalid

    • title

      Invalid input.

    • detail

      At least one profile identifier is requiredAny email must be valid. This request failed with reason: missing valid identifier.

    Video Here - 

     

    jmacmanAuthorAnswer
    Problem Solver II
    June 9, 2023

    I figured it out:

     

    {
      "data": {
        "type": "event",
        "attributes": {
          "profile": {
            "$email": "{{1.email}}"
          },
          "metric": {
            "name": "User Logged In"
          },
          "properties": {
            "email": "{{1.email}}"
          },
          "time": "{{now}}"
        }
      }
    }

    Brian Turcotte
    Klaviyo Alum
    June 9, 2023

     Hi @jmacman!

    I’m glad you figured it out! Thanks so much for sharing your solution, it’s so helpful for other members to see a full-cycle problem → solution like this!

     

    For future reference or for anyone else that sees this thread, here’s our comparison guide that explains which new API endpoints correspond to each legacy endpoint:

    Best,

    Brian