API Keys API

These endpoints let you manage your account's API key from code: look up its masked preview, see your current rate-limit usage, rotate it, or revoke it. They al

API Keys API These endpoints let you manage your account's API key from code: look up its masked preview, see your current rate-limit usage, rotate it, or revoke it. They all operate on the calling account's own key only. All paths below are relative to the API base URL: https://api.relaytiv.com/v1 Every request must be authenticated. See Authentication for the four accepted methods. The examples here use the X-API-Key header (and one query-parameter form for cURL). Read this first. Rotating or revoking your key takes effect immediately . The moment either call succeeds, the old key stops working — every integration that still uses it starts getting 401 errors. Plan for it: rotate during a maintenance window and update all your integrations right away. Get current key metadata Returns a masked preview of your active key (first 4 and last 4 characters) and, when available, the date it was created. The full key is never returned by this endpoint — if you have lost your key, rotate it to get a new one. GET /api-keys/current cURL curl "https://api.relaytiv.com/v1/api-keys/current?apiKey=YOUR_API_KEY" JavaScript const res = await fetch("https://api.relaytiv.com/v1/api-keys/current", { headers: { "X-API-Key": "YOUR_API_KEY" }, }); const data = await res.json(); Python import requests res = requests.get( "https://api.relaytiv.com/v1/api-keys/current", headers={"X-API-Key": "YOUR_API_KEY"}, ) data = res.json() Response { "success": true, "api_key_masked": "abcd...qrst", "created_at":