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

## Changes

- **2026-07-17** `33596742b733` — 2 info
  - the endpoint scheme security `tenants` was removed from the API
  - added the new optional `header` request parameter `x-tenant-id`
- **2024-03-27** `a7641432a6c1` — 1 warning, 1 info
  - deleted the `header` request parameter `x-tenant-id`
  - the endpoint scheme security `tenants` was added to the API

[Change history](https://skmtc.dev/openwallet-foundation/apis/credo-rest-api/changes/didcomm/credentials/:credentialExchangeId/accept-offer/post.md)

---

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