Skip to main content
Answered

How can I write comment on my activity via API

  • September 23, 2025
  • 4 replies
  • 54 views

Mook
Forum|alt.badge.img+1
  • Hub Rookie
  • 2 replies

I’m building a personal comment automation tool using the Strava API.

The app is for personal use only, designed to automatically post my own annual mileage data as a comment on my activities.

 

I have confirmed that my access token includes “ [scope] => read,activity:write,activity:read_all,profile:write,profile:read_all,read_all”, and I am attempting to post a short comment to my own activity using the endpoint:

`POST /api/v3/activities/{activity_id}/comments`

 

However, I consistently receive a `401 Authorization Error`, and the response does not include any explanation or error details.

 

Could anyone confirm whether comment posting via API is allowed for my app, or if there are any restrictions I should be aware of?

Best answer by Jan_Mantau

You can only GET the comments, not POST them.

sorry, I mean not the comment but the descripion below activity title..

Then you are using the wrong endpoint, please have a look at https://developers.strava.com/docs/reference/#api-Activities-updateActivityById

4 replies

Mook
Forum|alt.badge.img+1
  • Author
  • Hub Rookie
  • 2 replies
  • September 23, 2025

correct: comment » description. I need personal comment on each activity.


Jan_Mantau
Superuser
Forum|alt.badge.img+26
  • Superuser
  • 1782 replies
  • September 23, 2025

You can only GET the comments, not POST them.


Mook
Forum|alt.badge.img+1
  • Author
  • Hub Rookie
  • 2 replies
  • September 23, 2025

You can only GET the comments, not POST them.

sorry, I mean not the comment but the descripion below activity title..


Jan_Mantau
Superuser
Forum|alt.badge.img+26
  • Superuser
  • 1782 replies
  • Answer
  • September 23, 2025

You can only GET the comments, not POST them.

sorry, I mean not the comment but the descripion below activity title..

Then you are using the wrong endpoint, please have a look at https://developers.strava.com/docs/reference/#api-Activities-updateActivityById