Skip to content

Billing Emails API ​

These endpoints read and replace the email addresses that receive your account's receipts and billing notices, such as a failed payment or a card about to expire. Receipts come with the invoice PDF attached.

List billing emails ​

shell
curl -X GET --location "https://cloud.typesense.org/api/v1/account/billing-emails" \
    -H "Accept: application/json" \
    -H "X-TYPESENSE-CLOUD-MANAGEMENT-API-KEY: YOUR-API-KEY"

Response:

json
{
  "billing_emails": [
    "billing@example.com",
    "finance@example.com"
  ]
}

Response Parameters ​

FieldDescription
billing_emailsThe addresses that receive receipts and billing notices.

When the list is empty, receipts and billing notices go to the account owner's email address.

Replace billing emails ​

This endpoint replaces the whole list with the addresses you send. To add an address, send the current list from List billing emails plus the new address.

shell
curl -X PUT --location "https://cloud.typesense.org/api/v1/account/billing-emails" \
    -H "Accept: application/json" \
    -H "Content-Type: application/json" \
    -H "X-TYPESENSE-CLOUD-MANAGEMENT-API-KEY: YOUR-API-KEY" \
    -d '{
      "billing_emails": ["billing@example.com", "finance@example.com", "ap@example.com"]
    }'

Request Parameters ​

ParameterRequiredDescription
billing_emailsRequiredThe full list of addresses, up to 10.

This endpoint returns the new list, in the same format as List billing emails.

Note

Each time a card is entered in Typesense Cloud, to save it or to buy credit, the billing email on the card form replaces the first address in this list.

Error Responses ​

StatusWhen
400billing_emails is missing, empty or not a list.
422billing_emails isn't valid.

Permissions ​

To list billing emails, you need a key with the billing:read capability. To replace them, you need billing_emails:manage. See capabilities.

AI agents connected through the Typesense Cloud MCP server need the same permissions to work with billing emails.