ThingSpeak · Arazzo Workflow

ThingSpeak Write Update and Read Last Entry

Version 1.0.0

Post a new feed entry via the form-encoded update endpoint, then read the last entry back.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub IoTInternet of ThingsAnalyticsTime SeriesMQTTMATLABSensorsTelemetryArazzoWorkflows

Provider

thingspeak

Workflows

write-update-and-read-last-entry
Post a reading with the update endpoint and verify it as the last entry.
Posts a form-encoded update with up to three field values, then reads the channel's last entry to confirm the write.
2 steps inputs: channelId, field1Value, field2Value, readApiKey, status, writeApiKey outputs: confirmedEntryId, writtenEntryId
1
postUpdate
Write a single entry to the channel via the form-encoded update endpoint.
2
readLastEntry
Read the most recent entry on the channel to confirm the posted values.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: ThingSpeak Write Update and Read Last Entry
  summary: Post a new feed entry via the form-encoded update endpoint, then read the last entry back.
  description: >-
    A read-after-write confirmation loop for a single device update. The flow
    posts a multi-field reading to the channel using the form-encoded update
    endpoint so the write API key never appears in a URL, then reads the most
    recent entry on the channel to confirm the values were ingested. 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: channelsApi
  url: ../openapi/thingspeak-channels-api-openapi.yml
  type: openapi
- name: updateApi
  url: ../openapi/thingspeak-update-api-openapi.yml
  type: openapi
workflows:
- workflowId: write-update-and-read-last-entry
  summary: Post a reading with the update endpoint and verify it as the last entry.
  description: >-
    Posts a form-encoded update with up to three field values, then reads the
    channel's last entry to confirm the write.
  inputs:
    type: object
    required:
    - channelId
    - writeApiKey
    - readApiKey
    - field1Value
    properties:
      channelId:
        type: integer
        description: Numeric id of the channel being written to and read from.
      writeApiKey:
        type: string
        description: Channel Write API Key used to authorize the update.
      readApiKey:
        type: string
        description: Channel Read API Key used to read the last entry back.
      field1Value:
        type: string
        description: Value to write into field1.
      field2Value:
        type: string
        description: Optional value to write into field2.
      status:
        type: string
        description: Optional status message to attach to the entry.
  steps:
  - stepId: postUpdate
    description: >-
      Write a single entry to the channel via the form-encoded update endpoint.
    operationId: updateChannelFeedPost
    requestBody:
      contentType: application/x-www-form-urlencoded
      payload:
        api_key: $inputs.writeApiKey
        field1: $inputs.field1Value
        field2: $inputs.field2Value
        status: $inputs.status
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      entryId: $response.body#/entry_id
      createdAt: $response.body#/created_at
  - stepId: readLastEntry
    description: >-
      Read the most recent entry on the channel to confirm the posted values.
    operationId: readLastEntry
    parameters:
    - name: channel_id
      in: path
      value: $inputs.channelId
    - name: api_key
      in: query
      value: $inputs.readApiKey
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      entryId: $response.body#/entry_id
      field1: $response.body#/field1
      field2: $response.body#/field2
  outputs:
    writtenEntryId: $steps.postUpdate.outputs.entryId
    confirmedEntryId: $steps.readLastEntry.outputs.entryId

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/thingspeak-write-update-and-read-last-entry-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.