Response shape — PublicAgentView
Every endpoint that returns an agent object uses the same 8-field projection:
Endpoints
List guest-published agents
guest_access: true and active: true as an array of PublicAgentView objects.
Auth: None.
Response:
Get a single agent’s metadata
PublicAgentView for one guest-published agent.
Auth: None.
Path parameters:
Response:
Get a cover image
Content-Type is inferred from the file extension (.png → image/png, .webp → image/webp, otherwise image/jpeg). Cached for 5 minutes (Cache-Control: public, max-age=300).
Auth: None.
Path parameters:
Response:
guest_has_cover field from /public-agents or /public-agents/{id}/meta to determine whether a cover image exists before calling this endpoint.
Verify a password-gated agent’s password
guest_auth_mode: "password". On success, the client should pass the verified password in the x-guest-password header on subsequent run calls.
Auth: None. Rate-limited per client IP — the limiter fires before any database lookup or bcrypt comparison, so every request (successful or not) counts against the budget to prevent timing-based oracle attacks.
Path parameters:
Request body:
204 response means the password is correct. Store it (in memory for the session) and send it as x-guest-password on every run call to the same agent.
Related pages
Agent runs
Stream or invoke an agent, including guest-mode runs with
x-guest-password.REST introduction
Authentication overview, streaming semantics, and the full endpoint index.