---
agentTools:
  projectIndex: https://docs.iotcreators.com/llms.txt
---

# Get devices of subscription

Gets the serial number of the devices which are addressed by the subscription.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "IoT Creators SCS API",
    "version": "2.2"
  },
  "servers": [
    {
      "url": "https://api.scs.iot.telekom.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/m2m/subscriptions/{id}/serialNumbers": {
      "get": {
        "summary": "Get devices of subscription",
        "description": "",
        "operationId": "get-devs-of-subscription",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Id of the subscription to which devices shall be added.",
            "schema": {
              "type": "string",
              "default": "<id>"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n\t\"serialNumbers\":[\n    \"IMEI:867997031341208\",\n    \"867997031341190\"\n   ] \n} "
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "serialNumbers": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "example": "IMEI:867997031341208"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": ""
                  }
                }
              }
            }
          },
          "403": {
            "description": "403",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": ""
                  }
                }
              }
            }
          },
          "404": {
            "description": "404",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": ""
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "63a06c49e8d3b10025e2aaa7:63a06c49e8d3b10025e2ab12"
}
```