# List the authenticated tenant's AI extraction recipes (/api-reference/data-api/getDataRecipes)

Returns recipes owned by the API key's tenant, including each active version and its field schema.

## GET /api/v1/data/recipes

List the authenticated tenant's AI extraction recipes

- Operation ID: `getDataRecipes`

- Tags: `Data API`

Returns recipes owned by the API key's tenant, including each active version and its field schema.

### Security

- Required scope: `requests:read`

- `ApiKey` (apiKey, X-API-Key)

- `ApiKeyBearer` (http)

### Parameters

- `limit` (query) — integer; Page size.

- `offset` (query) — integer; Zero-based page offset.

### Responses

- **200** — Paginated list of tenant-owned AI extraction recipes. Error body uses the documented PublicError DTO.

  - `application/json`: #/components/schemas/RecipePage

  - Example: `{
  "id": "9a20bd58-ed33-4a5b-b63f-b52bb1a62248",
  "status": "pending"
}`

- **400** — Invalid pagination values. Error body uses the documented PublicError DTO.

  - `application/json`: #/components/schemas/PublicError

  - Example: `{
  "error": "Request failed",
  "code": "VALIDATION_ERROR",
  "message": "Invalid pagination values. Error body uses the documented PublicError DTO.",
  "requestId": "req_01J2QG"
}`

- **401** — API key is missing or invalid. Error body uses the documented PublicError DTO.

  - `application/json`: #/components/schemas/PublicError

  - Example: `{
  "error": "Request failed",
  "code": "VALIDATION_ERROR",
  "message": "API key is missing or invalid. Error body uses the documented PublicError DTO.",
  "requestId": "req_01J2QG"
}`

- **403** — API key does not have the required requests:read scope. Error body uses the documented PublicError DTO.

  - `application/json`: #/components/schemas/PublicError

  - Example: `{
  "error": "Request failed",
  "code": "VALIDATION_ERROR",
  "message": "API key does not have the required requests:read scope. Error body uses the documented PublicError DTO.",
  "requestId": "req_01J2QG"
}`

- **503** — The public Data API is disabled. Error body uses the documented PublicError DTO.

  - `application/json`: #/components/schemas/PublicError

  - Example: `{
  "error": "Request failed",
  "code": "PRICING_NOT_ACTIVE",
  "message": "The public Data API is disabled. Error body uses the documented PublicError DTO.",
  "requestId": "req_01J2QG"
}`

### Referenced OpenAPI components

#### `#/components/parameters/Limit`

```json

{
  "name": "limit",
  "in": "query",
  "description": "Page size.",
  "schema": {
    "type": "integer",
    "minimum": 1,
    "maximum": 100,
    "default": 20
  }
}

```

#### `#/components/schemas/RecipePage`

```json

{
  "allOf": [
    {
      "$ref": "#/components/schemas/PaginationMetadata"
    },
    {
      "type": "object",
      "required": [
        "items"
      ],
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/RecipeListItem"
          }
        }
      }
    }
  ]
}

```

#### `#/components/schemas/PublicError`

```json

{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "error",
    "code",
    "message",
    "requestId"
  ],
  "properties": {
    "error": {
      "type": "string"
    },
    "code": {
      "type": "string",
      "description": "Stable public error code. PROXY_QUOTE_EXPIRED means the optional quote_version supplied at admission is no longer current; refresh the pricing view and submit again."
    },
    "message": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    }
  }
}

```

#### `#/components/schemas/PaginationMetadata`

```json

{
  "type": "object",
  "required": [
    "total",
    "limit",
    "offset",
    "has_more"
  ],
  "properties": {
    "total": {
      "type": "integer",
      "minimum": 0
    },
    "limit": {
      "type": "integer",
      "minimum": 1
    },
    "offset": {
      "type": "integer",
      "minimum": 0
    },
    "has_more": {
      "type": "boolean"
    }
  }
}

```

#### `#/components/schemas/RecipeListItem`

```json

{
  "allOf": [
    {
      "$ref": "#/components/schemas/Recipe"
    },
    {
      "type": "object",
      "required": [
        "active_version"
      ],
      "properties": {
        "active_version": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/RecipeListActiveVersion"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  ]
}

```

#### `#/components/schemas/Recipe`

```json

{
  "type": "object",
  "required": [
    "id",
    "name",
    "sample_url",
    "fields",
    "advanced_schema",
    "status",
    "auto_repair_enabled",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "sample_url": {
      "type": "string",
      "format": "uri"
    },
    "fields": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/components/schemas/ExtractionField"
      }
    },
    "advanced_schema": {
      "type": "boolean",
      "description": "True only for an expert-imported schema that cannot be represented by the simple fields editor."
    },
    "status": {
      "type": "string",
      "enum": [
        "draft",
        "active",
        "needs_confirmation",
        "failed",
        "deleted"
      ]
    },
    "active_version_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "auto_repair_enabled": {
      "type": "boolean"
    },
    "continuous_repair_confirmed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "tool": {
      "$ref": "#/components/schemas/WebsiteToolMetadata"
    }
  }
}

```

#### `#/components/schemas/RecipeListActiveVersion`

```json

{
  "type": "object",
  "required": [
    "id",
    "version",
    "status",
    "output_schema",
    "fields",
    "advanced_schema",
    "created_at",
    "activated_at"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "version": {
      "type": "integer",
      "minimum": 1
    },
    "status": {
      "type": "string",
      "enum": [
        "active"
      ]
    },
    "output_schema": {
      "type": "object",
      "additionalProperties": true
    },
    "fields": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/components/schemas/ExtractionField"
      }
    },
    "advanced_schema": {
      "type": "boolean",
      "description": "True when the output schema cannot be represented by the simple fields editor."
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "activated_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}

```

#### `#/components/schemas/ExtractionField`

```json

{
  "oneOf": [
    {
      "$ref": "#/components/schemas/ScalarExtractionField"
    },
    {
      "$ref": "#/components/schemas/ObjectCollectionField"
    }
  ]
}

```

#### `#/components/schemas/WebsiteToolMetadata`

```json

{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "recipe_id",
    "version_id",
    "site_origin",
    "input_schema",
    "output_schema"
  ],
  "properties": {
    "recipe_id": {
      "type": "string",
      "format": "uuid"
    },
    "version_id": {
      "type": "string",
      "format": "uuid"
    },
    "site_origin": {
      "type": "string",
      "format": "uri"
    },
    "input_schema": {
      "type": "object",
      "additionalProperties": true
    },
    "output_schema": {
      "type": "object",
      "additionalProperties": true
    }
  }
}

```

#### `#/components/schemas/ScalarExtractionField`

```json

{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "name",
    "type"
  ],
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160,
      "description": "Must be unique within its level and cannot be __proto__, prototype, or constructor."
    },
    "type": {
      "type": "string",
      "enum": [
        "string",
        "number",
        "integer",
        "boolean",
        "date",
        "url"
      ]
    },
    "required": {
      "type": "boolean",
      "default": true
    },
    "multiple": {
      "type": "boolean",
      "default": false
    },
    "description": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1000
    }
  }
}

```

#### `#/components/schemas/ObjectCollectionField`

```json

{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "name",
    "type",
    "multiple",
    "fields"
  ],
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160,
      "description": "Must be unique within its level and cannot be __proto__, prototype, or constructor."
    },
    "type": {
      "type": "string",
      "const": "object"
    },
    "required": {
      "type": "boolean",
      "default": true
    },
    "multiple": {
      "type": "boolean",
      "const": true
    },
    "description": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1000
    },
    "fields": {
      "type": "array",
      "minItems": 1,
      "maxItems": 200,
      "items": {
        "$ref": "#/components/schemas/ScalarExtractionField"
      },
      "description": "Nested fields are scalar only; nested object collections are not supported. The combined count of top-level and nested fields must not exceed 200."
    }
  }
}

```

### Complete operation object

```json

{
  "operationId": "getDataRecipes",
  "tags": [
    "Data API"
  ],
  "summary": "List the authenticated tenant's AI extraction recipes",
  "description": "Returns recipes owned by the API key's tenant, including each active version and its field schema.",
  "x-required-scope": "requests:read",
  "x-mcp-name": "data_list_recipes",
  "x-mcp-annotations": {
    "readOnlyHint": true,
    "destructiveHint": false,
    "idempotentHint": true,
    "openWorldHint": false
  },
  "security": [
    {
      "ApiKey": []
    },
    {
      "ApiKeyBearer": []
    }
  ],
  "parameters": [
    {
      "$ref": "#/components/parameters/Limit"
    },
    {
      "name": "offset",
      "in": "query",
      "description": "Zero-based page offset.",
      "schema": {
        "type": "integer",
        "minimum": 0,
        "maximum": 10000,
        "default": 0
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Paginated list of tenant-owned AI extraction recipes. Error body uses the documented PublicError DTO.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/RecipePage"
          },
          "example": {
            "id": "9a20bd58-ed33-4a5b-b63f-b52bb1a62248",
            "status": "pending"
          }
        }
      }
    },
    "400": {
      "description": "Invalid pagination values. Error body uses the documented PublicError DTO.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PublicError"
          },
          "example": {
            "error": "Request failed",
            "code": "VALIDATION_ERROR",
            "message": "Invalid pagination values. Error body uses the documented PublicError DTO.",
            "requestId": "req_01J2QG"
          }
        }
      },
      "x-docs-retryable": false
    },
    "401": {
      "description": "API key is missing or invalid. Error body uses the documented PublicError DTO.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PublicError"
          },
          "example": {
            "error": "Request failed",
            "code": "VALIDATION_ERROR",
            "message": "API key is missing or invalid. Error body uses the documented PublicError DTO.",
            "requestId": "req_01J2QG"
          }
        }
      },
      "x-docs-retryable": false
    },
    "403": {
      "description": "API key does not have the required requests:read scope. Error body uses the documented PublicError DTO.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PublicError"
          },
          "example": {
            "error": "Request failed",
            "code": "VALIDATION_ERROR",
            "message": "API key does not have the required requests:read scope. Error body uses the documented PublicError DTO.",
            "requestId": "req_01J2QG"
          }
        }
      },
      "x-docs-retryable": false
    },
    "503": {
      "description": "The public Data API is disabled. Error body uses the documented PublicError DTO.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PublicError"
          },
          "example": {
            "error": "Request failed",
            "code": "PRICING_NOT_ACTIVE",
            "message": "The public Data API is disabled. Error body uses the documented PublicError DTO.",
            "requestId": "req_01J2QG"
          }
        }
      },
      "x-docs-retryable": true
    }
  },
  "servers": [
    {
      "url": "https://api.runharvester.com",
      "description": "RunHarvester public API"
    }
  ]
}

```