nodestash
Billing

Get current subscription details

Returns the current subscription details for the authenticated workspace, including plan, status, billing period, and resource usage.

GET
/billing/subscription
AuthorizationBearer <token>

API key from your nodestash dashboard. Pass as a Bearer token in the Authorization header.

In: header

Response Body

application/json

application/json

application/json

curl -X GET "https://api.nodestash.io/v1/billing/subscription"
{
  "data": {
    "id": "ws_5hJ3kM9pQrVwXyZaB2cD4",
    "type": "subscription",
    "attributes": {
      "plan": "pro",
      "status": "active",
      "current_period_start": "2019-08-24T14:15:22Z",
      "current_period_end": "2019-08-24T14:15:22Z",
      "contacts_used": 42,
      "contacts_limit": 10000,
      "api_calls_limit": 100000
    }
  },
  "meta": {
    "request_id": "req_abc123def456"
  }
}
{
  "error": {
    "code": "INVALID_API_KEY",
    "message": "Missing or invalid Authorization header"
  },
  "meta": {
    "request_id": "req_abc123def456"
  }
}
{
  "error": {
    "code": "RATE_LIMITED",
    "message": "Rate limit exceeded"
  },
  "meta": {
    "request_id": "req_abc123def456"
  }
}