---
title: "Create Custom Script"
method: POST
path: "/api/actions/custom-script"
tags: ["actions"]
---

# Create Custom Script

`POST /api/actions/custom-script`

## Request

- Base URL: `https://api.deeptrace.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.deeptrace.com/api/actions/custom-script`
- Auth: none declared

Create a custom script action.

## Request body

- CreateCustomScriptRequest: Request to create a custom script action.
  - `name` string, required
  - `description` string, nullable
  - `script_code` string, required
  - `script_prompt` string, nullable
  - `script_inputs` object, nullable
  - `credential_keys` string[], nullable
  - `approval_mode` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/deeptrace/apis/deeptrace-api.md) - [All operations](https://skmtc.dev/deeptrace/apis/deeptrace-api/llms.txt) - [OpenAPI document](https://skmtc.dev/deeptrace/apis/deeptrace-api/revisions/855e59bb07f0?raw)
