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

# /eth/v1/validator/duties/sync/{epoch}

> Get sync committee duties

```bash title="Mainnet" theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
curl -X POST \
    "https://mainnet.ethereum.validationcloud.io/v1/<YOUR_API_KEY_HERE>/eth/v1/validator/duties/sync/490000" \
    -H "Content-Type: application/json" \
    -d '["1", "2"]'
```

```bash title="Testnet" theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
curl -X POST \
    "https://sepolia.ethereum.validationcloud.io/v1/<YOUR_API_KEY_HERE>/eth/v1/validator/duties/sync/362000" \
    -H "Content-Type: application/json" \
    -d '["1", "2"]'
```


## OpenAPI

````yaml nodeapi/openapi/beacon-node-oapi-v4.json POST /eth/v1/validator/duties/sync/{epoch}
openapi: 3.1.0
info:
  title: Eth Beacon Node API
  version: v4.0.0 - Ethereum Proof-of-Stake Consensus Specification v1.5.0
  description: >-
    Subset of the Ethereum Beacon Node API v4.0.0 for routes added after the
    v2.3.0 spec used by the other beacon pages.
servers:
  - url: https://mainnet.ethereum.validationcloud.io/v1/<YOUR_API_KEY_HERE>/
    description: Mainnet Beacon API
  - url: https://sepolia.ethereum.validationcloud.io/v1/<YOUR_API_KEY_HERE>/
    description: Sepolia Beacon API
security: []
tags:
  - name: Beacon
    description: Set of endpoints to query beacon chain.
  - name: Config
    description: Endpoints to query chain configuration, specification, and fork schedules.
  - name: Debug
    description: Set of endpoints to debug chain and shouldn't be exposed publicly.
  - name: Node
    description: Endpoints to query node related information.
  - name: Validator
    description: Endpoints intended for validator clients.
  - name: ValidatorRequiredApi
    description: >
      Minimal set of endpoints to enable a working validator implementation.


      [Checkout validator flow](./validator-flow.md) to learn how to use this
      api.
  - name: Rewards
    description: Endpoints to query rewards and penalties for validators.
paths:
  /eth/v1/validator/duties/sync/{epoch}:
    post:
      tags:
        - ValidatorRequiredApi
        - Validator
      summary: Get sync committee duties
      description: >-
        Requests the beacon node to provide a set of sync committee duties for a
        particular epoch.
      operationId: getSyncCommitteeDuties
      parameters:
        - name: epoch
          description: >-
            epoch // EPOCHS_PER_SYNC_COMMITTEE_PERIOD <= current_epoch //
            EPOCHS_PER_SYNC_COMMITTEE_PERIOD + 1
          in: path
          required: true
          schema:
            type: string
            example: '1'
      requestBody:
        description: An array of the validator indices for which to obtain the duties.
        required: true
        content:
          application/json:
            schema:
              title: GetSyncCommitteeDutiesBody
              type: array
              minItems: 1
              items:
                type: string
                example: '1'
      responses:
        '200':
          description: Success response
          content:
            application/json:
              schema:
                title: GetSyncCommitteeDutiesResponse
                type: object
                required:
                  - execution_optimistic
                  - data
                properties:
                  execution_optimistic:
                    type: boolean
                    example: false
                    description: >-
                      True if the response references an unverified execution
                      payload. Optimistic information may be invalidated at a
                      later time. If the field is not present, assume the False
                      value.
                  data:
                    type: array
                    items:
                      type: object
                      required:
                        - pubkey
                        - validator_index
                        - validator_sync_committee_indices
                      properties:
                        pubkey:
                          type: string
                          format: hex
                          pattern: ^0x[a-fA-F0-9]{96}$
                          description: >-
                            The validator's BLS public key, uniquely identifying
                            them. _48-bytes, hex encoded with 0x prefix, case
                            insensitive._
                          example: >-
                            0x93247f2209abcacf57b75a51dafae777f9dd38bc7053d1af526f220a7489a6d3a2753e5f3e8b1cfe39b56f43611df74a
                        validator_index:
                          type: string
                          example: '1'
                          description: Index of validator in validator registry.
                        validator_sync_committee_indices:
                          type: array
                          description: The indices of the validator in the sync committee.
                          minItems: 1
                          items:
                            type: string
                            example: '1'
        '400':
          description: Invalid epoch or index
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - message
                properties:
                  code:
                    description: >-
                      Either specific error code in case of invalid request or
                      http status code
                    type: number
                    example: 404
                  message:
                    description: Message describing error
                    type: string
                  stacktraces:
                    description: Optional stacktraces, sent when node is in debug mode
                    type: array
                    items:
                      type: string
              example:
                code: 400
                message: 'Invalid epoch: -2'
        '500':
          description: Beacon node internal error.
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - message
                properties:
                  code:
                    description: >-
                      Either specific error code in case of invalid request or
                      http status code
                    type: number
                    example: 404
                  message:
                    description: Message describing error
                    type: string
                  stacktraces:
                    description: Optional stacktraces, sent when node is in debug mode
                    type: array
                    items:
                      type: string
              example:
                code: 500
                message: Internal server error
        '503':
          description: Beacon node is currently syncing, try again later.
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - message
                properties:
                  code:
                    description: >-
                      Either specific error code in case of invalid request or
                      http status code
                    type: number
                    example: 404
                  message:
                    description: Message describing error
                    type: string
                  stacktraces:
                    description: Optional stacktraces, sent when node is in debug mode
                    type: array
                    items:
                      type: string
              example:
                code: 503
                message: >-
                  Beacon node is currently syncing and not serving request on
                  that endpoint

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.