---
title: "GET /didcomm/credentials"
method: GET
path: "/didcomm/credentials"
tags: ["DIDComm Credentials"]
---

# GET /didcomm/credentials

`GET /didcomm/credentials`

Retrieve all credential exchange records by query

## Query parameters

- `threadId` string
- `parentThreadId` string
- `connectionId` string
- `state` 'proposal-sent' | 'proposal-received' | 'offer-sent' | 'offer-received' | 'declined' | 'request-sent' | 'request-received' | 'credential-issued' | 'credential-received' | 'done' | 'abandoned' — Issue Credential states as defined in RFC 0036 and RFC 0453
- `role` 'issuer' | 'holder'

## Headers

- `x-tenant-id` string

## Response `200`

Ok

- DidCommCredentialExchangeRecord[]
  - `id` string, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time
  - `type` string, required
  - `connectionId` string
  - `threadId` string, required
  - `parentThreadId` string
  - `state` 'proposal-sent' | 'proposal-received' | 'offer-sent' | 'offer-received' | 'declined' | 'request-sent' | 'request-received' | 'credential-issued' | 'credential-received' | 'done' | 'abandoned', required — Issue Credential states as defined in RFC 0036 and RFC 0453
  - `role` 'issuer' | 'holder', required
  - `autoAcceptCredential` 'always' | 'contentApproved' | 'never' — Typing of the state for auto acceptance
  - `revocationNotification` object
    - `comment` string
    - `revocationDate` string, date-time, required
  - `errorMessage` string
  - `protocolVersion` string, required
  - `credentials` CredentialRecordBinding[], required
    - `credentialRecordType` string, required
    - `credentialRecordId` string, required
  - `credentialAttributes` CredentialPreviewAttributeOptions[]
    - `name` string, required
    - `mimeType` string
    - `value` string, required

---

[API](https://skmtc.net/openwallet-foundation/apis/credo-rest-api.md) · [All operations](https://skmtc.net/openwallet-foundation/apis/credo-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openwallet-foundation/credo-rest-api/revisions/33596742b733/schema)
