Get current API key
curl --request GET \
--url https://api.gymdesk.com/me \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.gymdesk.com/me"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.gymdesk.com/me', 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.gymdesk.com/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": {
"id": 42,
"name": "My Production Key",
"academyIds": [
123
],
"user": {
"id": 7,
"name": "Jane Doe",
"email": "jane@example.com"
}
}
}{
"message": "Unauthorized",
"correlationId": "01890c1a-9b2d-7c3e-8f12-3456789abcde"
}Authentication
Get current API key
Returns the calling API key, its scoped academy IDs, and the owning user.
GET
/
me
Get current API key
curl --request GET \
--url https://api.gymdesk.com/me \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.gymdesk.com/me"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.gymdesk.com/me', 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.gymdesk.com/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": {
"id": 42,
"name": "My Production Key",
"academyIds": [
123
],
"user": {
"id": 7,
"name": "Jane Doe",
"email": "jane@example.com"
}
}
}{
"message": "Unauthorized",
"correlationId": "01890c1a-9b2d-7c3e-8f12-3456789abcde"
}⌘I

