Attachment api download link is redirecting
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
13 hours ago
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
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
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.
- Same browser, already logged into the instance: the link opens fine, no prompt.
- Script or integration calling it: pass an OAuth token or basic auth credentials in the Authorization header.
- 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