Amazon Pinpoint · Arazzo Workflow

Amazon Pinpoint Launch Campaign and Await Status

Version 1.0.0

Create a campaign then poll its status until it leaves the scheduled state.

1 workflow 1 source API 1 provider
View Spec View on GitHub CampaignsCommunicationsEmailMarketingMessagingPush NotificationsSMSVoiceCustomer EngagementSegmentationJourneysAnalyticsArazzoWorkflows

Provider

amazon-pinpoint

Workflows

launch-campaign-await-status
Create a campaign and poll until its status leaves SCHEDULED.
Creates a campaign targeting the supplied segment, then repeatedly reads the campaign status, retrying while it is still SCHEDULED.
2 steps inputs: applicationId, campaignName, messageConfiguration, schedule, segmentId outputs: campaignId, campaignStatus
1
createCampaign
Create the campaign targeting the supplied segment.
2
pollCampaignStatus
Read the campaign status and retry while it remains SCHEDULED, so the flow proceeds only once the campaign has begun executing.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amazon Pinpoint Launch Campaign and Await Status
  summary: Create a campaign then poll its status until it leaves the scheduled state.
  description: >-
    Creates a campaign in a project and then polls the campaign resource until its
    status advances past SCHEDULED — for example to EXECUTING or COMPLETED — using
    a retry branch on the poll step. This lets an orchestration block until the
    campaign actually begins running. Each 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: appsApi
  url: ../openapi/amazon-pinpoint-apps-api-openapi.yml
  type: openapi
workflows:
- workflowId: launch-campaign-await-status
  summary: Create a campaign and poll until its status leaves SCHEDULED.
  description: >-
    Creates a campaign targeting the supplied segment, then repeatedly reads the
    campaign status, retrying while it is still SCHEDULED.
  inputs:
    type: object
    required:
    - applicationId
    - segmentId
    - campaignName
    - schedule
    - messageConfiguration
    properties:
      applicationId:
        type: string
        description: The application that owns the campaign.
      segmentId:
        type: string
        description: The segment the campaign targets.
      campaignName:
        type: string
        description: The name of the campaign to create.
      schedule:
        type: object
        description: The Schedule object that controls when the campaign runs.
      messageConfiguration:
        type: object
        description: The MessageConfiguration object describing the campaign message.
  steps:
  - stepId: createCampaign
    description: Create the campaign targeting the supplied segment.
    operationId: CreateCampaign
    parameters:
    - name: application-id
      in: path
      value: $inputs.applicationId
    requestBody:
      contentType: application/json
      payload:
        WriteCampaignRequest:
          Name: $inputs.campaignName
          SegmentId: $inputs.segmentId
          Schedule: $inputs.schedule
          MessageConfiguration: $inputs.messageConfiguration
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      campaignId: $response.body#/CampaignResponse/Id
  - stepId: pollCampaignStatus
    description: >-
      Read the campaign status and retry while it remains SCHEDULED, so the flow
      proceeds only once the campaign has begun executing.
    operationId: GetCampaign
    parameters:
    - name: application-id
      in: path
      value: $inputs.applicationId
    - name: campaign-id
      in: path
      value: $steps.createCampaign.outputs.campaignId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      campaignStatus: $response.body#/CampaignResponse/State/CampaignStatus
    onSuccess:
    - name: stillScheduled
      type: retry
      retryAfter: 5
      retryLimit: 12
      criteria:
      - context: $response.body
        condition: $.CampaignResponse.State.CampaignStatus == 'SCHEDULED'
        type: jsonpath
  outputs:
    campaignId: $steps.createCampaign.outputs.campaignId
    campaignStatus: $steps.pollCampaignStatus.outputs.campaignStatus

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/amazon-pinpoint-launch-campaign-await-status-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.