X (Twitter) · Arazzo Workflow

X Confirm a List and Follow It

Version 1.0.0

Read a List by id to confirm it exists, then follow that List.

1 workflow 1 source API 1 provider
View Spec View on GitHub Social-MediaMicrobloggingReal-Time DataStreamingAdvertisingContentArazzoWorkflows

Provider

twitter

Workflows

follow-list-by-id
Confirm a List by id and follow it as the authenticated user.
Chains the list lookup endpoint into the follow-list endpoint so a caller can verify and follow a List in one flow.
2 steps inputs: authUserId, authorization, listId outputs: following, listName
1
confirmList
Read the List metadata to confirm the supplied List id exists.
2
followList
Follow the confirmed List as the authenticated user.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: X Confirm a List and Follow It
  summary: Read a List by id to confirm it exists, then follow that List.
  description: >-
    Lets the authenticated user follow a curated X List after first confirming
    the List exists. The workflow reads the List metadata by id and then issues
    the follow-list request, inlining the list_id in the follow body so the
    chain reads and executes without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: listsApi
  url: ../openapi/twitter-lists-api-openapi.yml
  type: openapi
workflows:
- workflowId: follow-list-by-id
  summary: Confirm a List by id and follow it as the authenticated user.
  description: >-
    Chains the list lookup endpoint into the follow-list endpoint so a caller
    can verify and follow a List in one flow.
  inputs:
    type: object
    required:
    - authUserId
    - listId
    properties:
      authUserId:
        type: string
        description: The numeric id of the authenticated user who will follow the List.
      listId:
        type: string
        description: The numeric id of the List to confirm and follow.
      authorization:
        type: string
        description: OAuth2 user token to authorize the requests (e.g. "Bearer xxx").
  steps:
  - stepId: confirmList
    description: Read the List metadata to confirm the supplied List id exists.
    operationId: getListsById
    parameters:
    - name: id
      in: path
      value: $inputs.listId
    - name: list.fields
      in: query
      value: id,name,follower_count,private
    - name: Authorization
      in: header
      value: $inputs.authorization
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      confirmedListId: $response.body#/data/id
      listName: $response.body#/data/name
  - stepId: followList
    description: Follow the confirmed List as the authenticated user.
    operationId: followList
    parameters:
    - name: id
      in: path
      value: $inputs.authUserId
    - name: Authorization
      in: header
      value: $inputs.authorization
    requestBody:
      contentType: application/json
      payload:
        list_id: $steps.confirmList.outputs.confirmedListId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      following: $response.body#/data/following
  outputs:
    listName: $steps.confirmList.outputs.listName
    following: $steps.followList.outputs.following

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/twitter-follow-list-by-id-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.