Treblle · Arazzo Workflow

Treblle Triage Failing API Requests

Version 1.0.0

Find requests returning a given error status code for a project and open the most recent failure's detail.

1 workflow 1 source API 1 provider
View Spec View on GitHub AnalyticsArtificial IntelligenceDeveloper ExperienceDocumentationGovernanceInsightsObservabilityPlatformSecurityTestingArazzoWorkflows

Provider

treblle

Workflows

triage-error-requests
Filter a project's requests by error status code and inspect the latest failure.
Lists requests matching a target status code, and when at least one is found, fetches the full detail of the most recent failing request.
2 steps inputs: apiKey, projectId, statusCode outputs: failingRequestId, failureCount, failureErrors, failureUrl
1
findErrors
List requests for the project filtered by the target HTTP status code, newest first.
2
inspectFailure
Retrieve the full detail of the most recent failing request, including its captured errors, source, and request/response bodies.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Treblle Triage Failing API Requests
  summary: Find requests returning a given error status code for a project and open the most recent failure's detail.
  description: >-
    A problem-triage flow that adapts Treblle's request log filtering to surface
    failures. The workflow lists requests filtered by an HTTP status code (for
    example 500), branches on whether any matching failures were captured, and
    when failures exist retrieves the full detail of the most recent one so the
    error, source, and payload can be inspected. 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: requestsApi
  url: ../openapi/treblle-requests-api-openapi.yml
  type: openapi
workflows:
- workflowId: triage-error-requests
  summary: Filter a project's requests by error status code and inspect the latest failure.
  description: >-
    Lists requests matching a target status code, and when at least one is
    found, fetches the full detail of the most recent failing request.
  inputs:
    type: object
    required:
    - apiKey
    - projectId
    - statusCode
    properties:
      apiKey:
        type: string
        description: Treblle API key passed in the Treblle-Api-Key header.
      projectId:
        type: string
        description: The project to triage for failing requests.
      statusCode:
        type: integer
        description: HTTP status code to filter requests by (e.g. 500).
  steps:
  - stepId: findErrors
    description: >-
      List requests for the project filtered by the target HTTP status code,
      newest first.
    operationId: listRequests
    parameters:
    - name: Treblle-Api-Key
      in: header
      value: $inputs.apiKey
    - name: projectId
      in: path
      value: $inputs.projectId
    - name: status_code
      in: query
      value: $inputs.statusCode
    - name: page
      in: query
      value: 1
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      failingRequestId: $response.body#/data/0/id
      total: $response.body#/meta/total
    onSuccess:
    - name: failuresFound
      type: goto
      stepId: inspectFailure
      criteria:
      - context: $response.body
        condition: $.data.length > 0
        type: jsonpath
    - name: noFailures
      type: end
      criteria:
      - context: $response.body
        condition: $.data.length == 0
        type: jsonpath
  - stepId: inspectFailure
    description: >-
      Retrieve the full detail of the most recent failing request, including
      its captured errors, source, and request/response bodies.
    operationId: getRequest
    parameters:
    - name: Treblle-Api-Key
      in: header
      value: $inputs.apiKey
    - name: projectId
      in: path
      value: $inputs.projectId
    - name: requestId
      in: path
      value: $steps.findErrors.outputs.failingRequestId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      url: $response.body#/url
      statusCode: $response.body#/status_code
      errors: $response.body#/errors
  outputs:
    failingRequestId: $steps.findErrors.outputs.failingRequestId
    failureCount: $steps.findErrors.outputs.total
    failureUrl: $steps.inspectFailure.outputs.url
    failureErrors: $steps.inspectFailure.outputs.errors

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-triage-error-requests-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.