Skip to navigation

Relay a Jina GET

View as Markdown

Routes to the host behind the service (reader→r.jina.ai, search→s.jina.ai), rewriting Authorization to Jina’s secret key. Reader and Search embed the target URL right in the path; replies may be markdown/text instead of JSON.

Authentication

AuthorizationBearer

Your per-client bearer token — the API key the gateway issued to you. Present it in Authorization: Bearer <token> form. A token that is missing, unknown, or revoked draws a 401. Before the call is sent upstream the token is removed (stripped, or swapped for the upstream’s own credential); it never makes it past the gateway.

Path parameters

serviceenumRequired

Which Jina product to use. Unlisted values get the gateway’s 404. Whatever path follows the service passes through untouched — e.g. /jina/reader/https://example.com → https://r.jina.ai/https://example.com. Model APIs (embeddings/rerank/classify) get invoked directly, e.g. /jina/embeddings.

Allowed values:

Response

Whatever the upstream answered, relayed as-is (status, headers, body). Rendered here as JSON; the true shape is the upstream provider’s to define.

Errors

401
Unauthorized Error
404
Not Found Error