---
title: "POST /didcomm/credentials/{credentialExchangeId}/accept-offer"
method: POST
path: "/didcomm/credentials/{credentialExchangeId}/accept-offer"
tags: ["DIDComm Credentials"]
---

# POST /didcomm/credentials/{credentialExchangeId}/accept-offer

`POST /didcomm/credentials/{credentialExchangeId}/accept-offer`

Accept a credential offer as holder by sending an accept offer message
to the connection associated with the credential exchange record.

## Path parameters

- `credentialExchangeId` string, required

## Headers

- `x-tenant-id` string

## Request body

- AcceptCredentialOfferOptions
  - `credentialFormats` CredentialFormatPayloadCredentialFormatsAcceptOffer — Get the payload for a specific method from a list of CredentialFormat interfaces and a method
    - `indy` AnonCredsAcceptOfferFormat — This defines the module payload for calling CredentialsApi.acceptOffer. No options are available for this method, so it's an empty object
      - `linkSecretId` string
    - `anoncreds` AnonCredsAcceptOfferFormat — This defines the module payload for calling CredentialsApi.acceptOffer. No options are available for this method, so it's an empty object
      - `linkSecretId` string
  - `autoAcceptCredential` 'always' | 'contentApproved' | 'never' — Typing of the state for auto acceptance
  - `comment` string

## Response `200`

Ok

- unknown

---

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