> ## Documentation Index
> Fetch the complete documentation index at: https://docs.recoupable.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Coding Agent PR Merged Status (Admin)

> Returns the status (open, closed, or merged) for each provided GitHub pull request URL. Accepts one or more `pull_requests` query parameters containing GitHub PR URLs. Uses the GitHub REST API to check each pull request's state. Requires the authenticated account to be a Recoup admin. Authentication via x-api-key or Authorization Bearer token.



## OpenAPI

````yaml api-reference/openapi/accounts.json GET /api/admins/coding/pr
openapi: 3.1.0
info:
  title: Recoup API - Accounts
  description: >-
    API documentation for the Recoup platform - an AI agent platform for the
    music industry
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.recoupable.dev
security: []
paths:
  /api/admins/coding/pr:
    get:
      description: >-
        Returns the status (open, closed, or merged) for each provided GitHub
        pull request URL. Accepts one or more `pull_requests` query parameters
        containing GitHub PR URLs. Uses the GitHub REST API to check each pull
        request's state. Requires the authenticated account to be a Recoup
        admin. Authentication via x-api-key or Authorization Bearer token.
      parameters:
        - name: pull_requests
          in: query
          description: >-
            One or more GitHub pull request URLs to check. Repeat this parameter
            for each URL. Example:
            ?pull_requests=https://github.com/org/repo/pull/1&pull_requests=https://github.com/org/repo/pull/2
          required: true
          schema:
            type: array
            items:
              type: string
              format: uri
            minItems: 1
            maxItems: 50
          style: form
          explode: true
      responses:
        '200':
          description: PR merged status retrieved successfully
          content:
            application/json:
              schema:
                type: object
                required:
                  - status
                  - pull_requests
                properties:
                  status:
                    type: string
                    enum:
                      - success
                    description: Status of the request
                  pull_requests:
                    type: array
                    description: Status for each provided pull request URL
                    items:
                      type: object
                      required:
                        - url
                        - status
                      properties:
                        url:
                          type: string
                          format: uri
                          description: The GitHub pull request URL
                          example: https://github.com/recoupable/api/pull/42
                        status:
                          type: string
                          enum:
                            - open
                            - closed
                            - merged
                          description: The current status of the pull request
                          example: merged
        '400':
          description: Bad request - missing or invalid pull_requests parameter
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountErrorResponse'
        '401':
          description: Unauthorized - missing or invalid credentials
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountErrorResponse'
        '403':
          description: Forbidden - authenticated account is not a Recoup admin
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountErrorResponse'
      security:
        - apiKeyAuth: []
        - bearerAuth: []
components:
  schemas:
    AccountErrorResponse:
      type: object
      required:
        - status
        - message
      properties:
        status:
          type: string
          enum:
            - error
          description: Status of the request
        message:
          type: string
          description: Error message describing what went wrong
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Your Recoup API key. [Learn more](/quickstart#api-keys).
    bearerAuth:
      type: http
      scheme: bearer

````