# Help Needed with Analytics Endpoint (/v1/analytics/activities)

**URL:** <https://forum.social.plus/t/help-needed-with-analytics-endpoint-v1-analytics-activities/1595>\
**Category:** General\
**Created:** [February 3, 2025, 6:45pm UTC](https://forum.social.plus/t/help-needed-with-analytics-endpoint-v1-analytics-activities/1595 "2025-02-03T18:45:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thiagobellotto-ss](https://avatars.discourse-cdn.com/v4/letter/t/9fc348/32.png) [@thiagobellotto-ss](https://forum.social.plus/u/thiagobellotto-ss)\
**Post date:** [February 3, 2025, 6:45pm UTC](https://forum.social.plus/t/help-needed-with-analytics-endpoint-v1-analytics-activities/1595/1 "2025-02-03T18:45:26Z")

</div>

Hi everyone,

I’m having some trouble working with the analytics endpoint on the Amity API. I’m following what’s in the docs ([Amity API](https://api-docs.amity.co/)), but I’m not sure if I’m constructing my request correctly.

Here’s the `curl` command I’m using, to help with the debugging…

```auto
curl -X POST 'https://apix.us.amity.co/api/v1/analytics/activities' \
  -H 'Accept: */*' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <bearer_token>' \
  -d '{"activities": [{"contentId": "67227475cb3de54ce13a0e9f", "contentType": "post", "activityType": "impression", "timestamp": {}}]}'

```

My main questions are:

1. Timestamp Format:  
The request currently sends an empty object for `"timestamp": {}`. Is this the correct format? Should I pass an actual timestamp (e.g., as a Unix epoch number or an ISO8601 string) instead of an empty object? What timestamp should I pass, given the fact that I already identify the post through it’s ID?
2. Additional Parameters or Headers:  
Are there any additional parameters or headers required by this endpoint that I might be missing?

Any guidance or pointers to documentation would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![topAmity](https://avatars.discourse-cdn.com/v4/letter/t/a88e4f/32.png) [@topAmity](https://forum.social.plus/u/topAmity)\
**Post date:** [February 4, 2025, 8:02am UTC](https://forum.social.plus/t/help-needed-with-analytics-endpoint-v1-analytics-activities/1595/2 "2025-02-04T08:02:43Z")

</div>

Hi @thiagobellotto-ss , activityType should be “view” and timestamp can be string of a timestamp. Here is example of my curl

```auto
curl -X POST 'https://apix.sg.amity.co/api/v1/analytics/activities' \
  -H 'Accept: */*' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <token> \
  -d '{
    "activities": [
      {
        "contentId": "67a0fbf893378e51ad107c17",
        "contentType": "post",
        "activityType": "view",
        "timestamp": "2024-02-03T12:34:56Z"
      }
    ]
  }'

```

---

<div class="post-metadata">

**Author:** ![thiagobellotto-ss](https://avatars.discourse-cdn.com/v4/letter/t/9fc348/32.png) [@thiagobellotto-ss](https://forum.social.plus/u/thiagobellotto-ss)\
**Post date:** [February 4, 2025, 4:31pm UTC](https://forum.social.plus/t/help-needed-with-analytics-endpoint-v1-analytics-activities/1595/3 "2025-02-04T16:31:07Z")

</div>

Thanks! That worked. Although… All I got was…

{‘success’: True}

I was expecting to actually visualize some data back…

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [February 5, 2025, 8:47am UTC](https://forum.social.plus/t/help-needed-with-analytics-endpoint-v1-analytics-activities/1595/4 "2025-02-05T08:47:22Z")

</div>

Hello @thiagobellotto-ss , After checking with our team, we confirmed that this API is designed primarily for writing data, with the main purpose of increasing the impression count. It does not support data retrieval or visualization.
