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

# Voluntary exits for a slot

> Retrieve all voluntary exit operations included in the beacon block for a specific slot. A voluntary exit is a signed message from a validator indicating the epoch at which they choose to exit the active set.
Provide a slot number or use the keyword `latest` to fetch from the most recently processed slot. The response lists each voluntary exit along with block inclusion metadata.



## OpenAPI

````yaml /api/v1/bundled.yaml get /api/v1/slot/{slot}/voluntaryexits
openapi: 3.0.4
info:
  title: beaconcha.in API Documentation
  license:
    name: GPL-3.0
    url: https://www.gnu.org/licenses/gpl-3.0.en.html
  description: >-
    > ⚠️ No new features or endpoints will be added to V1. We recommend the [V2
    API](/api/overview) for all new projects. See the [migration
    guide](/api/v1-to-v2-migration).

    ## Introduction

    **Advanced and reliable API for accessing comprehensive Ethereum blockchain
    data.**


    - **Free Usage Policy:** The API is free to use under a fair use policy,
    with rate limits of 10 requests per minute per IP.

    - **Caching:** All responses are cached for 1 minute.

    - **Higher Usage Plans:** For higher usage plans, visit:
    [https://beaconcha.in/pricing](https://beaconcha.in/pricing). An API key is
    required to use these plans.


    ### API Key Usage

    API keys can be obtained at
    [/user/settings](https://beaconcha.in/user/settings) and must be included in
    requests either as a query string parameter or in the request header.


    #### Example: Query String Parameter

    ```bash

    curl https://beaconcha.in/api/v1/slot/1?apikey=<your_key>

    ```


    #### Example: Request Header

    ```bash

    curl -H 'apikey: <your_key>' https://beaconcha.in/api/v1/slot/1

    ```
  contact: {}
  version: '1.1'
servers:
  - url: https://beaconcha.in
    description: Ethereum mainnet
  - url: https://hoodi.beaconcha.in
    description: Hoodi Ethereum testnet
security:
  - ApiKeyAuthQuery: []
  - ApiKeyAuthHeader: []
tags:
  - name: Epoch
    description: Data related to consensus layer epochs
  - name: Slots
    description: Data related to consensus layer slots
  - name: Validators
    description: Data related to consensus layer validators
  - name: Rewards
    description: Data related to validator rewards
  - name: Sync Committees
    description: Data related to sync committees
  - name: Rocketpool
    description: Data related to the rocketpool protocol
  - name: ETH.Store®
    description: Data related to the ETH.Store® metric
  - name: Validator deposits
    description: Data related to execution layer validator deposits
  - name: Blocks
    description: Data related to execution layer blocks
  - name: Gas
    description: Data related to gas prices
  - name: Address
    description: Data related to ethereum addresses
  - name: Network
    description: Network data
  - name: Misc
    description: Miscellaneous data
  - name: User
    description: User data
  - name: Machine Metrics
    description: Submit machine, beacon-node, and validator-client monitoring metrics
paths:
  /api/v1/slot/{slot}/voluntaryexits:
    get:
      tags:
        - Slots
      summary: Voluntary exits for a slot
      description: >-
        Retrieve all voluntary exit operations included in the beacon block for
        a specific slot. A voluntary exit is a signed message from a validator
        indicating the epoch at which they choose to exit the active set.

        Provide a slot number or use the keyword `latest` to fetch from the most
        recently processed slot. The response lists each voluntary exit along
        with block inclusion metadata.
      operationId: listSlotVoluntaryExits
      parameters:
        - name: slot
          in: path
          description: >-
            The slot to fetch. Provide an integer slot number (>= 0) or the
            special tag `latest` for the most recently processed slot.
          required: true
          style: simple
          explode: false
          schema:
            oneOf:
              - type: integer
                minimum: 0
                description: Slot number (>= 0)
                example: 12751688
              - type: string
                enum:
                  - latest
                description: Latest processed slot
                example: latest
      responses:
        '200':
          description: >-
            The slot was found and its voluntary exits are returned in the
            `data` array. If the slot has no voluntary exits, the array is
            empty.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/types.ApiResponse'
                  - type: object
                    properties:
                      data:
                        type: array
                        items:
                          $ref: '#/components/schemas/types.APIVoluntaryExitResponse'
        '400':
          description: >-
            The request is invalid (for example, a negative slot or a slot in
            the future).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/types.ApiErrorResponse'
              examples:
                invalidSlot:
                  summary: Invalid slot parameter
                  value:
                    status: 'ERROR: invalid slot parameter'
                    data: null
                slotInFuture:
                  summary: Slot in the future
                  value:
                    status: 'ERROR: slot is in the future'
                    data: null
        '500':
          description: An unexpected server error occurred while processing your request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/types.ApiErrorResponse'
              examples:
                serverError:
                  summary: Internal error
                  value:
                    status: 'ERROR: internal server error'
                    data: null
components:
  schemas:
    types.ApiResponse:
      type: object
      description: Standard success envelope used by all API endpoints.
      properties:
        status:
          type: string
          description: >-
            HTTP-independent status of the API operation. For successful
            responses this is always "OK".
          enum:
            - OK
        data:
          description: Response payload specific to the endpoint.
          nullable: true
          x-omitempty: true
    types.APIVoluntaryExitResponse:
      type: object
      description: >-
        Voluntary exit operation included in a beacon block, with block
        inclusion metadata and exit message fields.
      properties:
        block_index:
          type: integer
          description: >-
            Zero-based index of this voluntary exit within the including block’s
            voluntary_exits list.
          example: 0
        block_root:
          type: string
          description: >-
            Root of the beacon block that included this voluntary exit
            (0x-prefixed, 32-byte hex).
          example: '0xf3fe4ac2ddab3c97ff4565e305c4451b18ff027559e0e520e884fd3de12c67a4'
        block_slot:
          type: integer
          description: Slot number of the block that included this voluntary exit.
          example: 12771160
        epoch:
          type: integer
          description: >-
            Exit epoch declared by the validator in the voluntary exit message
            (>= 0).
          minimum: 0
          example: 399098
        signature:
          type: string
          description: >-
            BLS signature over the voluntary exit message (96 bytes; 0x-prefixed
            hex with 192 hex characters).
          example: >-
            0xab6b6d826c14b6141e3406c5227ead15b133993195e96edc05fdeba998d0e0fd96e4ec5f47f6c9eec1558a59042c03d1016e679faf7300bc14737c7178c5cc01b2ea5f345e13cc2e29eeeefaf18cdcde6c0a99d80923ecf8ff8619a4d2511f6e
        validatorindex:
          type: integer
          description: Index of the validator that submitted the voluntary exit (>= 0).
          minimum: 0
          example: 1815428
    types.ApiErrorResponse:
      type: object
      description: Standard error envelope returned when a request fails.
      properties:
        status:
          type: string
          description: >-
            Human-readable error indicator and message. The value begins with
            "ERROR:" followed by details.
          example: 'ERROR: <Message>'
        data:
          type: string
          description: Optional additional context for the error. Null in most cases.
          nullable: true
          default: null
  securitySchemes:
    ApiKeyAuthQuery:
      type: apiKey
      in: query
      name: apikey
      description: ''
    ApiKeyAuthHeader:
      type: apiKey
      in: header
      name: apikey
      description: ''

````