getPlan()
Signature
client.getPlan(): Promise<Plan>Usage#
ts
import { VeloraClient } from '@rimora/velora'
import fetch from 'node-fetch'
const client = new VeloraClient({
apiKey: process.env.VELORA_API_KEY,
fetch: fetch as any
})
const { subscription, plan } = await client.getPlan()
console.log('Plan:', plan.name) // "Pro"
console.log('Status:', subscription.status) // "active"
console.log('Renews:', subscription.current_period_end)Response#
Plan
{
"subscription": {
"id": "sub_01HABCDEF",
"status": "active",
"current_period_start": "2026-04-01T00:00:00.000Z",
"current_period_end": "2026-05-01T00:00:00.000Z",
"cancel_at_period_end": false
},
"plan": {
"id": "plan_pro",
"name": "Pro",
"max_jobs": 50,
"max_executions": 10000,
"features": ["webhook_signing", "retry", "custom_headers"]
}
}Required scope#
No specific scope required — any valid API key can call this endpoint.
Common errors#
| Status | error | Cause |
|---|---|---|
401 | invalid_api_key | Missing or revoked API key |