List Templates

List live published templates across workspaces (gallery). Authenticated but not workspace-scoped — the gallery is cross-workspace by design (published rows from any workspace). Does not require `X-Workspace-Id`, so a freshly signed-up user without a workspace can still browse templates. Dual-auth: Clerk JWT or `op_live_*` API key (scope `templates:read`).

Authentication

AuthorizationBearer
Clerk JWT token
OR
AuthorizationBearer

Onepin live API key (op_live_...). Test and public keys are reserved in Phase 1.

Query parameters

categorylist of enums or nullOptional

Repeat for OR, e.g. ?category=media&category=creative

Allowed values:
searchstring or nullOptional<=100 characters
sortenumOptionalDefaults to recent
Allowed values:
offsetintegerOptional>=0Defaults to 0
limitintegerOptional1-100Defaults to 20
favorites_onlybooleanOptionalDefaults to false

Response

Successful Response
datalist of objects
metaobject
paginationobject

Errors

422
Unprocessable Entity Error