---
agentTools:
  projectIndex: https://haventec.readme.io/llms.txt
---

# Allows an externally authenticated user e.g. a CRM user to get the list of devices of an authenticate user

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "",
    "description": "",
    "termsOfService": "",
    "contact": {
      "name": "Haventec",
      "url": "https://www.haventec.com",
      "email": "info@haventec.com"
    },
    "license": {
      "name": "Copyright 2023 Haventec",
      "url": ""
    },
    "version": "1.2"
  },
  "servers": [
    {
      "url": "https://api.haventec.com/authenticate/v1-2"
    }
  ],
  "paths": {
    "/iam/user/{userUuid}/device": {
      "get": {
        "tags": [
          "iam-controller"
        ],
        "summary": "Allows an externally authenticated user e.g. a CRM user to get the list of devices of an authenticate user",
        "operationId": "getUserDevices_1",
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "description": "application/json",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "application/json"
          },
          {
            "name": "x-api-key",
            "in": "header",
            "description": "x-api-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "userUuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "requestorUsername",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-application-uuid",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-requestor-token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IAMUserDevicesResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_"
                }
              }
            }
          },
          "500": {
            "description": "System error occurred",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse_"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "DeviceResponse": {
        "type": "object",
        "properties": {
          "deviceUuid": {
            "type": "string"
          },
          "dateCreated": {
            "type": "integer",
            "format": "int64"
          },
          "lastLogin": {
            "type": "integer",
            "format": "int64"
          },
          "failedLoginAttempts": {
            "type": "integer",
            "format": "int32"
          },
          "deviceName": {
            "type": "string"
          },
          "locked": {
            "type": "boolean"
          },
          "tempLocked": {
            "type": "boolean"
          },
          "active": {
            "type": "boolean"
          }
        }
      },
      "ErrorResponse": {
        "type": "object"
      },
      "ErrorResponse_": {
        "required": [
          "responseStatus"
        ],
        "type": "object",
        "properties": {
          "responseStatus": {
            "$ref": "#/components/schemas/ResponseStatus"
          }
        }
      },
      "IAMUserDevicesResponse": {
        "type": "object",
        "properties": {
          "responseStatus": {
            "$ref": "#/components/schemas/ResponseStatus"
          },
          "devices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DeviceResponse"
            }
          },
          "code": {
            "type": "string",
            "writeOnly": true
          },
          "message": {
            "type": "string",
            "writeOnly": true
          },
          "status": {
            "type": "string",
            "writeOnly": true
          }
        }
      },
      "ResponseStatus": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "detailedErrors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 98,
      "1": 227,
      "2": 122,
      "3": 181,
      "4": 110,
      "5": 231,
      "6": 230,
      "7": 0,
      "8": 63,
      "9": 129,
      "10": 34,
      "11": 66
    }
  }
}
```