---
title: "Get Agent Merge configuration for a pull request"
method: GET
path: "/agents/repos/{owner}/{repo}/pulls/{pull_number}/agent-merge"
tags: ["agent-merge"]
---

# Get Agent Merge configuration for a pull request

`GET /agents/repos/{owner}/{repo}/pulls/{pull_number}/agent-merge`

## Request

- Base URL: `https://api.github.com`
- URL: `https://api.github.com/agents/repos/{owner}/{repo}/pulls/{pull_number}/agent-merge`
- Auth: none declared

Gets the Agent Merge configuration for a pull request.

You must have write access to the repository.

OAuth app tokens and personal access tokens (classic) need the repo scope for private or internal repositories, or the public_repo scope for public repositories.

## Path parameters

- `owner` string, required
- `repo` string, required
- `pull_number` integer, required

## Response `200`

Stored configuration retrieved successfully

- object: The Agent Merge configuration for an enrolled pull request.
  - `allowed_actions` string[], required: The set of actions which Copilot may perform on the pull request.
  - `created_at` string, date-time, required: Timestamp when the pull request was enrolled for Agent Merge.
  - `updated_at` string, date-time, required: Timestamp when the Agent Merge enrollment was last updated.
  - `user` object, required: The user who most recently enabled Agent Merge for the pull request
    - `id` integer, required: The unique identifier of the user

## Other responses

- `401`: Authentication required
- `403`: Caller is not permitted to read this enrollment
- `404`: Resource or enrollment is absent, enrollment is disabled, or access is masked as not found
- `422`: Invalid request parameters
- `429`: Rate limit exceeded
- `503`: Enrollment storage or an authorization dependency is unavailable

## Changes

- **2026-10-28** (2026-03-10) `e1a732d6c9af`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/github/apis/rest/changes/agents/repos/:owner/:repo/pulls/:pull_number/agent-merge/get.md)

---

[API](https://skmtc.dev/github/apis/rest.md) - [All operations](https://skmtc.dev/github/apis/rest/llms.txt) - [OpenAPI document](https://skmtc.dev/github/apis/rest/revisions/981aa3c25d9e?raw)
