---
title: "Create or update the authentication method and credentials for webhook target URLs"
method: PUT
path: "/apps/{clientId}/webhooks/auth"
tags: ["Webhooks"]
---

# Create or update the authentication method and credentials for webhook target URLs

`PUT /apps/{clientId}/webhooks/auth`

## Path parameters

- `clientId` string, required — The application identifier

## Request body

- WebhookAuthenticationRequest
  - `basicAuthentication` BasicAuthentication
    - `username` string — The username used by the webhook invocations for basic authentication
    - `password` string — The password used by the webhook invocations for basic authentication
  - `apiKeyAuthentication` ApiKeyAuthentication
    - `headerKey` string — The header key of the API Key used by the webhook invocations
    - `headerValue` string — The header value of the API Key used by the webhook invocations

## Response `204`

The authentication method and details have been stored

## Other responses

- `400` — Missing required fields
- `404` — The application does not exist

---

[API](https://skmtc.dev/adfin/apis/adfin-api.md) · [All operations](https://skmtc.dev/adfin/apis/adfin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/adfin/adfin-api/revisions/53d29f0850e0/schema)
