MobileAPI.dev · Arazzo Workflow

MobileAPI AI Query with Account Check

Version 1.0.0

Confirm the account, run a natural-language device query, and load the top result's detail.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub Data APIDeveloper ToolsDevice SpecificationsMobile DataPhone SpecsREST APISoftware-as-a-ServiceArazzoWorkflows

Provider

mobileapi-dev

Workflows

ai-query-with-account-check
Check the account, run an AI natural-language query, and read the top match.
Introspects the caller's account, submits a natural-language device query to the AI endpoint, and reads the full record for the top result. Branches to an end state when the AI endpoint reports the plan is not paid (403).
3 steps inputs: apiKey, query outputs: hardware, manufacturerName, topResultId, topResultName
1
whoAmI
Introspect the caller's account before spending an AI query, confirming the supplied API key authenticates successfully.
2
runAiQuery
Submit the natural-language query to the AI-powered endpoint. Returns 200 with results on a paid plan, or 403 when a paid plan is required.
3
readTopResult
Read the full device record for the top AI-query result so the caller gets the complete specification block for the best match.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: MobileAPI AI Query with Account Check
  summary: Confirm the account, run a natural-language device query, and load the top result's detail.
  description: >-
    Wraps the AI-powered natural-language query endpoint, which is restricted to
    paid plans. The workflow first introspects the caller's account via /me/,
    then submits a natural-language query. Because the AI endpoint returns 403
    when the plan is not paid, the flow branches: a successful 200 continues on
    to read the top matching device, while a 403 ends the workflow on the
    plan-required branch. 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: devicesApi
  url: ../openapi/mobileapi-dev-devices-api-openapi.yml
  type: openapi
- name: meApi
  url: ../openapi/mobileapi-dev-me-api-openapi.yml
  type: openapi
workflows:
- workflowId: ai-query-with-account-check
  summary: Check the account, run an AI natural-language query, and read the top match.
  description: >-
    Introspects the caller's account, submits a natural-language device query
    to the AI endpoint, and reads the full record for the top result. Branches
    to an end state when the AI endpoint reports the plan is not paid (403).
  inputs:
    type: object
    required:
    - apiKey
    - query
    properties:
      apiKey:
        type: string
        description: MobileAPI key, sent in the Authorization header as 'Token <apiKey>'.
      query:
        type: string
        description: Natural-language query (e.g. 'top 5 devices with most RAM').
  steps:
  - stepId: whoAmI
    description: >-
      Introspect the caller's account before spending an AI query, confirming
      the supplied API key authenticates successfully.
    operationId: me_list
    parameters:
    - name: Authorization
      in: header
      value: "Token $inputs.apiKey"
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      account: $response.body
  - stepId: runAiQuery
    description: >-
      Submit the natural-language query to the AI-powered endpoint. Returns 200
      with results on a paid plan, or 403 when a paid plan is required.
    operationId: devices_ai_query
    parameters:
    - name: query
      in: query
      value: $inputs.query
    - name: Authorization
      in: header
      value: "Token $inputs.apiKey"
    successCriteria:
    - condition: $statusCode == 200 || $statusCode == 403
    outputs:
      topResultId: $response.body#/0/id
      topResultName: $response.body#/0/name
    onSuccess:
    - name: planAllowed
      type: goto
      stepId: readTopResult
      criteria:
      - condition: $statusCode == 200
    - name: planRequired
      type: end
      criteria:
      - condition: $statusCode == 403
  - stepId: readTopResult
    description: >-
      Read the full device record for the top AI-query result so the caller
      gets the complete specification block for the best match.
    operationId: devices_read
    parameters:
    - name: id
      in: path
      value: $steps.runAiQuery.outputs.topResultId
    - name: Authorization
      in: header
      value: "Token $inputs.apiKey"
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      manufacturerName: $response.body#/manufacturer_name
      hardware: $response.body#/hardware
  outputs:
    topResultId: $steps.runAiQuery.outputs.topResultId
    topResultName: $steps.runAiQuery.outputs.topResultName
    manufacturerName: $steps.readTopResult.outputs.manufacturerName
    hardware: $steps.readTopResult.outputs.hardware

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/mobileapi-dev-ai-query-with-account-check-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.