Documentation Index
Fetch the complete documentation index at: https://docs.theslow.net/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
GET https://theslow.net/api/account/get-display-name
Overview
This endpoint fetches the display_name (SlowNet Name) associated with the provided API key.
Authentication
This endpoint requires an API key. You can retrieve an API key from your dashboard. Include it in the X-API-KEY header:
X-API-KEY: YOUR_API_KEY_HERE
For more details, see the Authentication Guide.
Parameters
✅ None
This endpoint does not require any path, query, or request body parameters.
Examples
cURL
curl -X GET 'https://theslow.net/api/account/get-display-name' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json'
Python
import requests
API_KEY = "YOUR_API_KEY"
BASE_URL = "https://theslow.net/api"
headers = {
"X-API-KEY": API_KEY,
"Content-Type": "application/json"
}
try:
response = requests.get(f"{BASE_URL}/account/get-display-name", headers=headers)
response.raise_for_status()
data = response.json()
print("Display Name:", data["display_name"])
except requests.exceptions.RequestException as e:
print("API call failed:", e)
if response is not None:
print("Status code:", response.status_code)
print("Response body:", response.text)
JavaScript (Fetch API)
async function getDisplayName() {
const API_KEY = "YOUR_API_KEY";
const BASE_URL = "https://theslow.net/api";
try {
const response = await fetch(`${BASE_URL}/account/get-display-name`, {
method: "GET",
headers: {
"X-API-KEY": API_KEY,
"Content-Type": "application/json"
}
});
if (!response.ok) {
const errorData = await response.json();
console.error("API Call Failed:", response.status, errorData.error);
return null;
}
const data = await response.json();
console.log("Display Name:", data.display_name);
return data.display_name;
} catch (error) {
console.error("Unexpected error:", error);
return null;
}
}
// Example usage:
// getDisplayName();
Responses
200 OK
Returns the user’s display name.
{
"display_name": "JohnDoe"
}
401 Unauthorized
Occurs if authentication fails (e.g., missing or invalid API key).
{
"error": "Unauthorized: You must be logged in or provide a valid API Key."
}
500 Internal Server Error
Occurs due to server-side issues (e.g., database problems or unexpected exceptions).
{
"error": "Database error while fetching profile."
}
{
"error": "An internal server error occurred."
}
Need Further Assistance?
If you have any questions or encounter issues, please don’t hesitate to reach out to our support team.