↗

Notices

Records of limit changes, key changes and API updates.

GEThttps://api.tokenearly.com/v1/notices

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

sinceintegerqueryoptional

Only notices created after this Unix time (seconds); 0 for all.

limitintegerqueryoptional

Maximum number of notices, 1–200, default 50.

Try it
Get a trial key

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

CodeHTTPDescription
missing_api_key401No key sent. Use Authorization: Bearer <key>.
invalid_api_key401The key does not exist, or it was reset or revoked.
key_expired401The trial key has expired. Apply for a new trial key, or subscribe and create a regular key.
plan_required403Your plan does not include the developer API, or this part of it.
ip_not_allowed403The key has an IP allowlist and the request came from an address outside it.
invalid_parameter400A parameter has the wrong type or value (e.g. limit out of range).
rate_limited429Over 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

kindscopeMeaning
defaults_changedglobalDefault limits changed (old → new)
account_limits_changeduserYour account limits changed
key_limits_changedkeyOne key's limits changed
ip_allowlist_changedkeyOne key's IP allowlist changed (data.before / data.after)
key_resetkeyA 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_revokedkeyA key was revoked
access_expiringuserThe membership that includes the API expires soon (sent 7, 3 and 1 days before; data.expires_at is the end time)
access_expireduserThe membership that includes the API has expired; keys are refused with 403 plan_required / 4003 and work again as soon as you renew
api_updateglobalAPI announcement
  • scope: global = everyone, user = your account, key = one key (see key_id).
  • data.changes is {field: [old, new]}; null means the default.
  • since is exclusive (only notices strictly after it); at most 200 per call with no cursor—use the last notice's created_at as the next since.