---
updatedAt: 2026-05-20T16:31:02.000Z
---

Fetch the complete documentation index at: https://docs.blockdaemon.com/llms.txt. Use this file to discover all available pages before exploring further. Append .md to any documentation page URL to get its markdown version.

# Get Variable by ID

Retrieves the details of a variable using its ID.

<Callout icon="💡" theme="default">
  ### **Compute Unit Value**: `10` (fixed)
</Callout>

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0.0",
    "title": "Event Streaming API",
    "description": "Creates and manages config for event streams",
    "contact": {
      "name": "Blockdaemon",
      "email": "info@blockdaemon.com",
      "url": "https://blockdaemon.com"
    },
    "x-logo": {
      "url": "https://storage.googleapis.com/blockdaemon-app-static-images/marketing/PNG/dark-logo.png",
      "altText": "Blockdaemon logo"
    }
  },
  "servers": [
    {
      "url": "https://svc.blockdaemon.com"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    },
    {
      "apiKeyAuthHeader": []
    }
  ],
  "components": {
    "securitySchemes": {
      "apiKeyAuthHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "Unlock higher TPS - Create your own API key in the [Blockdaemon App](https://app.blockdaemon.com).\n",
        "x-default": "2go1YqUcuAr4WZ2-3WgSD3c7qpatZqQuNWhTVBldKZnTSUtw"
      },
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "Opaque",
        "description": "[Legacy Auth] Unlock higher TPS - Create your own API key in the [Blockdaemon App](https://app.blockdaemon.com).\n",
        "x-default": "2go1YqUcuAr4WZ2-3WgSD3c7qpatZqQuNWhTVBldKZnTSUtw"
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "x-go-type": "ApiError",
        "x-go-name": "ApiError",
        "required": [
          "message",
          "type",
          "code",
          "status",
          "timestamp"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "HTTP error type",
            "example": "bad-request"
          },
          "code": {
            "type": "integer",
            "description": "Numeric error code",
            "example": 16384
          },
          "status": {
            "type": "integer",
            "description": "HTTP status of the error",
            "example": 500
          },
          "message": {
            "type": "string",
            "description": "Long error description",
            "example": "Oops theres been an internal error handling"
          },
          "timestamp": {
            "type": "string",
            "description": "Long error description",
            "example": "Oops theres been an internal error handling"
          }
        }
      },
      "Variable": {
        "type": "object",
        "required": [
          "id",
          "name",
          "type"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "x-go-type": "myuuid.UUID",
            "x-go-type-import": {
              "name": "myuuid",
              "path": "github.com/google/uuid"
            }
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "default": ""
          },
          "type": {
            "type": "string",
            "enum": [
              "number",
              "bool",
              "string"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      }
    }
  },
  "paths": {
    "/streaming/v2/variables/{id}": {
      "x-zuplo-path": {
        "pathMode": "open-api"
      },
      "get": {
        "tags": [
          "variable"
        ],
        "summary": "Get Variable by ID",
        "description": "Retrieves the details of a variable using its ID.",
        "operationId": "find variable by id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the variable to retrieve",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "x-go-type": "myuuid.UUID",
              "x-go-type-import": {
                "name": "myuuid",
                "path": "github.com/google/uuid"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Variable details returned",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Variable"
                }
              }
            }
          },
          "default": {
            "description": "Unexpected error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-zuplo-route": {
          "custom": {
            "product": "ub_event_streaming",
            "fh": "ubiquity",
            "target_service": "stream-configurator",
            "billing_product": "event-streaming"
          },
          "corsPolicy": "anything-goes",
          "handler": {
            "export": "urlRewriteHandler",
            "module": "$import(@zuplo/runtime)",
            "options": {
              "rewritePattern": "service://bd-workloads-${context.custom.cluster}-k8s-cluster-aegis-stream-configurator-${env.UB_ENV}/variables/${params.id}"
            }
          },
          "policies": {
            "inbound": [
              "event-streaming-default-policy"
            ],
            "outbound": []
          }
        }
      }
    }
  }
}
```