emnify · Arazzo Workflow

emnify Get Endpoint Usage Statistics

Version 1.0.0

Authenticate, confirm the endpoint, then read its usage and daily usage statistics.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub IoTInternet of ThingsCellular ConnectivityIoT SIMeSIMConsumer eSIMSGP.32M2MNTN-IoTSatelliteSuperNetworkArazzoWorkflows

Provider

emnify

Workflows

get-endpoint-usage-stats
Read an endpoint's usage statistics and daily usage breakdown.
Authenticates, confirms the endpoint, reads its aggregated usage stats, and then reads daily usage statistics over a date range.
4 steps inputs: applicationToken, endDate, endpointId, startDate outputs: currentMonth, dailyStats, endpointName
1
authenticate
Exchange the application token for an auth_token used as a Bearer token.
2
getEndpoint
Confirm the endpoint exists before pulling statistics.
3
getUsageStats
Read aggregated usage and cost statistics for the endpoint.
4
getDailyStats
Read per-day data and SMS usage for the supplied date range.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: emnify Get Endpoint Usage Statistics
  summary: Authenticate, confirm the endpoint, then read its usage and daily usage statistics.
  description: >-
    A usage-reporting flow. The workflow authenticates, confirms the endpoint
    exists, reads the rolled-up usage and cost statistics (last month, current
    month, last hour), and then reads the per-day data and SMS volumes for a
    supplied date range. Every step spells out its request inline, including the
    Bearer Authorization header threaded from the authenticate step.
  version: 1.0.0
sourceDescriptions:
- name: subpackageAuthenticationApi
  url: ../openapi/emnify-subpackage-authentication-api-openapi.yml
  type: openapi
- name: subpackageEndpointApi
  url: ../openapi/emnify-subpackage-endpoint-api-openapi.yml
  type: openapi
workflows:
- workflowId: get-endpoint-usage-stats
  summary: Read an endpoint's usage statistics and daily usage breakdown.
  description: >-
    Authenticates, confirms the endpoint, reads its aggregated usage stats, and
    then reads daily usage statistics over a date range.
  inputs:
    type: object
    required:
    - applicationToken
    - endpointId
    properties:
      applicationToken:
        type: string
        description: emnify application token used to obtain an auth_token.
      endpointId:
        type: string
        description: The ID of the endpoint to report on.
      startDate:
        type: string
        description: Start date for daily stats in YYYY-MM-DD format.
      endDate:
        type: string
        description: End date for daily stats in YYYY-MM-DD format.
  steps:
  - stepId: authenticate
    description: Exchange the application token for an auth_token used as a Bearer token.
    operationId: authenticate
    requestBody:
      contentType: application/json
      payload:
        application_token: $inputs.applicationToken
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      authToken: $response.body#/auth_token
  - stepId: getEndpoint
    description: Confirm the endpoint exists before pulling statistics.
    operationId: endpoint-by-id-get
    parameters:
    - name: endpoint_id
      in: path
      value: $inputs.endpointId
    - name: Authorization
      in: header
      value: Bearer $steps.authenticate.outputs.authToken
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      endpointName: $response.body#/name
  - stepId: getUsageStats
    description: Read aggregated usage and cost statistics for the endpoint.
    operationId: endpoint-stats-by-id-get
    parameters:
    - name: endpoint_id
      in: path
      value: $inputs.endpointId
    - name: Authorization
      in: header
      value: Bearer $steps.authenticate.outputs.authToken
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      currentMonth: $response.body#/current_month
      lastMonth: $response.body#/last_month
  - stepId: getDailyStats
    description: Read per-day data and SMS usage for the supplied date range.
    operationId: endpoint-stats-daily-by-id-get
    parameters:
    - name: endpoint_id
      in: path
      value: $inputs.endpointId
    - name: start_date
      in: query
      value: $inputs.startDate
    - name: end_date
      in: query
      value: $inputs.endDate
    - name: Authorization
      in: header
      value: Bearer $steps.authenticate.outputs.authToken
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      dailyStats: $response.body
  outputs:
    endpointName: $steps.getEndpoint.outputs.endpointName
    currentMonth: $steps.getUsageStats.outputs.currentMonth
    dailyStats: $steps.getDailyStats.outputs.dailyStats

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/emnify-get-endpoint-usage-stats-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.