pub.chive.claiming.fetchExternalPdf
Fetch external PDF through proxy to avoid CORS issues. Returns PDF binary data. Only allows fetching from trusted academic sources.
Repository
@lexicons.governance.chive.pub did:plc:egjghlwgts2hlcer2txilxeh
not from the namespace authority
Details · query
| Kind | query |
|---|---|
| Authority | claiming.chive.pub |
| Indexed |
Checks
Validunlimited-stringdefs.main.parameters.properties.externalIdNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.parameters.properties.sourceNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Fetch external PDF through proxy to avoid CORS issues. Returns PDF binary data. Only allows fetching from trusted academic sources.",
"errors": [
{
"description": "Authentication is required to fetch PDFs",
"name": "AuthenticationRequired"
},
{
"description": "Missing source or externalId parameter",
"name": "InvalidParameters"
},
{
"description": "The specified eprint does not exist in the external source",
"name": "EprintNotFound"
},
{
"description": "No PDF is available for this eprint",
"name": "PdfNotAvailable"
},
{
"description": "PDF URL is not from an allowed academic domain",
"name": "DomainNotAllowed"
},
{
"description": "Failed to fetch PDF from external source",
"name": "FetchFailed"
}
],
"output": {
"description": "PDF binary data with Content-Disposition header for download",
"encoding": "application/pdf"
},
"parameters": {
"properties": {
"externalId": {
"description": "Source-specific identifier for the eprint",
"type": "string"
},
"source": {
"description": "External source identifier (e.g., arxiv, biorxiv, medrxiv)",
"type": "string"
}
},
"required": [
"source",
"externalId"
],
"type": "params"
},
"type": "query"
}
},
"id": "pub.chive.claiming.fetchExternalPdf",
"lexicon": 1,
"revision": 1
}