We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Attachment api download link is redirecting

sasharma815
Tera Contributor

sasharma815_0-1783933943969.png


if i enter user id and password here again this dialogue box comes up why is that ? this is by the refrence of attachment api metadata link where we get the attachment link 

sasharma815_1-1783934023799.png

 

1 REPLY 1

Vikram Reddy
Tera Guru

Hello @sasharma815,

 

That's expected, and technically not a redirect: the download_link from the Attachment API is a plain instance URL, not a signed or token link. So the file endpoint needs the same authentication as any other instance request. Open it in a browser tab with no active session and you get a basic auth challenge instead, that's the native "Sign in" box you're seeing.

  1. Same browser, already logged into the instance: the link opens fine, no prompt.
  2. Script or integration calling it: pass an OAuth token or basic auth credentials in the Authorization header.
  3. Surfacing it through Virtual Agent to end users: use the Attachment output component in VA Designer instead of the raw download_link, it handles the authenticated fetch for you.

 

Thank you,
Vikram Karety
Octigo Solutions INC