Soracom · Arazzo Workflow

Soracom Create Monthly Traffic Event Handler

Version 1.0.0

Create an event handler that caps a group's monthly traffic and notifies the operator, then verify it.

1 workflow 1 source API 1 provider
View Spec View on GitHub IoTCellularLPWANSIMLoRaWANSigfoxMVNOConnectivityEdgeJapanArazzoWorkflows

Provider

soracom

Workflows

create-traffic-event-handler
Create and verify a monthly-traffic event handler for a SIM group.
Lists existing group-targeted handlers, creates a SubscriberMonthlyTrafficRule handler that throttles speed class and emails the operator on threshold, and reads the new handler back to confirm it is active.
3 steps inputs: limitTotalTrafficMegaByte, name, targetGroupId, throttledSpeedClass outputs: handlerId, status
1
listExisting
List existing group-targeted event handlers to provide context before creating a new one.
2
createHandler
Create the monthly-traffic event handler that throttles the speed class and emails the operator when the group crosses the traffic threshold.
3
confirmHandler
Read the created handler back to confirm it exists and is active.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Soracom Create Monthly Traffic Event Handler
  summary: Create an event handler that caps a group's monthly traffic and notifies the operator, then verify it.
  description: >-
    Stands up a Soracom event handler that watches the monthly data traffic of
    all SIMs in a target group and, once a megabyte threshold is crossed, throttles
    the speed class and emails the operator. The workflow lists existing handlers
    for the group for context, creates the new handler with its rule and action
    configuration inline, and reads the created handler back to confirm it is
    active. 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: eventhandlerApi
  url: ../openapi/soracom-eventhandler-api-openapi.yml
  type: openapi
workflows:
- workflowId: create-traffic-event-handler
  summary: Create and verify a monthly-traffic event handler for a SIM group.
  description: >-
    Lists existing group-targeted handlers, creates a SubscriberMonthlyTrafficRule
    handler that throttles speed class and emails the operator on threshold, and
    reads the new handler back to confirm it is active.
  inputs:
    type: object
    required:
    - name
    - targetGroupId
    - limitTotalTrafficMegaByte
    properties:
      name:
        type: string
        description: A human-readable name for the event handler.
      targetGroupId:
        type: string
        description: The group ID whose SIMs the handler monitors.
      limitTotalTrafficMegaByte:
        type: integer
        description: The monthly traffic threshold in MiB that triggers the actions.
      throttledSpeedClass:
        type: string
        description: The speed class to switch SIMs to once the threshold is crossed.
        default: s1.minimum
  steps:
  - stepId: listExisting
    description: >-
      List existing group-targeted event handlers to provide context before
      creating a new one.
    operationId: listEventHandlers
    parameters:
    - name: target
      in: query
      value: group
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      existingHandlers: $response.body
  - stepId: createHandler
    description: >-
      Create the monthly-traffic event handler that throttles the speed class
      and emails the operator when the group crosses the traffic threshold.
    operationId: createEventHandler
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.name
        status: active
        targetGroupId: $inputs.targetGroupId
        ruleConfig:
          type: SubscriberMonthlyTrafficRule
          properties:
            limitTotalTrafficMegaByte: $inputs.limitTotalTrafficMegaByte
            inactiveTimeoutDateConst: BEGINNING_OF_NEXT_MONTH
        actionConfigList:
        - type: ChangeSpeedClassAction
          properties:
            executionDateTimeConst: IMMEDIATELY
            speedClass: $inputs.throttledSpeedClass
        - type: SendMailToOperatorAction
          properties:
            executionDateTimeConst: IMMEDIATELY
            title: Monthly traffic limit reached
            message: The monthly data traffic limit for the group has been reached and the speed class has been throttled.
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      handlerId: $response.body#/handlerId
  - stepId: confirmHandler
    description: >-
      Read the created handler back to confirm it exists and is active.
    operationId: getEventHandler
    parameters:
    - name: handler_id
      in: path
      value: $steps.createHandler.outputs.handlerId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      status: $response.body#/status
      name: $response.body#/name
  outputs:
    handlerId: $steps.createHandler.outputs.handlerId
    status: $steps.confirmHandler.outputs.status

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/soracom-create-traffic-event-handler-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.