Redirect Routes
Publica.la exposes automatic redirect endpoints and URL parameters that provide convenient access to content and streamlined purchase flows. These features are useful for deep linking, email campaigns, marketing materials, and integrations where you need predictable URLs that automatically resolve to the correct content or initiate purchases.
Reader by External ID
Redirect users directly to the reader for a specific publication using its external identifier (such as ISBN).
Endpoint: GET https://{store-domain}/reader/external-id/{external_id}
Parameters:
external_id(path, required) - External identifier for the publication (e.g., ISBN, SKU, or custom ID)
Response:
- Status: 301 (Permanent Redirect)
- Redirects to: Reader URL for the publication matching the external ID
Use Cases:
- Deep linking from external systems using ISBN or other stable identifiers
- QR codes that open publications directly in the reader
- Integration with discovery services that use standard identifiers
Example:
GET https://example.publica.la/reader/external-id/978-3-16-148410-0
→ Redirects to: https://example.publica.la/reader/issue/12345
Notes:
- Returns 404 if no publication matches the external ID
- IP-based authentication may apply
Redirect to Latest Issue
Redirect users to the most recent products in your catalog, with optional filtering support.
Endpoint: GET https://{store-domain}/redirect-to-latest-issue
Parameters:
- Query parameters for filtering (same as library filters):
free_issues- Show only free contentyears- Filter by yearmonth- Filter by monthtaxonomy- Filter by taxonomy term (e.g., category, collection, keyword)bisac- Filter by BISAC categoryauthor- Filter by contributor/authorfile_type- Filter by content type (PDF, EPUB, etc.)continue_reading- Show partially read contentlanguage- Filter by language code
Response:
- Status: 302 (Temporary Redirect)
- Redirects to:
- Reader URL for the latest/first filtered issue, OR
- Library home if no issues match the filters
Use Cases:
- "Read latest issue" buttons on external websites
- Email campaigns that always link to the newest content
- Landing pages that automatically open the current issue
Example:
GET https://example.publica.la/redirect-to-latest-issue?years=2024
→ Redirects to: https://example.publica.la/reader/issue/67890
GET https://example.publica.la/redirect-to-latest-issue?free_issues=1
→ Redirects to latest free issue
Notes:
- Uses 302 (temporary) because the destination changes over time
- IP-based authentication may apply
- Falls back to library home if no content found
Latest Issue Cover Image
Get a redirect to the cover image URL of the most recent publication, with optional filtering.
Endpoint: GET https://{store-domain}/latest-issue-cover-image
Parameters:
- Query parameters for filtering (same as library filters):
free_issues- Show only free contentyears- Filter by yearmonth- Filter by monthtaxonomy- Filter by taxonomy term (e.g., category, collection, keyword)bisac- Filter by BISAC categoryauthor- Filter by contributor/authorfile_type- Filter by content type (PDF, EPUB, etc.)continue_reading- Show partially read contentlanguage- Filter by language code
Response:
- Status: 302 (Temporary Redirect)
- Redirects to: Cover image URL for the latest filtered issue that matches the filters
Use Cases:
- Dynamic images in email templates that always show the current issue
- Social media posts with auto-updating cover images
- External websites displaying "latest issue" covers
- RSS feeds with current cover art
Example:
<!-- Email template that always shows latest cover -->
<img src="https://example.publica.la/latest-issue-cover-image?years=2024"
alt="Latest Issue Cover" />
GET https://example.publica.la/latest-issue-cover-image?years=2024
→ Redirects to: https://cdn.publica.la/covers/issue-67890-cover.jpg
Notes:
- Uses 302 (temporary) because the destination changes when new issues are published
- Image URLs are served through CDN for optimal performance
Product Page by External ID
Redirect users to the product page using an external identifier.
Endpoint: GET https://{store-domain}/library/publication/external-id/{external_id}
Parameters:
external_id(path, required) - External identifier for the publication (e.g., ISBN, SKU, or custom ID)
Response:
- Status: 301 (Permanent Redirect)
- Redirects to: Product page URL for the issue matching the external ID
Use Cases:
- Deep linking to product pages from external catalogs
- Marketing campaigns using stable ISBN-based URLs
- Integration with discovery systems
Example:
GET https://example.publica.la/library/publication/external-id/978-3-16-148410-0