Welcome to Warp! This quickstart guide will help you get started with Warp's time travel API, allowing you to make your first API call and begin exploring the possibilities of temporal manipulation.
- Visit the Warp Sign-Up Page.
- Create your account and log in.
- Navigate to your dashboard to retrieve your API key.
Your API key is required to authenticate all API requests.
Let's start by making a simple request to the Warp API to establish a temporal anchor—a fixed point in time that you can return to later.
Use the following curl command to set a temporal anchor:
curl -X POST https://api.warp.com/v1/set-anchor \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"timestamp": "2024-09-01T00:00:00Z",
"description": "Starting Point"
}'timestamp: The date and time you wish to anchor, in ISO 8601 format.description: A brief description of the anchor’s purpose.
{
"anchor_id": "1234567890abcdef",
"status": "Anchor set successfully"
}This response confirms that the anchor has been successfully set and provides an anchor_id for future reference.
Next, let's travel to a different point in time using the Warp API.
To travel to a specific date and time, use this curl command:
curl -X POST https://api.warp.com/v1/travel \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"destination_time": "1889-03-10T23:45:00Z",
"location": "Tesla's Lab"
}'destination_time: The date and time you wish to travel to.location: The specific location you want to arrive at.
{
"status": "Travel successful",
"current_time": "1889-03-10T23:45:00Z",
"location": "Tesla's Lab"
}This response confirms that you have successfully traveled to the specified time and location.
While in the past, you may want to retrieve specific data or objects. Here's how to do that:
Use the following curl command to retrieve an item:
curl -X GET https://api.warp.com/v1/retrieve-item \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"item_description": "Tesla's Blueprint",
"location": "Tesla's Lab",
"time": "1889-03-10T23:50:00Z"
}'{
"item_id": "0987654321fedcba",
"status": "Item retrieved successfully",
"item_details": {
"description": "Tesla's Blueprint",
"retrieved_at": "1889-03-10T23:50:00Z"
}
}This response indicates that the item has been successfully retrieved and provides details about the item.
Once you've completed your mission, return to your previously set temporal anchor.
To return to your temporal anchor, use this curl command:
curl -X POST https://api.warp.com/v1/return \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"anchor_id": "1234567890abcdef"
}'{
"status": "Return successful",
"current_time": "2024-09-01T00:00:00Z"
}This response confirms that you've successfully returned to your starting point.
Finally, ensure that your actions haven’t created any temporal paradoxes:
Use the following curl command:
curl -X GET https://api.warp.com/v1/check-paradox \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"timeline_id": "primary"
}'{
"status": "No paradoxes detected",
"timeline_stability": "Stable"
}This response indicates that your timeline is stable and free of paradoxes.
You’ve completed your first time travel mission using the Warp API! Explore more advanced features in our documentation or join our community to connect with other time travelers.