Skip to main content
GET
/
v1
/
api-keys
/
sub-keys
List Sub-API Keys
curl --request GET \
  --url https://api.io.solutions/v1/api-keys/sub-keys \
  --header 'Authorization: Bearer <token>' \
  --header 'x-api-key: <x-api-key>'
import requests

url = "https://api.io.solutions/v1/api-keys/sub-keys"

headers = {
"x-api-key": "<x-api-key>",
"Authorization": "Bearer <token>"
}

response = requests.get(url, headers=headers)

print(response.text)
const options = {
method: 'GET',
headers: {'x-api-key': '<x-api-key>', Authorization: 'Bearer <token>'}
};

fetch('https://api.io.solutions/v1/api-keys/sub-keys', 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.io.solutions/v1/api-keys/sub-keys",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"x-api-key: <x-api-key>"
],
]);

$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.io.solutions/v1/api-keys/sub-keys"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("x-api-key", "<x-api-key>")
req.Header.Add("Authorization", "Bearer <token>")

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.io.solutions/v1/api-keys/sub-keys")
.header("x-api-key", "<x-api-key>")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.io.solutions/v1/api-keys/sub-keys")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<x-api-key>'
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "status": "succeeded",
  "data": [
    {
      "id": "71775d2e-fbcc-4ef4-aa30-8aaeb82062c0",
      "description": "Partner integration key",
      "display": "acme-v2-eyJh...c0eQ",
      "created_at": "2026-02-20T10:00:00",
      "expires_at": "2026-08-20T00:00:00",
      "expired": false,
      "allowed_models": [
        "meta-llama/Llama-3.3-70B-Instruct"
      ],
      "credit_limit": 10,
      "credit_used": 1.234,
      "credit_refresh_cycle": "monthly"
    }
  ]
}
The response includes one entry per active sub-key with the following credit fields:
  • credit_limit — the per-cycle cap configured for the key (null means no per-key cap).
  • credit_used — credits consumed so far in the current billing period (resets according to credit_refresh_cycle).
Expired or revoked keys are not included in this list.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

x-api-key
string
required

Admin API key. Admin API key (io.net Intelligence)

Response

Successful Response

status
string
Example:

"succeeded"

data
SubKeyItem · object[]