Authenticate
curl --request POST \
--url https://api.thehyperstack.com/v1/authimport requests
url = "https://api.thehyperstack.com/v1/auth"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.thehyperstack.com/v1/auth', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.thehyperstack.com/v1/auth",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.thehyperstack.com/v1/auth"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.thehyperstack.com/v1/auth")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.thehyperstack.com/v1/auth")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Authentication Successful",
"account_name": "Acme Corp",
"account_id": "acme-corp"
}
{
"detail": "Invalid token or organization not found"
}
API Guide
Authenticate
POST
/
v1
/
auth
Authenticate
curl --request POST \
--url https://api.thehyperstack.com/v1/authimport requests
url = "https://api.thehyperstack.com/v1/auth"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.thehyperstack.com/v1/auth', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.thehyperstack.com/v1/auth",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.thehyperstack.com/v1/auth"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.thehyperstack.com/v1/auth")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.thehyperstack.com/v1/auth")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Authentication Successful",
"account_name": "Acme Corp",
"account_id": "acme-corp"
}
{
"detail": "Invalid token or organization not found"
}
Description
This endpoint allows you to verify your API token and retrieve basic account information. Useful for confirming that your API key is valid and active.Headers
string
required
Bearer YOUR_API_TOKEN — obtainable from Hyperstack Dashboard → Settings → API Access
Success Response Fields
boolean
Indicates whether authentication was successful.
string
A human-readable confirmation message. Value:
"Authentication Successful".string
The display name of the authenticated organization.
string
The unique slug/identifier of the authenticated organization.
Responses
{
"success": true,
"message": "Authentication Successful",
"account_name": "Acme Corp",
"account_id": "acme-corp"
}
{
"detail": "Invalid token or organization not found"
}
curl -X POST "https://api.thehyperstack.com/v1/auth" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Last modified on February 22, 2026
Was this page helpful?

