API
Get Started
Curl Example

Curl Example

In the subsequent examples, the API (opens in a new tab) requests will be given using (The Curl Command), which allows us to illustrate the different results in simple and actual formats.

To generate a token in the SimplyStack API, be sure to use an existing token from the (Tokens) list generated previously, or generate a new token by clicking the (CreateToken) button, copy the generated token and use it to set and export the (Token Variable) in your environment as shown in the example.

In case you need access to the headers of a response through curl, use the -i flag to display the header information in the body. If you need only the header information, instead pass the -I flag, which will exclude the entire response body.

Curl Example

Terminal
curl -X GET "https://api.simplystack.com/v1/stacklets" \
  -H "Content-Type: application/json"
  -H "Authorization: Token d359ad9cc9422b5ff07aede0cd2707da4ff82be0"