> ## Documentation Index
> Fetch the complete documentation index at: https://docs.b3os.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Templates, Search, and Metrics

Work with templates, search, metrics, statistics, tags, and onboarding data.

| Method  | Endpoint                                                                                                                                        | Description                                                                                                 |
| ------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| `GET`   | [/v1/metrics/failure-rate](/api/reference/get-v1-metrics-failure-rate)                                                                          | Get overall failure rate statistics for a time period. Maximum time range is 365 days.                      |
| `GET`   | [/v1/metrics/recent-activity](/api/reference/get-v1-metrics-recent-activity)                                                                    | Get recent workflow run activity                                                                            |
| `GET`   | [/v1/metrics/runs-timeseries](/api/reference/get-v1-metrics-runs-timeseries)                                                                    | Get time-series data for workflow runs \(total, success, failure\)                                          |
| `GET`   | [/v1/metrics/summary](/api/reference/get-v1-metrics-summary)                                                                                    | Get aggregated metrics \(runs time-series, failure rate, top errors, recent activity\) in a single request. |
| `GET`   | [/v1/metrics/top-errors](/api/reference/get-v1-metrics-top-errors)                                                                              | Get most common errors with counts. Maximum time range is 365 days.                                         |
| `GET`   | [/v1/onboarding/questions](/api/reference/get-v1-onboarding-questions)                                                                          | Get active onboarding questions for the specified scope                                                     |
| `POST`  | [/v1/onboarding/responses](/api/reference/post-v1-onboarding-responses)                                                                         | Submit onboarding responses and mark onboarding as complete                                                 |
| `GET`   | [/v1/onboarding/status](/api/reference/get-v1-onboarding-status)                                                                                | Get user's onboarding completion status                                                                     |
| `GET`   | [/v1/search](/api/reference/get-v1-search)                                                                                                      | Search resources                                                                                            |
| `GET`   | [/v1/search/similar/&#123;type&#125;/&#123;id&#125;](/api/reference/get-v1-search-similar-type-id-)                                             | Find similar resources                                                                                      |
| `GET`   | [/v1/statistics](/api/reference/get-v1-statistics)                                                                                              | Get cumulative statistics for all nodes \(actions + triggers\)                                              |
| `GET`   | [/v1/statistics/&#123;type&#125;/&#123;id&#125;/usage](/api/reference/get-v1-statistics-type-id-usage)                                          | Get usage time-series data for a specific node                                                              |
| `GET`   | [/v1/statistics/action/&#123;id&#125;/latency](/api/reference/get-v1-statistics-action-id-latency)                                              | Get latency time-series data for a specific action                                                          |
| `GET`   | [/v1/tags](/api/reference/get-v1-tags)                                                                                                          | List available tags, optionally filtered by category and/or search query with pagination                    |
| `GET`   | [/v1/tags/categories](/api/reference/get-v1-tags-categories)                                                                                    | List all unique categories from tags                                                                        |
| `GET`   | [/v1/templates](/api/reference/get-v1-templates)                                                                                                | List templates by category and tags                                                                         |
| `POST`  | [/v1/templates](/api/reference/post-v1-templates)                                                                                               | Create a new workflow template                                                                              |
| `GET`   | [/v1/templates/&#123;templateId&#125;](/api/reference/get-v1-templates-template-id-)                                                            | Get template by ID                                                                                          |
| `PATCH` | [/v1/templates/&#123;templateId&#125;](/api/reference/patch-v1-templates-template-id-)                                                          | Update an existing workflow template                                                                        |
| `POST`  | [/v1/templates/&#123;templateId&#125;/rollback](/api/reference/post-v1-templates-template-id-rollback)                                          | Rollback template to a previous version                                                                     |
| `GET`   | [/v1/templates/&#123;templateId&#125;/stats](/api/reference/get-v1-templates-template-id-stats)                                                 | Get template statistics                                                                                     |
| `GET`   | [/v1/templates/&#123;templateId&#125;/versions](/api/reference/get-v1-templates-template-id-versions)                                           | List all versions of a template                                                                             |
| `GET`   | [/v1/templates/&#123;templateId&#125;/versions/&#123;versionNumber&#125;](/api/reference/get-v1-templates-template-id-versions-version-number-) | Get a specific version of a template by version number                                                      |
| `GET`   | [/v1/templates/&#123;templateId&#125;/versions/count](/api/reference/get-v1-templates-template-id-versions-count)                               | Count total versions for a specific template                                                                |
| `GET`   | [/v1/templates/by-source-workflow/&#123;workflowId&#125;](/api/reference/get-v1-templates-by-source-workflow-workflow-id-)                      | Get template by source workflow ID. Returns 200 with null data when no template exists for the workflow.    |
| `GET`   | [/v1/templates/recommended](/api/reference/get-v1-templates-recommended)                                                                        | Get personalized template recommendations based on user's tag interests                                     |