Set Organization Asset Expiry
Set, renew or clear when assets drop off your organization’s allowlist. After the expiry passes, assets stay for a 14-day grace period, then are removed from your organization; their status does not change. Requires an organization API key with write access, or an organization owner or admin.
Overview
Set, renew or clear when assets drop off your organization’s allowlist. Use it for assets that should only stay for a while, such as a partner’s website. When an asset’s expiry passes, it stays allowed and on your organization for a 14-day grace period, then it is removed from your organization and monitoring for it stops. Its status does not change. Organization owners and admins get a daily email digest about upcoming expiries and removals. See Expiry for the full timeline.- Setting a date on an expired asset renews it and ends its grace period.
- Passing
nullclears the expiry, so the assets stay indefinitely. - The request is all or nothing: if any asset is not on your organization, nothing changes.
Quick Start
Authentication
Include your API key in theX-API-KEY header:
slug; you must be an owner or admin of that organization.
Example Request
"expiresAt": null.
Request Body
Response
Success Response
Response Fields
allowlistExpiresAt, and allowlistExpiredAt once its grace period has started.
Error Responses
400 Bad Request
Returned whenexpiresAt is not in the future, or the body is malformed:
401 Unauthorized
Returned when noslug is passed and the credentials are not scoped to an organization:
403 Forbidden
Returned when the API key is read-only, belongs to a different organization thanslug, or the user is not an owner or admin of the organization.
404 Not Found
Returned when any of the assets is not on your organization. Nothing is changed:Use Cases
Expire partner assets after a year
From the CLI or MCP
organization_assets_set_expiry tool.Authorizations
Your API key. This is required by most endpoints to access our API programatically. Reach out to us at support@chainpatrol.io to get an API key for your use.
Body
Set when organization assets expire
Sets, renews or clears the allowlist expiry of assets on your organization. Use it for assets that should only stay for a while, such as a partner's site. When the date passes, the assets stay on your organization for a 14-day grace period, then are removed from it. Their status does not change. Setting a new date on an expired asset renews it and ends its grace period.
IDs of the organization's assets to update (max 5000 per request)
1 - 5000 elementsx > 0When the assets expire, as an ISO 8601 date-time in the future (e.g. 2027-04-30T23:59:59Z). null clears the expiry so the assets stay indefinitely.
Organization slug. Optional for organization-scoped API keys, which resolve the organization from the key itself. Required when your credentials can reach more than one organization.