---
title: "GET /didcomm/credentials/{credentialExchangeId}/format-data"
method: GET
path: "/didcomm/credentials/{credentialExchangeId}/format-data"
tags: ["DIDComm Credentials"]
---

# GET /didcomm/credentials/{credentialExchangeId}/format-data

`GET /didcomm/credentials/{credentialExchangeId}/format-data`

Retrieve the format data associated with a credential exchange

## Path parameters

- `credentialExchangeId` string, required

## Headers

- `x-tenant-id` string

## Response `200`

Ok

- DidCommCredentialsGetFormatDataResponse
  - `proposal` CredentialFormatDataMessagePayloadCredentialFormatsProposal — Get the format data payload for a specific message from a list of CredentialFormat interfaces and a message For an indy offer, this resolves to the cred abstract format as defined here: https://github.com/hyperledger/aries-rfcs/tree/b3a3942ef052039e73cd23d847f42947f8287da2/features/0592-indy-attachments#cred-abstract-format
    - `indy` LegacyIndyCredentialProposalFormat — From T, pick a set of properties whose keys are in the union K
      - `schema_name` string
      - `schema_version` string
      - `schema_id` string
      - `cred_def_id` string
      - `schema_issuer_did` string
      - `issuer_did` string
    - `anoncreds` AnonCredsCredentialProposalFormat
      - `schema_issuer_id` string
      - `schema_name` string
      - `schema_version` string
      - `schema_id` string
      - `cred_def_id` string
      - `issuer_id` string
      - `schema_issuer_did` string
      - `issuer_did` string
  - `request` CredentialFormatDataMessagePayloadCredentialFormatsRequest — Get the format data payload for a specific message from a list of CredentialFormat interfaces and a message For an indy offer, this resolves to the cred abstract format as defined here: https://github.com/hyperledger/aries-rfcs/tree/b3a3942ef052039e73cd23d847f42947f8287da2/features/0592-indy-attachments#cred-abstract-format
    - `indy` LegacyIndyCredentialRequest
      - `prover_did` string, required
      - `entropy` string
      - `cred_def_id` string, required
      - `blinded_ms` RecordStringUnknown, required — Construct a type with a set of properties K of type T
      - `blinded_ms_correctness_proof` RecordStringUnknown, required — Construct a type with a set of properties K of type T
      - `nonce` string, required
    - `anoncreds` AnonCredsCredentialRequest
      - `prover_did` string
      - `entropy` string
      - `cred_def_id` string, required
      - `blinded_ms` RecordStringUnknown, required — Construct a type with a set of properties K of type T
      - `blinded_ms_correctness_proof` RecordStringUnknown, required — Construct a type with a set of properties K of type T
      - `nonce` string, required
  - `offer` CredentialFormatDataMessagePayloadCredentialFormatsOffer — Get the format data payload for a specific message from a list of CredentialFormat interfaces and a message For an indy offer, this resolves to the cred abstract format as defined here: https://github.com/hyperledger/aries-rfcs/tree/b3a3942ef052039e73cd23d847f42947f8287da2/features/0592-indy-attachments#cred-abstract-format
    - `indy` AnonCredsCredentialOffer
      - `schema_id` string, required
      - `cred_def_id` string, required
      - `nonce` string, required
      - `key_correctness_proof` RecordStringUnknown, required — Construct a type with a set of properties K of type T
    - `anoncreds` AnonCredsCredentialOffer
      - `schema_id` string, required
      - `cred_def_id` string, required
      - `nonce` string, required
      - `key_correctness_proof` RecordStringUnknown, required — Construct a type with a set of properties K of type T
  - `credential` CredentialFormatDataMessagePayloadCredentialFormatsCredential — Get the format data payload for a specific message from a list of CredentialFormat interfaces and a message For an indy offer, this resolves to the cred abstract format as defined here: https://github.com/hyperledger/aries-rfcs/tree/b3a3942ef052039e73cd23d847f42947f8287da2/features/0592-indy-attachments#cred-abstract-format
    - `indy` AnonCredsCredential
      - `schema_id` string, required
      - `cred_def_id` string, required
      - `rev_reg_id` string
      - `values` RecordStringAnonCredsCredentialValue, required — Construct a type with a set of properties K of type T
      - `signature` unknown, required
      - `signature_correctness_proof` unknown, required
    - `anoncreds` AnonCredsCredential
      - `schema_id` string, required
      - `cred_def_id` string, required
      - `rev_reg_id` string
      - `values` RecordStringAnonCredsCredentialValue, required — Construct a type with a set of properties K of type T
      - `signature` unknown, required
      - `signature_correctness_proof` unknown, required
  - `proposalAttributes` CredentialPreviewAttributeOptions[]
    - `name` string, required
    - `mimeType` string
    - `value` string, required
  - `offerAttributes` object[]
    - `value` string, required
    - `name` string, required
    - `mime-type` string

---

[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)
