---
title: "Resume interrupted self-serve workspace provisioning"
method: POST
path: "/credits/tenants/self-serve"
tags: ["Tenants"]
---

# Resume interrupted self-serve workspace provisioning

`POST /credits/tenants/self-serve`

## Request

- Base URL: `https://api.paywithlocus.com/api`
- URL: `https://api.paywithlocus.com/api/credits/tenants/self-serve`
- Auth: HTTP bearer

Recovery-only companion for a verified, authenticated Cognito identity. The token subject is the durable idempotency key: repeated calls return the same zero-credit workspace and cannot create another one.

## Request body

- object
  - `workspaceName` string: Optional account name. Defaults to the part of the email before the @.

## Response `200`

Existing workspace returned with alreadyProvisioned=true

## Other responses

- `201`: Workspace created
- `401`: Authentication required
- `403`: Token subject mismatch or email is not verified

---

[API](https://skmtc.dev/paywithlocus/apis/locus-pro-api.md) - [All operations](https://skmtc.dev/paywithlocus/apis/locus-pro-api/llms.txt) - [OpenAPI document](https://skmtc.dev/paywithlocus/apis/locus-pro-api/revisions/aab8fa5d6cef?raw)
