Adafruit IO · Arazzo Workflow

Adafruit IO Issue and Verify Token

Version 1.0.0

Create a device token for the user, then read it back to confirm it was issued.

1 workflow 1 source API 1 provider
View Spec View on GitHub IoTInternet of ThingsMQTTMakerHobbyistCircuitPythonArduinoESP32FeatherDashboardsTime SeriesArazzoWorkflows

Provider

adafruit-io

Workflows

issue-and-verify-token
Create a token and read it back by its id.
Issues a new token for the user, then fetches it by id to verify the creation succeeded.
2 steps inputs: aioKey, token, username outputs: tokenId, verifiedToken
1
createToken
Create a new token for the user, optionally with a supplied token value.
2
verifyToken
Read the token back by its id to confirm it was issued.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Adafruit IO Issue and Verify Token
  summary: Create a device token for the user, then read it back to confirm it was issued.
  description: >-
    Provisions a scoped device token so hardware can authenticate without the
    account master key. The workflow creates a token and then reads it back by id
    to confirm it was issued, giving the caller a verified handle to the new
    credential. Every step spells out its request inline — including the username
    path parameter and the X-AIO-Key authentication header. Note: the Token
    response schema in the OpenAPI description documents only the `token` field,
    but the token `id` returned by the create call is required as the id path
    parameter on read, so it is captured here from the response body.
  version: 1.0.0
sourceDescriptions:
- name: tokensApi
  url: ../openapi/adafruit-io-tokens-api-openapi.yml
  type: openapi
workflows:
- workflowId: issue-and-verify-token
  summary: Create a token and read it back by its id.
  description: >-
    Issues a new token for the user, then fetches it by id to verify the
    creation succeeded.
  inputs:
    type: object
    required:
    - username
    - aioKey
    properties:
      username:
        type: string
        description: A valid Adafruit IO username.
      aioKey:
        type: string
        description: The Adafruit IO API key, sent in the X-AIO-Key header.
      token:
        type: string
        description: Optional token value to set; the service generates one if omitted.
  steps:
  - stepId: createToken
    description: >-
      Create a new token for the user, optionally with a supplied token value.
    operationId: createToken
    parameters:
    - name: username
      in: path
      value: $inputs.username
    - name: X-AIO-Key
      in: header
      value: $inputs.aioKey
    requestBody:
      contentType: application/json
      payload:
        token: $inputs.token
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      tokenId: $response.body#/id
      tokenValue: $response.body#/token
  - stepId: verifyToken
    description: >-
      Read the token back by its id to confirm it was issued.
    operationId: getToken
    parameters:
    - name: username
      in: path
      value: $inputs.username
    - name: id
      in: path
      value: $steps.createToken.outputs.tokenId
    - name: X-AIO-Key
      in: header
      value: $inputs.aioKey
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      verifiedToken: $response.body#/token
  outputs:
    tokenId: $steps.createToken.outputs.tokenId
    verifiedToken: $steps.verifyToken.outputs.verifiedToken

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/adafruit-io-issue-and-verify-token-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.