Your key's plan and usage
const url = 'https://api.getchord.xyz/v1/me';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.getchord.xyz/v1/me \ --header 'X-API-Key: <X-API-Key>'The limits Chord applies to an API key and the calls counted against them. Keys are made at getchord.xyz/ask under Settings, API. Not metered, and answered when the key’s calls are used up.
Authorizations
Section titled “Authorizations”Responses
Section titled “ Responses ”object
The plan in effect now: a paid plan past its end reads free. null for an unlimited key or a key with no plan on it.
Present only on a key issued by the Chord team with no rate or call cap.
object
Requests a minute. null = no cap.
Calls in any 30 days. null = no cap.
The calls the cap counts: every key of the account when the key belongs to one.
object
Calls in the trailing 30 days, today included.
A key’s own call cap, in place of its plan’s.
When the paid plan ends (ms).
When the key stops working (ms).
Example
{ "tier": "build", "limits": { "rpm": 100, "monthly": 16000, "priceUsd": 99, "label": "Build" }, "usage": { "today": 812, "month": 9210 }, "tierUntil": 1764547200000}Missing or unknown credential (UNAUTHORIZED).
Every non-2xx body.
object
Stable machine code, e.g. INVALID_PARAMS, NOT_READY, RATE_LIMIT_EXCEEDED.
For humans.
HTTP status, when included.
Example
{ "error": "INVALID_PARAMS", "message": "amount must be an integer string in the token's smallest unit"}