Temporal · Arazzo Workflow

Temporal Audit API Keys for an Owner

Version 1.0.0

List a Service Account's API keys and load the detail of one of them.

1 workflow 1 source API 1 provider
View Spec View on GitHub Pro-Code-API-CompositionWorkflowsArazzoWorkflows

Provider

temporal

Workflows

audit-api-keys-for-owner
List API keys for an owner and inspect the first key's detail.
Chains listApiKeys (filtered by ownerId and ownerType, branching on whether keys exist) with getApiKey to load the first matching key's detail.
2 steps inputs: bearerToken, ownerId, ownerType outputs: apiKeys, inspectedKeyExpiry, inspectedKeyState
1
listKeys
List API keys owned by the supplied owner. The flow branches on whether the returned apiKeys array contains any entries.
2
inspectKey
Load the detail of the first API key returned to inspect its display name, expiry, and state.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Temporal Audit API Keys for an Owner
  summary: List a Service Account's API keys and load the detail of one of them.
  description: >-
    Auditing automation credentials means knowing which API keys belong to a
    given Service Account. This workflow lists API keys filtered by ownerId and
    ownerType, branches on whether any keys were returned, and loads the detail
    record for the first key so its expiry and state 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
  x-realizes-capability-ids:
  - BC-4270.40
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-4270.40
      capability_name: Developer Identity & Credential Management
      spec: temporal-api-keys-api-openapi.yml
      confidence: 0.7
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: apiKeysApi
  url: ../openapi/temporal-api-keys-api-openapi.yml
  type: openapi
workflows:
- workflowId: audit-api-keys-for-owner
  summary: List API keys for an owner and inspect the first key's detail.
  description: >-
    Chains listApiKeys (filtered by ownerId and ownerType, branching on whether
    keys exist) with getApiKey to load the first matching key's detail.
  inputs:
    type: object
    required:
    - bearerToken
    - ownerId
    - ownerType
    properties:
      bearerToken:
        type: string
        description: API key used as the Bearer token for Authorization.
      ownerId:
        type: string
        description: The owner id to filter API keys by (e.g. a Service Account id).
      ownerType:
        type: string
        description: The owner type to filter API keys by (e.g. serviceaccount or user).
  steps:
  - stepId: listKeys
    description: >-
      List API keys owned by the supplied owner. The flow branches on whether the
      returned apiKeys array contains any entries.
    operationId: listApiKeys
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.bearerToken"
    - name: ownerId
      in: query
      value: $inputs.ownerId
    - name: ownerType
      in: query
      value: $inputs.ownerType
    - name: pageSize
      in: query
      value: 100
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      apiKeys: $response.body#/apiKeys
      firstKeyId: $response.body#/apiKeys/0/id
      nextPageToken: $response.body#/nextPageToken
    onSuccess:
    - name: hasKeys
      type: goto
      stepId: inspectKey
      criteria:
      - context: $response.body
        condition: $.apiKeys.length > 0
        type: jsonpath
    - name: noKeys
      type: end
      criteria:
      - context: $response.body
        condition: $.apiKeys.length == 0
        type: jsonpath
  - stepId: inspectKey
    description: >-
      Load the detail of the first API key returned to inspect its display name,
      expiry, and state.
    operationId: getApiKey
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.bearerToken"
    - name: keyId
      in: path
      value: $steps.listKeys.outputs.firstKeyId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      state: $response.body#/state
      expiryTime: $response.body#/spec/expiryTime
      displayName: $response.body#/spec/displayName
  outputs:
    apiKeys: $steps.listKeys.outputs.apiKeys
    inspectedKeyState: $steps.inspectKey.outputs.state
    inspectedKeyExpiry: $steps.inspectKey.outputs.expiryTime

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/temporal-audit-api-keys-for-owner-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.