---
updatedAt: 2026-04-01T09:50:54.000Z
agentTools:
  projectIndex: https://docs.getembed.ai/llms.txt
---

# Get config by ID

Retrieve a config by its ID. Allowed if the config belongs to your account or is public.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Deployments API",
    "version": "1.0.0",
    "description": "API for managing feed algorithms and feed deployment configurations.\n\n## Key Concepts\n\n- **Feed Algorithm** contain the actual algorithm code (JavaScript) that defines how a feed is built using the Algorithm DSL. Each algo has a `signature` from the validation step, proving the code was checked before deployment.\n- **Feed Configs** wire algorithms together with runtime settings — which algos to use as main feeds, which as fallbacks, cache TTLs, page sizes, and exclusion rules. A config references algos by ID.\n\n## Workflow\n\n1. Write algorithm code using the Algorithm DSL\n2. Validate it via `/algo/validate` to get a signature\n3. Save the algo via `POST /deploy/algos`\n4. Create a config referencing your algos via `POST /deploy/configs`\n5. Serve the config to users via `/deploy/serve`\n",
    "contact": {
      "name": "embed Support",
      "email": "support@mbd.xyz"
    }
  },
  "servers": [
    {
      "url": "https://api.mbd.xyz/v3/studio",
      "description": "Studio API"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Feed Configs",
      "description": "CRUD operations for feed deployment configurations. Configs wire algorithms together with runtime settings (main algos, fallbacks, cache ages, page size)."
    }
  ],
  "paths": {
    "/deploy/configs/{id}": {
      "get": {
        "operationId": "getFeedConfig",
        "tags": [
          "Feed Configs"
        ],
        "summary": "Get feed config by ID",
        "description": "Retrieve a feed config by its ID. Allowed if the config belongs to your account or is public.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            },
            "description": "Feed config ID"
          }
        ],
        "responses": {
          "200": {
            "description": "Feed config",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeedConfig"
                }
              }
            }
          },
          "400": {
            "description": "Invalid config_id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeployError"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeployError"
                }
              }
            }
          },
          "404": {
            "description": "Feed config not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeployError"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeployError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "description": "Console API key. Use `Bearer mbd-{your-api-key}`."
      }
    },
    "schemas": {
      "FeedConfig": {
        "type": "object",
        "description": "Feed deployment configuration. Wires algorithms together with runtime settings.",
        "properties": {
          "config_id": {
            "type": "integer",
            "description": "Unique config identifier"
          },
          "account_id": {
            "type": "string",
            "format": "uuid",
            "description": "Account that owns this config"
          },
          "user_id": {
            "type": "string",
            "nullable": true,
            "description": "Optional user identifier within the account"
          },
          "name": {
            "type": "string",
            "description": "Display name"
          },
          "description": {
            "type": "string",
            "description": "Config description"
          },
          "is_public": {
            "type": "boolean",
            "description": "Whether other accounts can read this config"
          },
          "feed_config": {
            "$ref": "#/components/schemas/DeployConfig"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "DeployConfig": {
        "type": "object",
        "description": "Deployment configuration that defines how algorithms are composed and served.",
        "required": [
          "main_algos"
        ],
        "properties": {
          "main_algos": {
            "type": "array",
            "description": "Main feed algorithms with weights. Items from each algo are interleaved based on weight.",
            "items": {
              "type": "object",
              "properties": {
                "algo_id": {
                  "type": "integer",
                  "description": "Feed algorithm ID"
                },
                "weight": {
                  "type": "number",
                  "description": "Relative weight for interleaving (e.g. 0.7 = 70% of items)"
                }
              }
            }
          },
          "primary_fallback": {
            "type": "integer",
            "description": "Algo ID to use when main algos are unavailable or exhausted"
          },
          "secondary_fallback": {
            "type": "integer",
            "description": "Algo ID to use when primary fallback is unavailable"
          },
          "building_timeout_ms": {
            "type": "integer",
            "default": 150,
            "description": "Maximum time in milliseconds to wait for algorithm building before serving from cache"
          },
          "main_max_cache_age_s": {
            "type": "integer",
            "default": 7200,
            "description": "Maximum cache age in seconds for main algorithm results"
          },
          "primary_fallback_max_cache_age_s": {
            "type": "integer",
            "default": 7200,
            "description": "Maximum cache age in seconds for primary fallback results"
          },
          "secondary_fallback_max_cache_age_s": {
            "type": "integer",
            "default": 600,
            "description": "Maximum cache age in seconds for secondary fallback results"
          },
          "page_size": {
            "type": "integer",
            "default": 25,
            "description": "Number of items per page in served feed"
          },
          "exclusion_rules": {
            "type": "array",
            "description": "Rules for excluding items from the served feed",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          }
        }
      },
      "DeployError": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "description": "Error message",
            "example": "Feed config not found"
          }
        }
      }
    }
  }
}
```