## GET /v1/reviews/configs

List the code review configs on the account, newest first: each kind: code_review file, its reviewers, the repository file it syncs from, and the state of that sync.

Required permissions: read:reviews.
API key: Supported.
CLI user token: Supported.
Session token: Requires the ellipsis:api scope, and the session's permissions.ellipsis rules must allow the operation.
Higher permission levels include lower levels: read < write < delete.

### Response

```text
{
  "configs": [
    {
      "config": {
        "budget": {
          "session": float
        },
        "ellipsis": {
          "description": str,
          "enabled": bool,
          "kind": "code_review",
          "metadata": {
            "annotations": {
              "[str]": str
            },
            "labels": [
              str
            ]
          },
          "name": str,
          "version": str
        },
        "output": {
          "comments": {
            "max_per_review": int,
            "max_per_reviewer": int
          },
          "on_fail": str,
          "on_pass": str,
          "summary": bool
        },
        "pull_requests": {
          "base": [
            str
          ],
          "draft": bool,
          "for": {
            "bots": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            },
            "teams": [
              str
            ],
            "users": { # bool | list[str]
              "exclude": [
                str
              ],
              "include": [ # bool
                str
              ]
            }
          },
          "head": [
            str
          ],
          "labels": [
            str
          ],
          "paths": [
            str
          ],
          "repositories": { # list[str]
            "exclude": [
              str
            ],
            "include": [
              str
            ]
          }
        },
        "reviewers": [
          {
            "budget": {
              "session": float
            },
            "claude_code": {
              "effort": str,
              "fallback_model": str,
              "max_turns": int,
              "model": str,
              "prompt": { # str | null
                "builtin": "find_bugs"
              },
              "settings": {
                "path": str,
                "repository": {
                  "name": str,
                  "owner": str,
                  "ref": str
                }
              }
            },
            "codex": {
              "effort": str,
              "model": str,
              "prompt": { # str | null
                "builtin": "find_bugs"
              }
            },
            "comments": {
              "max": int
            },
            "environment": { # str
              "compute": {
                "cpu": int,
                "idle": str,
                "memory": { # str | null
                  "gb": int,
                  "mb": int
                },
                "timeout": str
              },
              "hooks": {
                "after_checkout": { # str | null
                  "run": str
                },
                "before_start": { # str | null
                  "run": str
                },
                "build_base": { # str | null
                  "inputs": [
                    str
                  ],
                  "run": str
                },
                "post_clone": str,
                "post_start": str,
                "validate": { # str | null
                  "run": str
                }
              },
              "mcp": [ # list[str | McpServerRef | McpRemoteServer |
              # McpCommandServer]
                {
                  "args": [
                    str
                  ],
                  "command": str,
                  "env": {
                    "[str]": str
                  },
                  "name": str
                }
              ],
              "repositories": [
                {
                  "name": str,
                  "owner": str,
                  "ref": str
                }
              ],
              "variables": [
                {
                  "name": str,
                  "value": str
                }
              ]
            },
            "gemini": {
              "model": str,
              "prompt": { # str | null
                "builtin": "find_bugs"
              }
            },
            "mcp": [ # list[str | McpServerRef | McpRemoteServer |
            # McpCommandServer]
              {
                "args": [
                  str
                ],
                "command": str,
                "env": {
                  "[str]": str
                },
                "name": str
              }
            ],
            "name": str,
            "paths": [
              str
            ],
            "permissions": {
              "ellipsis": [ # str | null | list[str | EllipsisGrant]
                {
                  "allow": [ # str
                    str
                  ]
                }
              ],
              "github": [ # str | null | list[str | GithubGrant]
                {
                  "allow": [ # str
                    str
                  ],
                  "base": str,
                  "branch": str,
                  "issue": [ # int | null
                    int
                  ],
                  "limit": int,
                  "pull_request": [ # int | null
                    int
                  ],
                  "repository": [ # str | null
                    str
                  ]
                }
              ]
            },
            "skills": [
              {
                "path": str,
                "repository": {
                  "name": str,
                  "owner": str,
                  "ref": str
                }
              }
            ]
          }
        ]
      },
      "created_at": str,
      "edited_by": {
        "avatar_url": str,
        "id": int,
        "login": str,
        "name": str,
        "type": str
      },
      "id": str,
      "last_sync_error": str,
      "last_synced_commit_sha": str,
      "managed_by": str,
      "name": str,
      "pending_pull_request_url": str,
      "raw_yaml": str,
      "sha": str,
      "source_details": {
        "branch": str,
        "path": str,
        "repo_id": int
      },
      "updated_at": str
    }
  ]
}
```

### Python

```python
import os

from ellipsis import Ellipsis

client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])

result = client.reviews.configs.list()
print(result)
```

### TypeScript

```typescript
import { Ellipsis } from '@ellipsis-dev/sdk';

const client = new Ellipsis({
  apiKey: process.env.ELLIPSIS_API_TOKEN!,
});

const result = await client.reviews.configs.list();
console.log(result);
```

### cURL

```bash
curl "https://api.ellipsis.dev/v1/reviews/configs" \
  -H "Authorization: Bearer $ELLIPSIS_API_TOKEN"
```

### Response schema

```json
{
  "properties": {
    "configs": {
      "items": {
        "properties": {
          "config": {
            "additionalProperties": false,
            "properties": {
              "budget": {
                "additionalProperties": false,
                "properties": {
                  "session": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "type": "object"
              },
              "ellipsis": {
                "additionalProperties": false,
                "properties": {
                  "description": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "enabled": {
                    "default": true,
                    "type": "boolean"
                  },
                  "kind": {
                    "const": "code_review",
                    "type": "string"
                  },
                  "metadata": {
                    "additionalProperties": false,
                    "properties": {
                      "annotations": {
                        "type": "object"
                      },
                      "labels": {
                        "type": "array"
                      }
                    },
                    "required": [
                      "annotations",
                      "labels"
                    ],
                    "type": "object",
                    "x-ellipsis-returned-form-of": "ConfigMetadata"
                  },
                  "name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "version": {
                    "default": "v1",
                    "type": "string"
                  }
                },
                "required": [
                  "kind"
                ],
                "type": "object",
                "x-ellipsis-returned-form-of": "CodeReviewIdentity"
              },
              "output": {
                "additionalProperties": false,
                "properties": {
                  "comments": {
                    "additionalProperties": false,
                    "properties": {
                      "max_per_review": {
                        "type": "integer"
                      },
                      "max_per_reviewer": {
                        "type": "integer"
                      }
                    },
                    "required": [
                      "max_per_review",
                      "max_per_reviewer"
                    ],
                    "type": "object",
                    "x-ellipsis-returned-form-of": "ReviewComments"
                  },
                  "on_fail": {
                    "enum": [
                      "comment",
                      "request_changes"
                    ],
                    "type": "string"
                  },
                  "on_pass": {
                    "enum": [
                      "silent",
                      "comment",
                      "approve"
                    ],
                    "type": "string"
                  },
                  "summary": {
                    "default": false,
                    "type": "boolean"
                  }
                },
                "required": [
                  "on_pass",
                  "on_fail",
                  "summary",
                  "comments"
                ],
                "type": "object",
                "x-ellipsis-returned-form-of": "ReviewOutputConfig"
              },
              "pull_requests": {
                "additionalProperties": false,
                "properties": {
                  "base": {
                    "default": [],
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "draft": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "for": {
                    "additionalProperties": false,
                    "properties": {
                      "bots": {
                        "type": "object"
                      },
                      "teams": {
                        "type": "array"
                      },
                      "users": {
                        "type": "object"
                      }
                    },
                    "required": [
                      "bots",
                      "teams",
                      "users"
                    ],
                    "type": "object",
                    "x-ellipsis-returned-form-of": "GithubAccountSelector"
                  },
                  "head": {
                    "default": [],
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "labels": {
                    "default": [],
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "paths": {
                    "default": [],
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "repositories": {
                    "anyOf": [
                      {
                        "type": "object"
                      },
                      {
                        "type": "array"
                      }
                    ],
                    "x-ellipsis-returned-form-of": "RepositoryFilter"
                  }
                },
                "type": "object",
                "x-ellipsis-returned-form-of": "CodeReviewPullRequests"
              },
              "reviewers": {
                "items": {
                  "additionalProperties": false,
                  "allOf": [
                    {
                      "type": "object"
                    }
                  ],
                  "properties": {
                    "budget": {
                      "type": "object"
                    },
                    "claude_code": {
                      "type": "object"
                    },
                    "codex": {
                      "type": "object"
                    },
                    "comments": {
                      "type": "object"
                    },
                    "environment": {
                      "type": "object"
                    },
                    "gemini": {
                      "type": "object"
                    },
                    "mcp": {
                      "type": "array"
                    },
                    "name": {
                      "type": "string"
                    },
                    "paths": {
                      "type": "array"
                    },
                    "permissions": {
                      "type": "object"
                    },
                    "skills": {
                      "type": "array"
                    }
                  },
                  "required": [
                    "name"
                  ],
                  "type": "object",
                  "x-ellipsis-returned-form-of": "Reviewer"
                },
                "type": "array"
              }
            },
            "required": [
              "ellipsis",
              "reviewers"
            ],
            "type": "object",
            "x-ellipsis-returned-form-of": "CodeReviewConfig"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "edited_by": {
            "anyOf": [
              {
                "properties": {
                  "avatar_url": {
                    "type": "string"
                  },
                  "id": {
                    "type": "integer"
                  },
                  "login": {
                    "type": "string"
                  },
                  "name": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "type": {
                    "enum": [
                      "User",
                      "Organization",
                      "Bot",
                      "Mannequin"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "avatar_url",
                  "id",
                  "login",
                  "name",
                  "type"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "type": "string"
          },
          "last_sync_error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "last_synced_commit_sha": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "managed_by": {
            "enum": [
              "github",
              "api",
              "ellipsis"
            ],
            "type": "string"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "pending_pull_request_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "raw_yaml": {
            "type": "string"
          },
          "sha": {
            "type": "string"
          },
          "source_details": {
            "anyOf": [
              {
                "properties": {
                  "branch": {
                    "type": "string"
                  },
                  "path": {
                    "type": "string"
                  },
                  "repo_id": {
                    "type": "integer"
                  }
                },
                "required": [
                  "repo_id",
                  "path",
                  "branch"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "id",
          "sha",
          "created_at",
          "updated_at",
          "config",
          "raw_yaml",
          "managed_by"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "configs"
  ],
  "type": "object"
}
```
