---
updatedAt: 2026-06-12T14:47:33.000Z
agentTools:
  projectIndex: https://docs.formant.io/llms.txt
---

# Lastest value for metadata id

Resource: streams
Authorized roles: viewer

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "MetadataWithCurrentValue": {
        "properties": {
          "currentValueTime": {
            "format": "date-time",
            "type": "string"
          },
          "currentValue": {
            "type": "object"
          },
          "id": {
            "format": "uuid",
            "type": "string"
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string"
          },
          "tags": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "organizationId": {
            "format": "uuid",
            "type": "string"
          },
          "deviceId": {
            "format": "uuid",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "bitset",
              "localization",
              "point cloud",
              "location",
              "file",
              "health",
              "transform tree",
              "battery",
              "video",
              "numeric set",
              "json",
              "image",
              "numeric",
              "text"
            ]
          },
          "flushedToClickhouse": {
            "type": "boolean"
          }
        },
        "type": "object",
        "required": [
          "organizationId",
          "deviceId",
          "name",
          "type"
        ]
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "info": {
    "title": "Formant query-api",
    "version": "1.357.8"
  },
  "openapi": "3.0.0",
  "paths": {
    "/metadata/{id}/current-value": {
      "get": {
        "operationId": "MetadataController.lastestValueForMetadataId",
        "parameters": [
          {
            "in": "header",
            "name": "app-id",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 1,
              "maximum": 9007199254740991
            },
            "in": "query",
            "name": "rangeDays",
            "required": false
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetadataWithCurrentValue"
                }
              }
            },
            "description": ""
          }
        },
        "summary": "Lastest value for metadata id",
        "tags": [
          "Metadata"
        ],
        "description": "Resource: streams\nAuthorized roles: viewer",
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api.formant.io/v1/queries"
    }
  ]
}
```