Get My Api Key
curl --request GET \
--url https://api.ionworks.com/users/me/api-keyimport requests
url = "https://api.ionworks.com/users/me/api-key"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.ionworks.com/users/me/api-key', 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.ionworks.com/users/me/api-key",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.ionworks.com/users/me/api-key"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ionworks.com/users/me/api-key")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ionworks.com/users/me/api-key")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"key_prefix": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}Get My Api Key
Return the caller’s API key details for the active organization.
Only the prefix and timestamps — the key itself is unrecoverable once
generated. Returns null when no key has been created yet.
Get My Api Key
curl --request GET \
--url https://api.ionworks.com/users/me/api-keyimport requests
url = "https://api.ionworks.com/users/me/api-key"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.ionworks.com/users/me/api-key', 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.ionworks.com/users/me/api-key",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.ionworks.com/users/me/api-key"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ionworks.com/users/me/api-key")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ionworks.com/users/me/api-key")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"key_prefix": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}Response
200 - application/json
ApiKeyInfo · object | null
Successful Response
Non-secret description of a user's API key for one organization.
Deliberately carries no key_hash: the full key is returned exactly once,
when it is generated, and only its prefix is retrievable afterwards.
No expiry field: api_keys has no expires_at column in any deployed
environment (verified against staging and production), and nothing in the
auth path enforces one — _auth_from_api_key matches on key_hash
alone. Surfacing an expiry would promise a guarantee that does not exist.
Was this page helpful?