---
title: "Lock action"
method: POST
path: "/v1/actions/lock"
---

# Lock action

`POST /v1/actions/lock`

## Request

- Base URL: `https://api.scrubmytext.com`
- URL: `https://api.scrubmytext.com/v1/actions/lock`
- Auth: HTTP bearer

LockMyAction: atomically claim an idempotency key before execution.

## Request body

- object
  - `key` string, required
  - `lock_ttl_seconds` integer
  - `completion_ttl_seconds` integer

## Response `200`

Successful result

## Other responses

- `400`: Invalid input
- `401`: API key required or invalid
- `429`: Monthly usage limit reached

---

[API](https://skmtc.dev/scrubmytext/apis/scrubmytext-agent-infrastructure-api.md) · [All operations](https://skmtc.dev/scrubmytext/apis/scrubmytext-agent-infrastructure-api/llms.txt) · [OpenAPI document](https://skmtc.dev/scrubmytext/apis/scrubmytext-agent-infrastructure-api/revisions/54ace36baccf?raw)
