Automating PDF Access via API Calls for Login-Restricted Content in Glide Data Tables

I am trying to access a PDF via a web embedding, but it’s not working because the PDF requires login credentials to view. The Glide platform currently doesn’t support embedding login-required content via web embedding. If the link to the PDF were public, I could use web embedding to view it.

I have another idea: to call the API and pass my credentials in the headers to access the PDF. However, the challenge is that each PDF in my case is identified by a unique URL that includes the ‘main link’ and a specific PDF ID.

My question is: Is it possible for every single record in my Glide data source to call the API for its specific URL? If yes, can someone guide me on how to fetch and access the individual URL for each record and use it to call the API?

Does your storage platform offer that type of API call? What would it return?

I think it’s do-able using make.com integration

What integration to be specific?

1 Like

Something like this:
Use a Webhook trigger in Make to listen for new or updated rows from Glide (or use Glide’s API if you have an enterprise plan).
Then in the Make scenario:

  1. HTTP module to call the PDF API using credentials in the headers.
  2. Upload the PDF to a public service like Google Drive or Cloudinary.
  3. Update Glide with the public URL (using Glide API or connected sheet).

I think OP has access to the file, it’s just that they want users to enter credentials before viewing the file.

1 Like

yes, it does offer when using simple python code it returns pdf

1 Like

There is no webhook trigger here :

1 Like

You are trying to add a new column. What Mazen suggested is a “Trigger Webhook” action.

So your users would still have to enter credentials into the Glide app itself to trigger this?

1 Like

No, actually when I tried with my python code it does not require credentials for that api it requires some headers and a token, and it is returning binary content using simple python code, if i use same url without header here it is returning “FOUND”


1 Like

if I use some header as in my python code it returns binary content of pdf and in my python code it did not require any credentials just some headers and I entered all of them, but here in glide when I entered same headers it return me 401 error :Processing: image.png…

1 Like

@ThinhDinh ? @Mazen ?

I’m not sure since I don’t know what storage solution you’re using here. A 401 error means the API call was unauthorized, usually due to missing or invalid credentials.

Ok my URL can work with headers, but there is no option in glide to enter headers?

There is.

1 Like

It is actually public URL but it requires headers and it can show pdf if headers are entered, and it is showing something like this when I tried with callAPI


but layout is not showing anything:

If it starts working and displays the PDF because my link and header are now correct, the issue lies with the web embedding not displaying it.

However, this isn’t my original requirement. I want to display the PDF using callAPI. The problem is that callAPI uses the same manually entered URL for all rows.

If the above method works, it should take an individual URL for each row and display it using web embedding. Is this possible?

Wouldn’t it be possible for you to just point the endpoint field to a column?

Yes, that worked but still pdf is not being displayed in web embedding

Results so far :


Does your platform return any sort of public URL instead of this?