Get your plan and usage
curl --request GET \
--url https://app.introlink.ai/v1/usage \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.introlink.ai/v1/usage"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.introlink.ai/v1/usage', 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://app.introlink.ai/v1/usage",
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>"
],
]);
$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://app.introlink.ai/v1/usage"
req, _ := http.NewRequest("GET", url, nil)
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://app.introlink.ai/v1/usage")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.introlink.ai/v1/usage")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "usage",
"plan": {
"name": "Business",
"tier": "business",
"interval": "yearly",
"users": 4,
"max_users": null,
"renews_at": "2027-03-01T00:00:00.000Z",
"trial_ends_at": null,
"lapsed": null,
"text": "You're on the Business plan: 4 users, billed yearly. It renews on March 1, 2027."
},
"credits": {
"balance": 48200,
"month_grant": 50000,
"renews_at": "2027-01-01T00:00:00.000Z",
"pilot": false,
"text": "Credits: 48,200 credits left. This month's 50,000 renew on January 1."
},
"allowances": [],
"billing_url": "https://app.introlink.ai/settings?tab=billing",
"links": {
"credits": "https://app.introlink.ai/v1/usage/credits",
"pricing": "https://app.introlink.ai/v1/pricing"
},
"text": "You're on the Business plan: 4 users, billed yearly. It renews on March 1, 2027. Credits: 48,200 credits left. This month's 50,000 renew on January 1."
}{
"error": {
"type": "unauthorized",
"message": "<string>"
}
}{
"error": {
"type": "invalid_key",
"message": "That API key is not valid. It may have been revoked: create a new one in IntroLink, under Settings, API."
}
}{
"error": {
"type": "plan_required",
"message": "The API comes with Individual, Team and Business, and this workspace is on the Free trial. Pick a plan under Settings, Billing to use it."
}
}{
"error": {
"type": "rate_limited",
"message": "Too many requests with this key. Wait a minute and try again."
}
}{
"error": {
"type": "server_error",
"message": "IntroLink could not answer that just now. Try again in a minute."
}
}Usage
Get your plan and usage
The key creator’s plan (Free trial, Individual, Team or Business), its users and renewal date, and each allowance with what is used and what is left: chat messages, work histories and, on the Free trial, drafted asks. links points to the workspace’s credits (GET /usage/credits) and the rates (GET /pricing).
GET
/
usage
Get your plan and usage
curl --request GET \
--url https://app.introlink.ai/v1/usage \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.introlink.ai/v1/usage"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.introlink.ai/v1/usage', 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://app.introlink.ai/v1/usage",
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>"
],
]);
$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://app.introlink.ai/v1/usage"
req, _ := http.NewRequest("GET", url, nil)
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://app.introlink.ai/v1/usage")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.introlink.ai/v1/usage")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "usage",
"plan": {
"name": "Business",
"tier": "business",
"interval": "yearly",
"users": 4,
"max_users": null,
"renews_at": "2027-03-01T00:00:00.000Z",
"trial_ends_at": null,
"lapsed": null,
"text": "You're on the Business plan: 4 users, billed yearly. It renews on March 1, 2027."
},
"credits": {
"balance": 48200,
"month_grant": 50000,
"renews_at": "2027-01-01T00:00:00.000Z",
"pilot": false,
"text": "Credits: 48,200 credits left. This month's 50,000 renew on January 1."
},
"allowances": [],
"billing_url": "https://app.introlink.ai/settings?tab=billing",
"links": {
"credits": "https://app.introlink.ai/v1/usage/credits",
"pricing": "https://app.introlink.ai/v1/pricing"
},
"text": "You're on the Business plan: 4 users, billed yearly. It renews on March 1, 2027. Credits: 48,200 credits left. This month's 50,000 renew on January 1."
}{
"error": {
"type": "unauthorized",
"message": "<string>"
}
}{
"error": {
"type": "invalid_key",
"message": "That API key is not valid. It may have been revoked: create a new one in IntroLink, under Settings, API."
}
}{
"error": {
"type": "plan_required",
"message": "The API comes with Individual, Team and Business, and this workspace is on the Free trial. Pick a plan under Settings, Billing to use it."
}
}{
"error": {
"type": "rate_limited",
"message": "Too many requests with this key. Wait a minute and try again."
}
}{
"error": {
"type": "server_error",
"message": "IntroLink could not answer that just now. Try again in a minute."
}
}Authorizations
Response
The plan and its allowances.