# 19 Domains API: How to restore a domain

*This is a series of articles dedicated to demonstrating how to get acquainted with Openprovider Domains API methods.* *To get more information about our API in general, please use our [documentation portal](https://docs.openprovider.com) as your reference.*

Usually, there are only two scenarios in which a domain name is eligible for a restoration:

- the domain was manually deleted within the last 30 days
- the domain expired between 30-60 days ago

Learn more about expiration policies [here](https://openprovider.help/books/quick-start/page/renewal-policies-in-openprovider).

<div id="bkmrk-use-endpoint-path-be">![Entering Geo Fence icon](https://openprovider.help/uploads/images/gallery/2026-08/embedded-image-bepvacaj.png)Use endpoint path below. Base URL is determined by both the target environment and API version.</div><div id="bkmrk-post-%7Bbase_url%7D%2Fdoma">```
<span><strong>POST</strong> <a href="http://docs.openprovider.com/#operation/"><strong>{base_url}</strong></a>/domains/{id}/restore</span>
```

</div><div id="bkmrk-request-values-name-"><details><summary>REQUEST VALUES</summary>

<table><tbody><tr><td>**<span>Name</span>**</td><td>**<span>Type</span>**</td><td>**<span>Description</span>**</td></tr><tr><td>id</td><td>integer</td><td>**Required.** Domain id</td></tr><tr><td>domain</td><td>string</td><td>**Required.**</td></tr></tbody></table>

</details>  
<div id="bkmrk-request-examplecurl-"><div><details><summary>REQUEST EXAMPLE</summary>

```
curl -X POST \<br></br> 'http://api.openprovider.eu/v1beta/<span>domains/123456/restore</span>' \<br></br> -H 'Accept: */*' \<br></br> -H 'Authorization: ,Bearer 2f4c1c3a9******15d22b378a64' \<br></br> -H 'Connection: keep-alive' \<br></br> -H 'Content-Type: application/json' \<br></br> -d '{<br></br>"domain": {<br></br>"extension": "com",<br></br>"name": "domain",<br></br>}
```

</details></div><details><summary>RESPONSE EXAMPLE</summary>

```
{<br></br> "code": 0,<br></br> "data": {<br></br> "status": "ACT"<br></br> },<br></br> "desc": ""<br></br>}
```

</details>## Restoring a deleted domain

After you delete a domain, you have a [grace period](https://openprovider.help/books/domains/page/life-cycle-of-a-typical-gtld-domain-name) (soft quarantine) during which you can reclaim ownership. When you restore a deleted domain, you pay a one-time restoration fee. Restoring your domain reinstates the original registration period(the domain will be *not* automatically renewed).

## Restoring an expired domain

<span>If your domain expired and you’ve passed the grace period (hard quarantine) for your domain TLD (typically 30-45 days) but fewer than 60 days ago, you can still restore your expired domain. When you restore an expired domain, you have to pay a one-time restoration fee and purchase at least one year of renewal.</span>

</div></div>