---
title: "Acquire a cross-process OAuth refresh lock"
method: POST
path: "/api/oauth/refresh-locks/{key}"
tags: ["OAuth"]
---

# Acquire a cross-process OAuth refresh lock

`POST /api/oauth/refresh-locks/{key}`

## Path parameters

- `key` string, required

## Request body

- object
  - `ttlMs` integer, required

## Response `200`

Lock acquired; returns the owner token

- object
  - `owner` string, required

## Other responses

- `400` — Validation error
- `409` — Lock is currently held by another caller

---

[API](https://skmtc.net/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.net/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/versions/101e7a060651/schema)
