---
title: "Set connector credentials"
method: POST
path: "/merchant-account/{merchantId}/connectors/{connector}/credentials"
tags: ["Cost Ingestion"]
---

# Set connector credentials

`POST /merchant-account/{merchantId}/connectors/{connector}/credentials`

Store the webhook secret and report-download credential for one connector account.

## Path parameters

- `merchantId` string, required
- `connector` string, required

## Request body

- SetCredentialsRequest
  - `account` string, required — Connector-side account, e.g. Adyen `merchantAccountCode`.
  - `webhook_secret` string, required — Secret used to verify inbound webhook signatures.
  - `download_auth` string, required — Report-download credential: either Basic auth as `user:password`, or a Report Service API key on its own (sent as `X-API-Key`).

## Response `200`

Credentials stored

- SetCredentialsResponse
  - `merchant_id` string
  - `connector` string
  - `account` string
  - `status` string

---

[API](https://skmtc.net/juspay/apis/decision-engine.md) · [All operations](https://skmtc.net/juspay/apis/decision-engine/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/juspay/decision-engine/versions/36e7a0972ee6/schema)
