---
title: "Invoke a edge function."
method: POST
path: "/_fabric/{fabric}/_api/function/invoke/{fx-name}"
tags: ["Function"]
---

# Invoke a edge function.

`POST /_fabric/{fabric}/_api/function/invoke/{fx-name}`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/macrometa/apis/macrometa-api-reference/docs/_fabric/:fabric/_api/function/invoke/:fx-name/post.ts> (a function with typed inputs; its response is checked against the schema)

Invoke a edge function.

## Path parameters

- `fabric` string, string, required
- `fx-name` string, string, required

## Query parameters

- `params` string

## Response `201`

Successfully invoked the edge function.

- InvokeFunctionWorkerRc200: Array of key value pairs.

## Other responses

- `400`: Failed due to missing or malformed data. Verify that all parameters are complete.
- `401`: Failed because you do not have administrator permissions.
- `403`: Failed to validate because you do not have access to the server.
- `404`: Failed to find specified fabric.

---

[API](https://skmtc.dev/macrometa/apis/macrometa-api-reference.md) - [All operations](https://skmtc.dev/macrometa/apis/macrometa-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/macrometa/apis/macrometa-api-reference/revisions/2006b6d7f31d?raw)
