Skip to main content
GET
/
manage
/
spend_keys
List spend keys
curl --request GET \
  --url https://api.lava.so/v1/manage/spend_keys \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "spend_key_id": "<string>",
      "key_preview": "<string>",
      "name": "<string>",
      "status": "active",
      "wallet_id": "<string>",
      "current_spend": "<string>",
      "current_requests": 1,
      "created_at": "2023-11-07T05:31:56Z",
      "allowed_models": [
        "<string>"
      ],
      "allowed_providers": [
        "<string>"
      ],
      "spend_limit": {
        "amount": "<string>",
        "cycle": "daily"
      },
      "request_limit": {
        "count": 2,
        "cycle": "daily"
      },
      "rate_limit": {
        "rpm": 2,
        "burst": 2
      },
      "expires_at": "2023-11-07T05:31:56Z",
      "last_used_at": "2023-11-07T05:31:56Z"
    }
  ],
  "has_more": true,
  "next_cursor": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer token authentication used for standard API calls. Format: 'Bearer YOUR_API_KEY'

Query Parameters

wallet_id
string

Filter by wallet ID

cursor
string

Pagination cursor

limit
integer
default:10

Number of results per page

Required range: x <= 100

Response

200 - application/json

List of spend keys

data
object[]
has_more
boolean
next_cursor
string | null