Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.ivory.finance/llms.txt

Use this file to discover all available pages before exploring further.

Overview

POST /v1/admin/tenants/{slug}/cache/invalidate deletes the cached TenantContext for the given slug from Valkey. The next request from any pod will re-fetch the tenant row from the control plane database and re-cache it. Use this after manually updating credentials in control.tenants, or when a tenant row changes outside the normal PATCH endpoint.
Cache invalidation is performed automatically by the PATCH and DELETE endpoints — you only need to call this manually for out-of-band changes.
This endpoint is restricted to the admin Kong consumer via ACL.

Path parameters

slug
string
required
The tenant slug whose cache entry should be invalidated.

Response

slug
string
The tenant slug.
cache
string
Always "invalidated".

Examples

curl -X POST https://api.ivory.finance/v1/admin/tenants/acme-bank/cache/invalidate \
  -H "X-API-Key: YOUR_ADMIN_KEY"
Response:
{
  "slug":  "acme-bank",
  "cache": "invalidated"
}