Get author name and profile image via API | Community
Skip to main content

Get author name and profile image via API

  • August 15, 2021
  • 3 replies
  • 0 views

Is it possible to request an author name and image via the author_id on an article?

Currently using /api/v2/help_center/en-us/articles/{article_id} to get the author ID

 

Edit: This would all have to be as an end user/anonymous user

3 replies

Tipene
  • August 16, 2021

Hi @Boop Dog,

Thanks for reaching out!

The author_id can be used together with the Users API to pull all the relevant user information, including the user name and image. In this case, you will just need to replace the {user_id} with the {author_id} i.e GET api/v2/users/{author_id}.

Here’s a link to the Users API documentation which goes in to a bit more detail:

https://developer.zendesk.com/api-reference/ticketing/users/users/

I hope this helps! Feel free to reach out if you have any questions.

Tipene


  • Author
  • August 16, 2021

Thank you for the response Tipene!

Unfortunately, the documentation mentions that it’s only available to “ Admins, Agents and Light Agents”, with me receiving “Forbidden” when trying to call it. Is there any way to access this information as a user/anonymous?


Tipene
  • August 17, 2021

Accessing the author name and profile image via API will require the permissions you mentioned, unfortunately.

Sorry I couldn’t help more! Let me know if you have any questions.

Tipene