GET /api/v1/apikeys

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/lighter/api/v1/apikeysCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Publicly registered L2 API key public keys and nonces for an account.

Parameters

nameintypedescription
account_indexqueryintrequiredAccount index.
example: 281474976710654
api_key_indexqueryintoptionalOptional specific API key index.

Response

type: object
data key: api_keys
pagination: none
sample: {
  "code": "int",
  "api_keys": "array[255]"
}

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/lighter/api/v1/apikeys?account_index=281474976710654"