Skip to main content

Get Billing Info

Get the current billing status for your tenant.

Switch Free-Tier Slot

Switch which agent occupies the tenant’s free-tier agent slot. Requires the admin scope. This recovers a free tenant whose first-seen agent was a throwaway, or whose agent identity changed on redeploy, from being locked out of its own free tier. Full recovery when the wrong agent claimed the slot is a 3-step flow:
1

Remove the wrong agent

Soft-delete the old (wrong) agent via DELETE /api/v1/agents/{id}.
2

Register the new agent

Start emitting from the new agent so it exists in the registry.
3

Move the slot

Call this endpoint with the new agent’s ID to move the free slot to it.
Recording then follows the new agent from the next ingest batch onward.

Request Body

Checkout (Change Plan)

Initiate a plan change. Returns a checkout URL for payment if upgrading, or confirms the downgrade if moving to a lower tier.
Valid plan values: starter, professional, enterprise. For Enterprise Plus, contact sales.

Webhook

Endpoint for payment provider webhooks (Stripe). This endpoint is called by the payment provider, not by your application.

Webhook Events

Verifying Webhooks

MeshAI verifies webhook signatures automatically. If you’re self-hosting, configure the webhook signing secret in your environment:

Webhook Payload Example