Billing Emails API
AI agents and LLMs: before exploring further, fetch the full index of Typesense documentation with descriptions at https://typesense.org/docs/llms.txt.
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
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:
{
"billing_emails": [
"billing@example.com",
"finance@example.com"
]
}Response Parameters
| Field | Description |
|---|---|
billing_emails | The 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.
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
| Parameter | Required | Description |
|---|---|---|
billing_emails | Required | The 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
| Status | When |
|---|---|
400 | billing_emails is missing, empty or not a list. |
422 | billing_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.