---
title: "Proxy a request with a contact's secret"
method: POST
path: "/contact/{contactId}/secret/{secretId}/proxy"
tags: ["Contact Secret"]
---

# Proxy a request with a contact's secret

`POST /contact/{contactId}/secret/{secretId}/proxy`

## Request

- Base URL: `https://api.chatbotkit.com/api/v1`
- URL: `https://api.chatbotkit.com/api/v1/contact/{contactId}/secret/{secretId}/proxy`
- Auth: HTTP bearer

Performs an outbound HTTP request with a personal (per-contact) secret
injected into the request headers at egress. The secret value never
leaves the server. The upstream response is returned verbatim.

## Path parameters

- `contactId` string, required: The ID of the contact the secret belongs to
- `secretId` string, required: The ID of the secret to inject

## Request body

- object
  - `method` string: The HTTP method
  - `url` string, required: The destination URL
  - `headers` object: The request headers (may reference the secret)
  - `body` string: The request body

## Response `200`

The upstream response, returned verbatim

## Other responses

- `default`: An error response

---

[API](https://skmtc.dev/chatbotkit/apis/cbk-api.md) · [All operations](https://skmtc.dev/chatbotkit/apis/cbk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/chatbotkit/apis/cbk-api/revisions/13d250576136?raw)
