Content Viewer API to get an Edit URL

  • 2
  • Question
  • Updated 1 year ago

We need to be able to simply generate a URL for the Word Online 'Edit' version of an Item, so that we can generate an 'edit' link inside our own web ui.

From what I understand the Content Viewer API has not been implemented, so i've been trying to reverse engineer the ContentViewer endpoints from the sharefile web UI, but i'm a bit stuck, so hoping someone could help me.

The endpoint it calls is:
Payload: {
  ItemUrl: "",
  Action: "Edit"

This returns a Redirection object with:
 Url: ""
 Body: { Token: "eyJhbGciOiJkaXIi....." }
 Method: "POST"

I then try to use the token in the Edit URL (like so), but with no luck. eyJhbGciOiJkaXIi ...

Am I missing a step here? Is it even possible to get an Edit URL from the API?

Cheers, Ben

Photo of Ben Southall

Ben Southall

  • 15 Posts
  • 1 Reply Like

Posted 1 year ago

  • 2
Photo of Sagar Thirumala

Sagar Thirumala, Software Engineer

  • 6 Posts
  • 0 Reply Likes
Hi Ben,

There are no public ShareFile APIs for Word Online editing.