Particle Logic API

The Logic API from Particle — 7 operation(s) for logic.

Operations 10

GET /v1/logic/functions/{logicFunctionId}/stats Get logic function stats #
POST /v1/logic/execute Execute logic function #
GET /v1/logic/functions List logic functions #
POST /v1/logic/functions Create a new logic function #
GET /v1/logic/functions/{logicFunctionId} Get logic function #
PUT /v1/logic/functions/{logicFunctionId} Update logic function #
DELETE /v1/logic/functions/{logicFunctionId} Delete logic function #
GET /v1/logic/functions/{logicFunctionId}/runs List logic functions runs #
GET /v1/logic/functions/{logicFunctionId}/runs/{logicRunId} Get logic function run #
GET /v1/logic/functions/{logicFunctionId}/runs/{logicRunId}/logs Get logic function run logs #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/particle-logic-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

particle-logic-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Particle Cloud Logic API
  description: The Particle Cloud REST API enables developers to interact with Particle-connected devices — calling device functions, reading variables, publishing and subscribing to events, managing SIM cards, performing OTA firmware updates, and administering product fleets. All requests use OAuth 2.0 bearer tokens and target https://api.particle.io.
  version: 1.0.0
  contact:
    name: Particle Developer Support
    url: https://docs.particle.io/reference/cloud-apis/api/
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
servers:
- url: https://api.particle.io
  description: Particle Cloud API
security:
- bearerAuth: []
tags:
- name: Logic
paths:
  /v1/logic/functions/{logicFunctionId}/stats:
    get:
      summary: Get logic function stats
      operationId: GetV1LogicFunctionsLogicfunctionidStats
      tags:
      - Logic
      responses:
        '200':
          description: Successful response
        '400':
          description: Bad request
        '401':
          description: Unauthorized
      description: Returns the specified logic function stats.
      parameters:
      - name: logicFunctionId
        in: path
        required: true
        schema:
          type: string
  /v1/logic/execute:
    post:
      summary: Execute logic function
      operationId: PostV1LogicExecute
      tags:
      - Logic
      responses:
        '200':
          description: Successful response
        '400':
          description: Bad request
        '401':
          description: Unauthorized
      description: Executes the provided logic function.
  /v1/logic/functions:
    get:
      summary: List logic functions
      operationId: GetV1LogicFunctions
      tags:
      - Logic
      responses:
        '200':
          description: Successful response
        '400':
          description: Bad request
        '401':
          description: Unauthorized
      description: Lists all logic functions belonging to the specified Sandbox or organization.
    post:
      summary: Create a new logic function
      operationId: PostV1LogicFunctions
      tags:
      - Logic
      responses:
        '200':
          description: Successful response
        '400':
          description: Bad request
        '401':
          description: Unauthorized
      description: Creates a logic function.
  /v1/logic/functions/{logicFunctionId}:
    get:
      summary: Get logic function
      operationId: GetV1LogicFunctionsLogicfunctionid
      tags:
      - Logic
      responses:
        '200':
          description: Successful response
        '400':
          description: Bad request
        '401':
          description: Unauthorized
      description: Returns the specified logic function.
      parameters:
      - name: logicFunctionId
        in: path
        required: true
        schema:
          type: string
    put:
      summary: Update logic function
      operationId: PutV1LogicFunctionsLogicfunctionid
      tags:
      - Logic
      responses:
        '200':
          description: Successful response
        '400':
          description: Bad request
        '401':
          description: Unauthorized
      description: Updates the logic function.
      parameters:
      - name: logicFunctionId
        in: path
        required: true
        schema:
          type: string
    delete:
      summary: Delete logic function
      operationId: DeleteV1LogicFunctionsLogicfunctionid
      tags:
      - Logic
      responses:
        '200':
          description: Successful response
        '400':
          description: Bad request
        '401':
          description: Unauthorized
      description: Deletes the specified logic function.
      parameters:
      - name: logicFunctionId
        in: path
        required: true
        schema:
          type: string
  /v1/logic/functions/{logicFunctionId}/runs:
    get:
      summary: List logic functions runs
      operationId: GetV1LogicFunctionsLogicfunctionidRuns
      tags:
      - Logic
      responses:
        '200':
          description: Successful response
        '400':
          description: Bad request
        '401':
          description: Unauthorized
      description: Lists all runs for the specified logic function.
      parameters:
      - name: logicFunctionId
        in: path
        required: true
        schema:
          type: string
  /v1/logic/functions/{logicFunctionId}/runs/{logicRunId}:
    get:
      summary: Get logic function run
      operationId: GetV1LogicFunctionsLogicfunctionidRunsLogicrunid
      tags:
      - Logic
      responses:
        '200':
          description: Successful response
        '400':
          description: Bad request
        '401':
          description: Unauthorized
      description: Returns the specified logic function run.
      parameters:
      - name: logicFunctionId
        in: path
        required: true
        schema:
          type: string
      - name: logicRunId
        in: path
        required: true
        schema:
          type: string
  /v1/logic/functions/{logicFunctionId}/runs/{logicRunId}/logs:
    get:
      summary: Get logic function run logs
      operationId: GetV1LogicFunctionsLogicfunctionidRunsLogicrunidLogs
      tags:
      - Logic
      responses:
        '200':
          description: Successful response
        '400':
          description: Bad request
        '401':
          description: Unauthorized
      description: Returns the specified logic function run logs.
      parameters:
      - name: logicFunctionId
        in: path
        required: true
        schema:
          type: string
      - name: logicRunId
        in: path
        required: true
        schema:
          type: string
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: OAuth 2.0 bearer token. Obtain via POST /oauth/token.
externalDocs:
  description: Particle Cloud API Reference
  url: https://docs.particle.io/reference/cloud-apis/api/