---
title: "Execute one runtime library function"
method: POST
path: "/v1/libraries/execute"
tags: ["Runtime Libraries"]
---

# Execute one runtime library function

`POST /v1/libraries/execute`

## Request

- Base URL: `https://api.algenta.ai`
- URL: `https://api.algenta.ai/v1/libraries/execute`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

## Request body

- RuntimeLibraryExecuteRequest
  - `module` string, required: Runtime library module name, for example `ab_testing`.
  - `function` string, required: Exported runtime library function name.
  - `args` unknown
  - `request_id` string, nullable: Optional caller-supplied idempotency or tracing identifier.

## Response `200`

Successful Response

- RuntimeLibraryExecuteResponse
  - `module` string, required
  - `function` string, required
  - `result` unknown, required
  - `latency_ms` number, required
  - `engine_used` string, required
  - `request_id` string, nullable, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/codna/apis/algenta-api.md) · [All operations](https://skmtc.dev/codna/apis/algenta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/codna/apis/algenta-api/revisions/35d30f84a5df?raw)
