Notices
Records of limit changes, key changes and API updates.
Notices that concern this key: announcements to all integrators, changes to your account and changes to this key, newest first. Global and account notices are not filtered by the key's creation time, so a new key also sees those published before it was created; key-level notices only exist from the key's creation on. While a stream is open the same notices are pushed at once as op = "notice"; after being offline, catch up with since.
Requires an API key
Parameters
sinceintegerqueryoptionalOnly notices created after this Unix time (seconds); 0 for all.
limitintegerqueryoptionalMaximum number of notices, 1–200, default 50.
Try it
Paste your API key (a regular key or a trial key from the dashboard) to call the real API; the key stays in your browser.
Response
Errors
| Code | HTTP | Description |
|---|---|---|
missing_api_key | 401 | No key sent. Use Authorization: Bearer <key>. |
invalid_api_key | 401 | The key does not exist, or it was reset or revoked. |
key_expired | 401 | The trial key has expired. Apply for a new trial key, or subscribe and create a regular key. |
plan_required | 403 | Your plan does not include the developer API, or this part of it. |
ip_not_allowed | 403 | The key has an IP allowlist and the request came from an address outside it. |
invalid_parameter | 400 | A parameter has the wrong type or value (e.g. limit out of range). |
rate_limited | 429 | Over this key's request rate (REST and MCP combined; the interval is limits.rest_interval_seconds in /v1/me); wait Retry-After seconds and retry. |
curl "https://api.tokenearly.com/v1/notices?limit=10" \
-H "Authorization: Bearer $TOKENEARLY_API_KEY"import os, requests
resp = requests.get(
"https://api.tokenearly.com/v1/notices?limit=10",
headers={"Authorization": f"Bearer {os.environ['TOKENEARLY_API_KEY']}"},
timeout=10,
)
resp.raise_for_status()
print(resp.json())// Node 18+ (built-in fetch)
async function main() {
const resp = await fetch("https://api.tokenearly.com/v1/notices?limit=10", {
headers: { Authorization: `Bearer ${process.env.TOKENEARLY_API_KEY}` },
});
const body = await resp.json();
if (!resp.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
console.log(body);
}
main().catch((err) => {
console.error(err);
process.exit(1);
});package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.tokenearly.com/v1/notices?limit=10", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("TOKENEARLY_API_KEY"))
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(resp.Status, string(body))
}Example response
{
"notices": [
{
"id": "ntc_3f9c2a71d0b84e6c5a12",
"kind": "key_limits_changed",
"scope": "key",
"key_id": "key_8d2f0c1b7a6e4d3c2b1a",
"title": {
"zh": "API Key 限额已调整",
"en": "API key limits changed",
"ko": "API 키 한도 변경"
},
"body": {
"zh": "te_live_Ab12… 每把 Key 的实时连接数: 1 → 2",
"en": "te_live_Ab12… Stream connections per key: 1 → 2",
"ko": "te_live_Ab12… 키당 실시간 연결 수: 1 → 2"
},
"data": {
"key_id": "key_8d2f0c1b7a6e4d3c2b1a",
"prefix": "te_live_Ab12",
"changes": {
"streams_per_key": [
1,
2
]
}
},
"created_at": 1794208744
}
]
}Notice kinds
| kind | scope | Meaning |
|---|---|---|
defaults_changed | global | Default limits changed (old → new) |
account_limits_changed | user | Your account limits changed |
key_limits_changed | key | One key's limits changed |
ip_allowlist_changed | key | One key's IP allowlist changed (data.before / data.after) |
key_reset | key | A key was reset (data.old_prefix / data.prefix are the old and new prefixes; sent to the new key, connections on the old one are already closed) |
key_revoked | key | A key was revoked |
access_expiring | user | The membership that includes the API expires soon (sent 7, 3 and 1 days before; data.expires_at is the end time) |
access_expired | user | The membership that includes the API has expired; keys are refused with 403 plan_required / 4003 and work again as soon as you renew |
api_update | global | API announcement |
scope:global= everyone,user= your account,key= one key (seekey_id).data.changesis{field: [old, new]};nullmeans the default.sinceis exclusive (only notices strictly after it); at most 200 per call with no cursor—use the last notice'screated_atas the nextsince.