---
title: "Execute Custom Function"
method: POST
path: "/v1/custom_functions/{function_id}/execute"
tags: ["API v1", "Custom Functions"]
---

# Execute Custom Function

`POST /v1/custom_functions/{function_id}/execute`

## Request

- Base URL: `https://api.xpander.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xpander.ai/v1/custom_functions/{function_id}/execute`
- Auth: API key in header `x-api-key`

Execute a custom function with the provided parameters. The function must be in 'ready' status. Parameters are passed as key-value pairs in the request body matching the function's input_schema.

## Path parameters

- `function_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xpander/apis/xpander-ai-api-service.md) - [All operations](https://skmtc.dev/xpander/apis/xpander-ai-api-service/llms.txt) - [OpenAPI document](https://skmtc.dev/xpander/apis/xpander-ai-api-service/revisions/725c0066d5df?raw)
