---
title: "POST /governance/credential/votes"
method: POST
path: "/governance/credential/votes"
---

# POST /governance/credential/votes

`POST /governance/credential/votes`

Returns votes cast by a credential. Sorted in descending order (newer first).

## Request body

- GovernanceVotesForCredentialRequest
  - `limit` number, double
  - `credential` string, required
  - `untilBlock` string, required — block hash - inclusive
  - `after` BlockTxPair
    - `tx` string, required — tx hash
    - `block` string, required — block hash

## Response `200`

- object[]
  - `block` string, required
  - `txId` string, required
  - `votes` object[], required
    - `vote` string, required
    - `govActionId` string, required

## Other responses

- `400`
- `409`
- `422`

## Changes

- **2024-05-12** `77a569a8eb32` — 1 info
  - endpoint added
- **2022-05-10** `f39bef51175a` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/dcspark/apis/carp/changes/governance/credential/votes/post.md)

---

[API](https://skmtc.dev/dcspark/apis/carp.md) · [All operations](https://skmtc.dev/dcspark/apis/carp/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dcspark/carp/revisions/ab189523ed9a/schema)
