Treblle · Arazzo Workflow

Treblle Find a Project and Pull Its Analytics

Version 1.0.0

List workspace projects, select the first one, and retrieve its analytics over a date range.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub AnalyticsArtificial IntelligenceDeveloper ExperienceDocumentationGovernanceInsightsObservabilityPlatformSecurityTestingArazzoWorkflows

Provider

treblle

Workflows

find-project-and-analytics
Discover the first workspace project and retrieve its analytics.
Lists workspace projects and, when at least one exists, pulls analytics for the first project over the supplied date range.
2 steps inputs: apiKey, endDate, startDate outputs: avgResponseTime, errorRate, projectId, totalRequests
1
listProjects
List all projects in the workspace.
2
getAnalytics
Retrieve aggregated analytics for the first project over the supplied date range.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Treblle Find a Project and Pull Its Analytics
  summary: List workspace projects, select the first one, and retrieve its analytics over a date range.
  description: >-
    A discovery-to-insight flow for callers who do not yet know a project ID.
    The workflow lists all projects in the workspace, branches on whether any
    exist, and when at least one is present pulls aggregated analytics for the
    first project returned. Every step spells out its request inline so the flow
    can be read and executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: analyticsApi
  url: ../openapi/treblle-analytics-api-openapi.yml
  type: openapi
- name: projectsApi
  url: ../openapi/treblle-projects-api-openapi.yml
  type: openapi
workflows:
- workflowId: find-project-and-analytics
  summary: Discover the first workspace project and retrieve its analytics.
  description: >-
    Lists workspace projects and, when at least one exists, pulls analytics for
    the first project over the supplied date range.
  inputs:
    type: object
    required:
    - apiKey
    properties:
      apiKey:
        type: string
        description: Treblle API key passed in the Treblle-Api-Key header.
      startDate:
        type: string
        description: Analytics start date (YYYY-MM-DD).
      endDate:
        type: string
        description: Analytics end date (YYYY-MM-DD).
  steps:
  - stepId: listProjects
    description: List all projects in the workspace.
    operationId: listProjects
    parameters:
    - name: Treblle-Api-Key
      in: header
      value: $inputs.apiKey
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      firstProjectId: $response.body#/data/0/id
    onSuccess:
    - name: projectsExist
      type: goto
      stepId: getAnalytics
      criteria:
      - context: $response.body
        condition: $.data.length > 0
        type: jsonpath
    - name: noProjects
      type: end
      criteria:
      - context: $response.body
        condition: $.data.length == 0
        type: jsonpath
  - stepId: getAnalytics
    description: >-
      Retrieve aggregated analytics for the first project over the supplied
      date range.
    operationId: getProjectAnalytics
    parameters:
    - name: Treblle-Api-Key
      in: header
      value: $inputs.apiKey
    - name: projectId
      in: path
      value: $steps.listProjects.outputs.firstProjectId
    - name: start_date
      in: query
      value: $inputs.startDate
    - name: end_date
      in: query
      value: $inputs.endDate
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      totalRequests: $response.body#/total_requests
      errorRate: $response.body#/error_rate
      avgResponseTime: $response.body#/avg_response_time
  outputs:
    projectId: $steps.listProjects.outputs.firstProjectId
    totalRequests: $steps.getAnalytics.outputs.totalRequests
    errorRate: $steps.getAnalytics.outputs.errorRate
    avgResponseTime: $steps.getAnalytics.outputs.avgResponseTime

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/treblle-find-project-and-analytics-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.