Cloud Studio IoT Instance API

Map of clients, facilities, devices and endpoints.

GitHub OpenAPI

Operations 2

GET /api/v2/instance/mapping/{sequenceNumber} Map the clients, facilities, devices and endpoints of an instance #
GET /api/v2/instance/details/{sequenceNumber} Map the instance as flat lists (deprecated) #

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/cloudstudioiot:cloudstudioiot-instance-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cloudstudioiot-instance-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cloudstudioiot Instance API
  version: '2'
  contact:
    name: Cloud Studio IoT
    url: https://cloudstudioiot.com/contact
    email: info@cloud.studio
  termsOfService: https://cloudstudioiot.com/terms
  description: 'Operations tagged Instance across 2 of this provider''s published API definitions: cloudstudioiot-openapi.yaml, cloudstudioiot-openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://{host}
  description: A Cloud Studio IoT instance. Dedicated and on-premise instances use their own host.
  variables:
    host:
      default: gear.cloud.studio
- url: https://gear.cloud.studio
  description: The shared Cloud Studio IoT cloud instance.
security:
- bearerToken: []
- accessTokenQuery: []
tags:
- name: Instance
  description: Map of clients, facilities, devices and endpoints.
  externalDocs:
    url: https://cloudstudioiot.com/docs/apis-de-extraccion-de-datos/api-de-mapeo-de-instancia
paths:
  /api/v2/instance/mapping/{sequenceNumber}:
    get:
      operationId: getInstanceMapping
      tags:
      - Instance
      summary: Map the clients, facilities, devices and endpoints of an instance
      description: 'Returns the instance tree in batches: client, facility, device (with

        its address) and endpoint, each with its identifier and description.

        Start at 0, store the last sequence number received and repeat until

        the list comes back empty. Only complete branches are returned, so a

        device without endpoints does not appear. Requires the access token of

        a global administrator.'
      parameters:
      - $ref: '#/components/parameters/sequenceNumber'
      - name: maxCount
        in: query
        description: Maximum number of records to return. Defaults to 100; 500 at most.
        schema:
          type: integer
          default: 100
          maximum: 500
      responses:
        '200':
          description: A batch of the instance map. An empty list means there are no updates.
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  description: Client, facility, device and endpoint identifiers and descriptions of one branch.
        '500':
          $ref: '#/components/responses/ServiceException'
    servers:
    - url: https://{host}
      description: A Cloud Studio IoT instance. Dedicated and on-premise instances use their own host.
      variables:
        host:
          default: gear.cloud.studio
  /api/v2/instance/details/{sequenceNumber}:
    get:
      operationId: getInstanceDetails
      tags:
      - Instance
      summary: Map the instance as flat lists (deprecated)
      deprecated: true
      x-sunset: '2027-04-23'
      description: 'Deprecated: use `GET /api/v2/instance/mapping/{sequenceNumber}`

        (`getInstanceMapping`), which requires the same permissions. The

        response structure is different: this operation returns clients,

        facilities, devices and endpoints as four separate flat lists, while

        `instance/mapping` returns them as a tree (client > facility > device >

        endpoint), so code that reads the response has to be adapted. This

        operation will be removed on 2027-04-23, as announced in release notes

        v1.9.4 (https://cloudstudioiot.com/docs/release-notes/v1-9-4).'
      parameters:
      - $ref: '#/components/parameters/sequenceNumber'
      - name: maxCount
        in: query
        description: Maximum number of records to return. Defaults to 100; 500 at most.
        schema:
          type: integer
          default: 100
          maximum: 500
      responses:
        '200':
          description: A batch of the instance map as flat lists.
          content:
            application/json:
              schema:
                type: object
                properties:
                  SequenceNumber:
                    type: integer
                    format: int64
                    description: Send it as `sequenceNumber` in the next call.
                  Clients:
                    type: array
                    items:
                      type: object
                  Facilities:
                    type: array
                    items:
                      type: object
                  Devices:
                    type: array
                    items:
                      type: object
                  Endpoints:
                    type: array
                    items:
                      type: object
        '500':
          $ref: '#/components/responses/ServiceException_2'
    servers:
    - url: https://gear.cloud.studio
      description: The shared Cloud Studio IoT cloud instance.
    - url: https://{host}
      description: A Cloud Studio IoT instance. Dedicated and on-premise instances use their own host.
      variables:
        host:
          default: gear.cloud.studio
components:
  responses:
    ServiceException:
      description: The request failed. A missing, invalid or expired access token is also reported this way.
      content:
        application/json:
          schema:
            type: object
            properties:
              Exception:
                type: object
                properties:
                  ClassName:
                    type: string
                  FaultCode:
                    type: string
                  FaultData:
                    type: string
                  Message:
                    type: string
          example:
            Exception:
              ClassName: ServiceException
              FaultCode: '8001'
              FaultData: ''
              Message: The access token is invalid or it doesn't have sufficient permissions to execute the requested operation
    ServiceException_2:
      description: 'The request failed. Every error, including a missing or invalid access

        token and a wrong or missing parameter, is returned as HTTP 500 with

        this body; the API does not answer 400 or 401. Decide what to do from

        `FaultCode`, which is stable; `Message` is translated and can change.


        Common `FaultCode` values:


        | FaultCode | Meaning |

        | --- | --- |

        | 8000 | The access token has no permission for this API. |

        | 8001 | The access token is missing, does not exist or has expired. |

        | 8002 | The account is disabled. |

        | 8004 | No permission on the requested resource. |

        | 100000 | A required value is missing. |

        | 100004 | A value is not valid or exceeds a limit. |

        | 100001 | Unexpected error. |


        Retrying the same call does not fix 8000, 8001, 8002, 8004, 100000 or

        100004: correct the request or the token first.

        '
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            Exception:
              ClassName: ServiceException
              FaultCode: '8001'
              FaultData: ''
              Message: The access token is invalid or it doesn't have sufficient permissions to execute the requested operation
  parameters:
    sequenceNumber:
      name: sequenceNumber
      in: path
      required: true
      description: '`SequenceNumber` of the last item received. Use 0 to start from the beginning.'
      schema:
        type: integer
        format: int64
        minimum: 0
  schemas:
    ErrorResponse:
      type: object
      required:
      - Exception
      properties:
        Exception:
          type: object
          required:
          - FaultCode
          properties:
            ClassName:
              type: string
              description: Type of the exception on the server.
            FaultCode:
              type: string
              description: Numeric error code sent as text. Stable between versions; use it to decide how to react.
              examples:
              - '8001'
              - '100004'
            FaultData:
              type: string
              description: Additional data about the error. Usually empty.
            Message:
              type: string
              description: Human-readable description, translated to the user's language. Not stable; do not parse it.
    InstanceMap:
      type: object
      properties:
        SequenceNumber:
          type: integer
          format: int64
          description: Send it as `sequenceNumber` in the next call.
        Clients:
          type: array
          items:
            type: object
            properties:
              ClientID:
                type: integer
              ClientDescription:
                type: string
              Facilities:
                type: array
                items:
                  type: object
                  properties:
                    FacilityID:
                      type: integer
                    FacilityDescription:
                      type: string
                    Devices:
                      type: array
                      items:
                        type: object
                        properties:
                          DeviceID:
                            type: integer
                          DeviceDescription:
                            type: string
                          DeviceAddress:
                            type: string
                          Endpoints:
                            type: array
                            items:
                              type: object
                              properties:
                                EndpointID:
                                  type: integer
                                EndpointDescription:
                                  type: string
  securitySchemes:
    bearerToken:
      type: http
      scheme: bearer
      description: 'Persistent access token sent as `Authorization: Bearer {accessToken}`.'
    accessTokenQuery:
      type: apiKey
      in: query
      name: accessToken
      description: The same access token in the query string, for clients that cannot set headers.
externalDocs:
  description: Data Extraction APIs documentation
  url: https://cloudstudioiot.com/docs/apis-de-extraccion-de-datos
x-refined-from:
- cloudstudioiot-openapi.yaml
- cloudstudioiot-openapi.yaml