Prismatic · Arazzo Workflow

Prismatic Refresh Token and List Customers

Version 1.0.0

Exchange a refresh token for a fresh access token, then list all customers.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub Embedded iPaaSIntegrationWorkflowsConnectorsAI AgentsMCPCode-NativeLow-CodeArazzoWorkflows

Provider

prismatic

Workflows

refresh-and-list-customers
Refresh the access token then enumerate every customer tenant.
Refreshes the JWT access token from a supplied refresh token and then issues the documented listCustomers GraphQL query, returning the array of customer nodes with id, name and externalId.
2 steps inputs: refreshToken outputs: accessToken, customers
1
refreshToken
Exchange the supplied refresh token for a fresh JWT access token valid for seven days.
2
listCustomers
Run the documented listCustomers GraphQL query using the freshly minted access token as an inline bearer credential.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Prismatic Refresh Token and List Customers
  summary: Exchange a refresh token for a fresh access token, then list all customers.
  description: >-
    A foundational embedded-integration workflow that prepares an authenticated
    session before reading tenant data. The flow first exchanges a long-lived
    refresh token for a fresh JWT access token through the dedicated auth
    endpoint, then uses that access token as an inline bearer credential to run
    the documented listCustomers GraphQL query against the single Prismatic
    GraphQL endpoint. Note: Prismatic exposes a GraphQL-over-HTTP API where every
    read and write is sent through one operationId (executeGraphQLQuery); the
    distinct GraphQL operation is expressed entirely in the request body query
    string drawn from the specification examples.
  version: 1.0.0
sourceDescriptions:
- name: authenticationApi
  url: ../openapi/prismatic-authentication-api-openapi.yml
  type: openapi
- name: graphqlApi
  url: ../openapi/prismatic-graphql-api-openapi.yml
  type: openapi
workflows:
- workflowId: refresh-and-list-customers
  summary: Refresh the access token then enumerate every customer tenant.
  description: >-
    Refreshes the JWT access token from a supplied refresh token and then issues
    the documented listCustomers GraphQL query, returning the array of customer
    nodes with id, name and externalId.
  inputs:
    type: object
    required:
    - refreshToken
    properties:
      refreshToken:
        type: string
        description: A valid Prismatic refresh token used to mint a new access token.
  steps:
  - stepId: refreshToken
    description: >-
      Exchange the supplied refresh token for a fresh JWT access token valid for
      seven days.
    operationId: refreshAuthToken
    requestBody:
      contentType: application/json
      payload:
        refresh_token: $inputs.refreshToken
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      accessToken: $response.body#/access_token
      tokenType: $response.body#/token_type
      expiresIn: $response.body#/expires_in
  - stepId: listCustomers
    description: >-
      Run the documented listCustomers GraphQL query using the freshly minted
      access token as an inline bearer credential.
    operationId: executeGraphQLQuery
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $steps.refreshToken.outputs.accessToken"
    requestBody:
      contentType: application/json
      payload:
        query: >-
          query listCustomers {
            customers {
              nodes {
                id
                name
                externalId
              }
            }
          }
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      customers: $response.body#/data/customers/nodes
  outputs:
    accessToken: $steps.refreshToken.outputs.accessToken
    customers: $steps.listCustomers.outputs.customers

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/prismatic-refresh-and-list-customers-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.