Quickstart
This guide will get you all set up and ready to use the PureGPU API. We'll cover how to get started using cURL to make your first API request. We'll also look at where to go next to find all the information you need to take full advantage of our powerful REST API.
Before you can make requests to the PureGPU API, you will need to grab your API key from your dashboard. You can find it under Settings » API.
Choose your client
Before making your first API request, you need to pick which API client you will use. For simplicity, we will use cURL for this guide. Ensure cURL is installed on your machine:
# cURL is most likely already installed on your machine
curl --version
Making your first API request
After ensuring cURL is installed, you are ready to make your first call to the PureGPU API. Below, you can see how to send a GET request to the Servers endpoint to get a list of all your servers. In the cURL example, results are limited to ten servers, the default page length for each request.
curl -G https://api.puregpu.com/auth/check \
-H "X-API-Key: {token}"
What's next?
Great, you're now set up with cURL and have made your first request to the API. Here are a few links that might be handy as you venture further into the PureGPU API: