Skip to content
Operation ID: getToken

Get a token

POST
/auth/token

Yeah, this is the boring security stuff. Just get your super secret token and move on.

Request Body

JSON
{
"email": "string",
"password": "string"
}

Responses

Token Created
JSON
{
"token": "string"
}

Samples

cURL
curl -X POST https://galaxy.scalar.com/auth/token
JavaScript
fetch("https://galaxy.scalar.com/auth/token", { method: "POST" })
  .then(response => response.json())
  .then(data => console.log(data));
PHP
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://galaxy.scalar.com/auth/token");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Python
import requests
response = requests.post("https://galaxy.scalar.com/auth/token")
print(response.json())
Powered by VitePress OpenAPI