cloadyDocs
API ReferenceEndpointsWorkspaces

Renew a domain now

Renews a domain registered through Cloady for one more year, charged to the workspace's card now, whatever its auto-renew setting. A registry refuses a renewal within 30 days of the last one (409 `renewal_too_soon`). `dryRun` quotes it; send the quoted `price` with the order. A card the bank wants to authenticate answers 402 `payment_action_required` with `clientSecret`, `paymentIntentId` and `publishableKey` in `details`: confirm it with Stripe.js, then repeat the request with `paymentIntentId`. If the order fails after the charge, the charge is refunded, and the error says whether the refund went through or is pending (Cloady retries it). 502 `renewal_unconfirmed` means the registrar didn't answer: the new expiry shows within the hour, or the charge is refunded. Needs the owner role.

POST
/api/workspaces/{workspaceSlug}/domains/{domain}/renew
AuthorizationBearer <token>

Personal API token (cldy_…)

In: header

Path Parameters

workspaceSlug*string
domain*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/workspaces/string/domains/string/renew" \  -H "Content-Type: application/json" \  -d '{}'
{  "quote": {    "domain": "string",    "price": -9007199254740991,    "renewal": -9007199254740991,    "years": -9007199254740991  },  "domain": {    "id": "string",    "host": "string",    "isPrimary": true,    "redirectTo": "string",    "port": 0,    "app": {      "slug": "string",      "env": "production",      "region": "string"    },    "registration": {      "expiresAt": "string",      "autoRenew": true,      "nameservers": [        "string"      ]    },    "verified": true,    "zone": "string",    "createdAt": "string"  }}