How do I get the file extension or mimetype of a document via API? | Community
Skip to main content
Patrick-antegma
Level 4
August 2, 2021
Solved

How do I get the file extension or mimetype of a document via API?

  • August 2, 2021
  • 1 reply
  • 792 views

Hi,

I'm searching for a way to get the mimetype of a document uploaded to a task or project via the REST API.

When I'm using the endpoint "/docu/search", we're getting only the name without the file extension.

https://developer.workfront.com/documents.html#get-/docu/search

Is there a way to get the file extension or mimetype of a document via API?

Thanks

Patrick

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Doug_Den_Hoed_AtAppStore

Hi Patrick,

You’ll find the file extension property one level down, on the Document Version object.

Regards,

Doug

1 reply

Doug_Den_Hoed_AtAppStore
Community Advisor
Doug_Den_Hoed_AtAppStoreCommunity AdvisorAccepted solution
Community Advisor
August 2, 2021

Hi Patrick,

You’ll find the file extension property one level down, on the Document Version object.

Regards,

Doug

Patrick-antegma
Level 4
August 3, 2021

Hi Doug,

Thanks for the information!

‚ Regards,

Patrick