unstable

Search templates

Changed on

Lists the team's templates together with the platform's public default templates, which carry isDefault: true, with search, a visibility filter and sorts. Default templates are not listed to teams on a dedicated cluster, and those owned by another team carry zero or null usage fields. Results are newest first unless sort says otherwise; nextCursor continues the listing and is only valid with the same sort. For E2B's own clients: it may change or disappear without notice.

get/unstable/templates/search

Request

  • Base URL
    https://api.e2b.app
  • URL
    https://api.e2b.app/unstable/templates/search
  • Auth
    • API key in header X-API-Key
    • or HTTP bearer and API key in header X-Team-ID
    • or API key in header X-Admin-Token and API key in header X-Team-ID
    • or HTTP bearer and API key in header X-Team-ID

Query parameters

searchstring

Case-insensitive substring match on the template ID, its aliases and its names.

sort'created_at_desc' | 'created_at_asc' | 'updated_at_desc' | 'updated_at_asc'

Sort column and direction.

publicboolean

Only list public (true) or only non-public (false) templates.

limitinteger

Maximum number of templates to return per page.

cursorstring

Cursor returned by the previous page in {sort}|{value}|{templateID} format. Rejected if its sort does not match the request.

Response

Successfully returned the templates

nextCursorstring nullable required

Cursor of the next page, or null on the last page

Changes