Skip to content

Redirect to the external URL of a cited source

GET
/api/v1/sources/{kind}/{id}
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.

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

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