SendlySendly
API ReferenceBilling

Set this project's monthly email caps per stream

PUT
/api/users/me/projects/{id}/billing-limits

Set this project's monthly email caps per stream. Pass all four; null removes a cap. Sending in a stream stops when its cap is reached. Needs an active subscription.

Requires the billing:write scope — Start a checkout, change spending limits, open the billing portal, cancel or refund.

Authorization

better-auth.session_token<token>

BetterAuth session cookie. Used by the dashboard / browser clients. When present, the active project is taken from the x-project-id header.

In: cookie

Path Parameters

id*string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/api/users/me/projects/string/billing-limits"
{
  "workflows": {
    "limit": 0,
    "usage": 0,
    "percentage": 0,
    "isWarning": true,
    "isBlocked": true
  },
  "campaigns": {
    "limit": 0,
    "usage": 0,
    "percentage": 0,
    "isWarning": true,
    "isBlocked": true
  },
  "transactional": {
    "limit": 0,
    "usage": 0,
    "percentage": 0,
    "isWarning": true,
    "isBlocked": true
  },
  "inbound": {
    "limit": 0,
    "usage": 0,
    "percentage": 0,
    "isWarning": true,
    "isBlocked": true
  },
  "currency": "string"
}
{
  "success": false,
  "error": {
    "message": "string",
    "code": "string",
    "details": {
      "errors": [
        null
      ]
    }
  }
}
{
  "success": false,
  "error": {
    "message": "string",
    "code": "string",
    "details": {
      "errors": [
        null
      ]
    }
  }
}
{
  "success": false,
  "error": {
    "message": "string",
    "code": "string",
    "details": {
      "errors": [
        null
      ]
    }
  }
}
{
  "success": false,
  "error": {
    "message": "string",
    "code": "string",
    "details": {
      "errors": [
        null
      ]
    }
  }
}
{
  "success": false,
  "error": {
    "message": "string",
    "code": "string",
    "details": {
      "errors": [
        null
      ]
    }
  }
}
{
  "success": false,
  "error": {
    "message": "string",
    "code": "string",
    "details": {
      "errors": [
        null
      ]
    }
  }
}