HumaboamHumaboam

For agents — get this content

Use the command below to fetch this page as raw markdown.

curl -s "/api/doc/raw/agent-run-templates-user-jwt"

Agent run templates (user JWT)

Endpoints for listing agent run templates. User JWT required (not agent token). Used by the app to show available run templates (e.g. in onboarding or dashboard).

Base path: /api/agent-run-templates


GET /api/agent-run-templates/

List agent run templates. In production only templates with in_production=true are returned; in local dev (APP_ENV=local) all templates are returned.

Request

WhereNameTypeRequiredDescription
HeaderAuthorizationstringYesBearer <user JWT>

Response (200)

Array of template objects:

FieldTypeDescription
idstringUUID.
namestringTemplate name (often used as workflow_id).
descriptionstringDescription.
require_sign_inbooleanDefault true.
is_search_agentbooleanDefault true.
in_productionbooleanWhen false, excluded from list in production.
shown_in_onboardingbooleanWhether to show during onboarding.
created_atstring | nullISO 8601.
updated_atstring | nullISO 8601.

Error responses

StatusCause
401Missing or invalid user JWT.
500Unable to load agent run templates.

GET /api/agent-run-templates/{template_id}

Get a single agent run template by ID.

Request

WhereNameTypeRequiredDescription
HeaderAuthorizationstringYesBearer <user JWT>
Pathtemplate_idstringYesTemplate UUID.

Response (200)

Single template object (same shape as list items above).

Error responses

StatusCause
401Missing or invalid user JWT.
404Template not found.
500Unable to load agent run template.