---
title: "Execute Function"
method: POST
path: "/v1/functions/execute"
tags: ["Functions"]
---

# Execute Function

`POST /v1/functions/execute`

## Request

- Base URL: `https://api.call2me.app`
- URL: `https://api.call2me.app/v1/functions/execute`
- Auth: HTTP bearer

Execute a function by calling its webhook URL.

This endpoint acts as a proxy to avoid CORS issues when calling
external webhooks from the browser.

## Request body

- ExecuteFunctionRequest
  - `url` string, required: Webhook URL to call
  - `method` string: HTTP method
  - `body` object, nullable: Request body (JSON)
  - `headers` object, nullable: Custom headers
  - `timeout_ms` integer: Timeout in milliseconds

## Response `200`

Successful Response

- ExecuteFunctionResponse
  - `success` boolean, required
  - `status_code` integer, required
  - `body` string, required
  - `error` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/call2me/apis/call2me-api.md) · [All operations](https://skmtc.dev/call2me/apis/call2me-api/llms.txt) · [OpenAPI document](https://skmtc.dev/call2me/apis/call2me-api/revisions/3951f9b7e47d?raw)
