POST
/
app_accounts
/
{account_id}
/
proxy
Proxy POST request to connected app account
curl --request POST \
  --url https://app.kapso.ai/api/v1/app_accounts/{account_id}/proxy \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "url": "https://slack.com/api/chat.postMessage",
  "channel": "C123",
  "text": "Hello from Kapso!"
}'
{
  "ok": true,
  "channel": "C123",
  "ts": "1234567890.123456"
}

Authorizations

X-API-Key
string
header
required

API key required for all endpoints

Headers

X-Target-URL
string<uri>

Alternative way to specify target URL via header

Example:

"https://slack.com/api/chat.postMessage"

X-PD-Proxy-*
string

Custom headers to forward to the target API. Use X-PD-Proxy- prefix. Example: X-PD-Proxy-Content-Type will be forwarded as Content-Type

Path Parameters

account_id
string
required

The Pipedream account ID for the connected app

Example:

"apn_1234567"

Body

Response

200
application/json

Successful proxy request

Response from the target API