Recharge history

Call this endpoint from your backend to issue a temporary standalone recharge history link for a sub-user, then redirect the end user to the returned url to view completed recharges without logging in or exposing their API key.

Request

POST https://inoneapi.ai/api/v1/org/access-links

Send requests to https://inoneapi.ai with Authorization: Bearer $ORG_ADMIN_KEY.

curl -X POST "https://inoneapi.ai/api/v1/org/access-links" \
  -H "Authorization: Bearer $ORG_ADMIN_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "recharges",
    "api_key": "sk-io-...",
    "locale": "en"
  }'

Request parameters

FieldRequiredDescription
typeYesMust be recharges
api_keyYesSub-user API key (sk-io-…), verified by the server to belong to this organization
localeNoPage language (for example en, zh, ja); defaults to the site default locale
expires_inNoLink TTL in seconds; default 1800 (30 minutes), range 60–86400

Response (HTTP 201)

{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "token": "550e8400-e29b-41d4-a716-446655440000",
  "type": "recharges",
  "url": "https://inoneapi.ai/en/recharges/550e8400-e29b-41d4-a716-446655440000",
  "expires_at": "2026-11-24T09:30:00.000Z"
}

Usage

  • Return url to your frontend and redirect the end user to it (or open it in a new tab) to view their completed recharge history.
  • Links expire after 30 minutes by default; call this endpoint again to generate a fresh link when needed.
  • Errors follow {"error":"CODE"}: 401 UNAUTHORIZED for an invalid admin key, 400 INVALID_INPUT for invalid parameters, and 404 NOT_FOUND if the sub-user key does not exist or belongs to another organization.