---
title: "encrypt a custom header value for a webhook task endpoint"
method: POST
path: "/api/servicetodo/processes/tasks/webhookCustomHeaderValue"
tags: ["tasks"]
---

# encrypt a custom header value for a webhook task endpoint

`POST /api/servicetodo/processes/tasks/webhookCustomHeaderValue`

## Request

- Base URL: `https://services.fountain.com`
- URL: `https://services.fountain.com/api/servicetodo/processes/tasks/webhookCustomHeaderValue`
- Auth: HTTP bearer

Validates and encrypts a custom HTTP header value for a webhook task. Store the returned encryptedValue on the task's content.customHeaders entry; the clear-text value is never persisted and cannot be retrieved afterwards. Header names must follow HTTP naming rules and cannot be a header Fountain already sets (Content-Type, Accept, X-Fountain-*, and transport headers).

## Request body

- object
  - `name` string, required: HTTP header name, e.g. Api-Key
  - `value` string, required: clear-text header value to encrypt

## Response `201`

the encrypted header value to store

- object
  - `data` object
    - `name` string: the validated header name, echoed back
    - `encryptedValue` string: encrypted header value to store on the webhook task content
  - `meta` ResponsesPartMeta
    - `timestamp` string, date-time, required
    - `verb` 'OPTION' | 'GET' | 'PUT' | 'POST' | 'PATCH' | 'DELETE'
    - `path` string
    - `jti` string
    - `rid` string
    - `count` number
    - `capped` boolean: The server lowered filter[limit] to its ceiling. Page with filter[skip] to read past it.
    - `status` string
    - `duration` number
    - `size` number

---

[API](https://skmtc.dev/fountain/apis/worker-experience-public-api.md) - [All operations](https://skmtc.dev/fountain/apis/worker-experience-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fountain/apis/worker-experience-public-api/revisions/6b9a31f79e22?raw)
