MuleSoft · Arazzo Workflow

MuleSoft Resolve Organization and List Environments

Version 1.0.0

Find an organization by name, fetch its details, and list its environments.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub API GatewayAPI ManagementEnterpriseIntegrationArazzoWorkflows

Provider

mulesoft

Workflows

resolve-org-and-list-environments
Look up an organization by name and enumerate its environments.
Lists accessible organizations, selects the first one returned, fetches its detail record, and lists all environments within it.
3 steps inputs: bearerToken outputs: environments, orgId, orgName
1
listOrganizations
Retrieve the organizations accessible to the authenticated user and pick the first one returned as the working organization.
2
getOrganization
Fetch the full organization record to confirm entitlements and the set of embedded environments before listing them explicitly.
3
listEnvironments
List every environment belonging to the resolved organization.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: MuleSoft Resolve Organization and List Environments
  summary: Find an organization by name, fetch its details, and list its environments.
  description: >-
    Resolves an organization from the accessible organization list by matching
    on name, retrieves the full organization record to confirm its entitlements,
    and then lists every environment belonging to that organization. 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: environmentsApi
  url: ../openapi/mulesoft-environments-api-openapi.yml
  type: openapi
- name: organizationsApi
  url: ../openapi/mulesoft-organizations-api-openapi.yml
  type: openapi
workflows:
- workflowId: resolve-org-and-list-environments
  summary: Look up an organization by name and enumerate its environments.
  description: >-
    Lists accessible organizations, selects the first one returned, fetches its
    detail record, and lists all environments within it.
  inputs:
    type: object
    required:
    - bearerToken
    properties:
      bearerToken:
        type: string
        description: Anypoint Platform bearer access token.
  steps:
  - stepId: listOrganizations
    description: >-
      Retrieve the organizations accessible to the authenticated user and pick
      the first one returned as the working organization.
    operationId: listOrganizations
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.bearerToken"
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      orgId: $response.body#/data/0/id
      orgName: $response.body#/data/0/name
  - stepId: getOrganization
    description: >-
      Fetch the full organization record to confirm entitlements and the set of
      embedded environments before listing them explicitly.
    operationId: getOrganization
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.bearerToken"
    - name: orgId
      in: path
      value: $steps.listOrganizations.outputs.orgId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      orgId: $response.body#/id
      entitlements: $response.body#/entitlements
  - stepId: listEnvironments
    description: >-
      List every environment belonging to the resolved organization.
    operationId: listEnvironments
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.bearerToken"
    - name: orgId
      in: path
      value: $steps.getOrganization.outputs.orgId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      environments: $response.body#/data
      total: $response.body#/total
  outputs:
    orgId: $steps.getOrganization.outputs.orgId
    orgName: $steps.listOrganizations.outputs.orgName
    environments: $steps.listEnvironments.outputs.environments

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/mulesoft-resolve-org-and-list-environments-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.