Meta · Arazzo Workflow

Meta Provision Then Cleanup Test User

Version 1.0.0

Configure a test user with an update, then delete the test user to clean up.

1 workflow 1 source API 1 provider
View Spec View on GitHub AdvertisingAnalyticsArtificial IntelligenceMessagingSocialSocial-MediaVirtual RealityArazzoWorkflows

Provider

meta

Workflows

provision-then-cleanup-test-user
Update a test user and then delete it.
Resolves the user id, applies an update, then removes the test user account.
3 steps inputs: accessToken, updates outputs: configured, deleted, userId
1
getCurrentUser
Resolve the test user's id from the access token.
2
configure
Apply the supplied configuration update to the test user node.
3
deleteTestUser
Remove the test user account to clean up after the run.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Meta Provision Then Cleanup Test User
  summary: Configure a test user with an update, then delete the test user to clean up.
  description: >-
    A lifecycle flow for test users: it resolves the current user from the
    access token, applies a configuration update to that user node, and finally
    deletes the test user so no residue is left behind. The delete edge in the
    spec is the test-user removal operation. Every step inlines its request so
    the flow can be read and executed without opening the underlying OpenAPI
    description.
  version: 1.0.0
sourceDescriptions:
- name: usersApi
  url: ../openapi/meta-users-api-openapi.yml
  type: openapi
workflows:
- workflowId: provision-then-cleanup-test-user
  summary: Update a test user and then delete it.
  description: >-
    Resolves the user id, applies an update, then removes the test user
    account.
  inputs:
    type: object
    required:
    - accessToken
    - updates
    properties:
      accessToken:
        type: string
        description: A Meta Graph API user access token for the test user.
      updates:
        type: object
        description: Map of writable User fields used to configure the test user.
  steps:
  - stepId: getCurrentUser
    description: >-
      Resolve the test user's id from the access token.
    operationId: getMe
    parameters:
    - name: access_token
      in: query
      value: $inputs.accessToken
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      userId: $response.body#/id
  - stepId: configure
    description: >-
      Apply the supplied configuration update to the test user node.
    operationId: updateUser
    parameters:
    - name: user-id
      in: path
      value: $steps.getCurrentUser.outputs.userId
    - name: access_token
      in: query
      value: $inputs.accessToken
    requestBody:
      contentType: application/json
      payload: $inputs.updates
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      success: $response.body#/success
  - stepId: deleteTestUser
    description: >-
      Remove the test user account to clean up after the run.
    operationId: deleteUser
    parameters:
    - name: user-id
      in: path
      value: $steps.getCurrentUser.outputs.userId
    - name: access_token
      in: query
      value: $inputs.accessToken
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      deleted: $response.body#/success
  outputs:
    userId: $steps.getCurrentUser.outputs.userId
    configured: $steps.configure.outputs.success
    deleted: $steps.deleteTestUser.outputs.deleted

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/meta-provision-then-cleanup-test-user-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.