Redirect to the external URL of a cited source
GET
/api/v1/sources/{kind}/{id}
const url = 'http://localhost:11044/api/v1/sources/example/example';const options = {method: 'GET', headers: {'X-Embabel-Api-Key': '<X-Embabel-Api-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:11044/api/v1/sources/example/example \ --header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>'Returns a 302 whose Location header carries the raw external URL, preserving URL fragments through to the browser’s final navigation.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”kind
required
string
The kind of source the cited link points at, which picks the resolver, case-sensitive; email is the kind this appliance resolves. Any other kind is answered 404
id
required
string
The source’s id as the citation carries it; for email, a provider thread id, bare or as the last :-separated segment of a form such as email:<userId>:<threadId>. 404 when no stored message has it or it has no URL
Responses
Section titled “Responses”Redirect to the external URL
Unknown source kind, or an id the resolver refuses
Media type*/*
A cited source that cannot be resolved to an external URL
object
error
required
Why: the kind has no resolver here, or the resolver does not know the id or will not show it to this caller
string

