The Compute Clear API follows a discover → procure → use → destroy lifecycle.

1. Discover

Use the discovery endpoints to understand what’s available:

2. Get offers

Call POST /get_offers with your requirements:
The API queries all vendors in real-time and returns matching offers sorted by price.
Offers expire after 30 minutes. Save the offer_id and procure promptly.

3. Procure

Call POST /procure_offer with the offer ID and your SSH key:
Provisioning is asynchronous and typically takes 1-5 minutes depending on the vendor.

4. Poll until ready

Call GET /offers/{offer_id}/status every 15 seconds:
When ready, the instances array contains your external_ip and ssh_command.

5. Use

SSH into your instance using the private key that corresponds to the public key you provided during procurement:
The SSH user is root for all vendors.

6. Destroy

When done, list your resources and delete:
Deletion is asynchronous — the resource transitions through deleting to deleted.

Lifecycle diagram