---
updatedAt: 2025-09-10T20:42:52.000Z
agentTools:
  projectIndex: https://docs.rigado.com/llms.txt
---

# /devices/mac/{mac}

Returns a Device Lookup entry corresponding to a specified MAC address

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "description": "Edge Direct is Rigado's set of tools for provisioning gateways, orchestrating updates, and monitoring performance.\n\nAll endpoints require API Key authentication. Keys can be obtained with the Rigado CLI. Token and secret are set in these two headers:\n\n`X-Rigado-API-Token` and `X-Rigado-API-Secret`\n\nRequests are then made to `https://api.rigado.com/v1` followed by the resource path you are requesting.\n\nResponses are always in JSON, except for errors, which are returned as strings with an appropriate status code.\n\nExample:\n\n`curl -H \"X-Rigado-API-Token: token\" -H \"X-Rigado-API-Secret: secret\" https://api.rigado.com/v1/apps`\n\nFor a more in-depth guide on using API keys, see https://docs.rigado.com/en/legacy/edge-direct/apikey.html",
    "title": "Rigado Edge Direct API",
    "license": {
      "name": "All rights reserved"
    },
    "version": "1.0-75db578e"
  },
  "paths": {
    "/devices/mac/{mac}": {
      "get": {
        "security": [
          {
            "api_secret": [],
            "api_token": []
          }
        ],
        "description": "Returns a Device Lookup entry corresponding to a specified MAC address",
        "tags": [
          "device"
        ],
        "operationId": "getDeviceByMac",
        "parameters": [
          {
            "description": "The Device's MAC address",
            "name": "mac",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A single Device",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/DeviceLookup"
                }
              }
            }
          },
          "400": {
            "description": "Parameter is bad"
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Device not found"
          },
          "500": {
            "description": "Error marshaling Device response"
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.rigado.com/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "api_secret": {
        "type": "apiKey",
        "name": "X-Rigado-API-Secret",
        "in": "header"
      },
      "api_token": {
        "type": "apiKey",
        "name": "X-Rigado-API-Token",
        "in": "header"
      }
    },
    "schemas": {
      "DeviceLookup": {
        "description": "DeviceLookup represents a DeviceLookup Lookup entry - a mapping of MAC address to serial\nnumber and vice-versa.",
        "type": "object",
        "properties": {
          "deviceType": {
            "description": "The type of the device (sensor) such as RS40 or similar",
            "type": "string",
            "x-go-name": "DeviceType"
          },
          "mac": {
            "description": "MAC address of the device. Follows standard MAC address formatting and\nfurthermore is lowercase and without colons.",
            "type": "string",
            "x-go-name": "Mac"
          },
          "serial": {
            "description": "Serial number of the device (sensor). The following schema applies:\nis 18 characters in total\nstarts with E2O or SCAS\nwhich is followed by numbers\nends with ,TSPR03",
            "type": "string",
            "x-go-name": "Serial",
            "example": "E2O84402070,TSPR03"
          }
        },
        "x-go-package": "git.rigado.com/cascade/cascade-server/marshal"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```