GET /templates/search
Search workspace templates and official Gamma explore templates. With a query, workspace hits rank by title and body text relevance and may fall back to last-edited order.
Search workspace templates and official Gamma explore templates in one request, with optional relevance ranking when you pass q.
Search the caller's workspace templates and the official Gamma explore templates. Returns two lists. With a query, workspace templates use best-effort relevance ranking against title and body text and may fall back to last-edited browse order, while explore templates use their best-effort ranking. An empty query returns both lists in browse order. Workspace browse results use last-edited order, most recent first. Workspace template IDs can be passed as the gammaId to generate-from-template, which validates eligibility at generation time and may reject some templates, such as multi-page or site-bound ones. Explore templates cannot be used with generate-from-template.
API key for authentication
Search query. Workspace templates use best-effort relevance ranking against title and body text and may fall back to last-edited browse order. Explore templates use their ranked search. When omitted, both lists are a browse.
sales pitchMaximum number of hits to return per list (1-25)
10Search results retrieved successfully
True when workspace relevance ranking failed and workspaceTemplates use last-edited browse order. Omitted otherwise.
Invalid query parameters
Invalid or missing credentials
GET /v1.0/templates/search HTTP/1.1
Host: public-api.gamma.app
X-API-KEY: YOUR_API_KEY
Accept: */*
{
"workspaceTemplates": [
{
"id": "abc123def456",
"title": "Sales Pitch Deck",
"url": "https://gamma.app/docs/Sales-Pitch-Deck-abc123",
"previewUrl": "https://cdn.gamma.app/templates/abc123/preview.png"
}
],
"workspaceDegraded": true,
"exploreTemplates": [
{
"id": "exp123def456",
"title": "Startup Pitch",
"url": "https://gamma.app/docs/Startup-Pitch-exp123",
"thumbnailUrl": "https://cdn.gamma.app/templates/exp123/thumb.png",
"previewUrl": "https://cdn.gamma.app/templates/exp123/preview.png"
}
]
}Related
POST /generations/from-template to generate from a workspace template ID
Generate from template for workflow and parameter guidance
GET /gammas/search to search existing gammas by title and body text
Last updated
Was this helpful?