You are viewing limited content. For full access, please sign in.

Question

Question

Getting 401 Unauthorized error when using the Cloud API Export Document endpoint

asked on December 17, 2021

Is there anything I need to enable for this to work? I put in the repoID and entryID for the Export Document endpoint found here:


https://api.laserfiche.com/repository/swagger/index.html#/Entries/Export%20document

 

But I'm getting a 401 Unauthorized error.

 

I've been using the following documentation as well:

https://developer.laserfiche.com/guide_exporting-documents.html

 

I was able to generate the access token and get the header information. But when running the next request, I seem to always get the 401 error.

0 0

Answer

SELECTED ANSWER
replied on December 17, 2021

Hi Brian,

I think I figured it out. One of the links in my initial description lists the endpoint as
 

https://api.laserfiche.com/repository/v1/Repositories/repoID/Entries/entryId/Laserfiche.Repository.Document.edoc

vs

https://api.laserfiche.com/repository/v1-alpha/Repositories/repoID/Entries/entryID/Laserfiche.Repository.Document/edoc

It looks like 2nd one worked for me. Thank you!

 

0 0

Replies

replied on December 17, 2021

After you get the authentication token, are you able to call any API endpoint successfully? That is, do you think there's a problem with Export specifically, or could it be with the way you are authenticating in general?

0 0
SELECTED ANSWER
replied on December 17, 2021

Hi Brian,

I think I figured it out. One of the links in my initial description lists the endpoint as
 

https://api.laserfiche.com/repository/v1/Repositories/repoID/Entries/entryId/Laserfiche.Repository.Document.edoc

vs

https://api.laserfiche.com/repository/v1-alpha/Repositories/repoID/Entries/entryID/Laserfiche.Repository.Document/edoc

It looks like 2nd one worked for me. Thank you!

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.