---
title: "Run Saved Script"
method: POST
path: "/api/codex-schema/run-saved-script"
tags: ["codex-schema"]
---

# Run Saved Script

`POST /api/codex-schema/run-saved-script`

Execute a saved import script synchronously against a new spreadsheet.

## Query parameters

- `user_id` string, nullable
- `org_id` string, nullable

## Request body

- RunSavedScriptRequest
  - `prior_job_id` string, required — Job ID of the saved script to reuse.
  - `storage_name` string, required — Storage path of the new file to import.
  - `schema_signature` string, required — Schema signature of the new file.
  - `schema_version` integer
  - `sheet_name` string, nullable — Sheet name for XLSX/XLS files.

## Response `200`

Successful Response

- RunSavedScriptResponse
  - `job_id` string, required
  - `status` string, required
  - `result` object, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/every/apis/every-api.md) · [All operations](https://skmtc.net/every/apis/every-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/every/every-api/versions/9744001af85d/schema)
