Generate a viewer reroute URL
client.viewer.studies.rerouteURL(StudyRerouteURLParams { studyId, studyInstanceUid } body?, RequestOptionsoptions?): StudyRerouteURLResponse { url }
POST/v1/viewer/studies/reroute-url
Generates a tokenized URL that redirects users directly to the Avara Viewer for the specified study. The URL includes authentication and is time-limited for security.
Generate a viewer reroute URL
import Avara from 'avara-software';
const client = new Avara({
apiKey: process.env['AVARA_API_KEY'], // This is the default and can be omitted
});
const response = await client.viewer.studies.rerouteURL();
console.log(response.url);{
"url": "https://viewer.avarasoftware.com/study/stu_1234?token=abc123"
}Returns Examples
{
"url": "https://viewer.avarasoftware.com/study/stu_1234?token=abc123"
}