Skip to main content
Time window policies restrict payments by hour and day. Set an IANA timezone in the value of every policy rule. Without one, the rule is evaluated in UTC, not your local time. Wallet-level time windows use the agent-wallet link’s own timezone.

Configuration (API)

Create a complete TIME_WINDOW policy with its rules in one request:

Rule types

TIME_WINDOW (hours)

Restrict transactions to specific hours of the day: 09:00 to 17:00 matches through 17:00 and stops matching at 17:01. Wallet-level hours work differently: their end hour is excluded. See Wallet-level time windows.

DAY_OF_WEEK (days)

Restrict transactions to specific days of the week: Valid day values: Mon, Tue, Wed, Thu, Fri, Sat, Sun

BLACKOUT_PERIOD

Block transactions during maintenance windows or holidays:
For a date range such as a holiday, give each window full timestamps, for example {"windows":[{"start":"2026-12-24T00:00:00Z","end":"2026-12-26T23:59:59Z"}]} with operator BETWEEN and action DENY.

Wallet-level time windows

Time windows can also be set on the agent-wallet link. Send this body to POST /api/agents/{id}/wallets when linking, or the same fields without walletId to PATCH /api/agents/{id}/wallets/{walletId}:
allowedHoursStart, allowedHoursEnd, and allowedDays are evaluated in the link’s IANA timezone, which defaults to UTC. Invalid IANA names are rejected with a 400. Hours are whole numbers on a 24-hour clock, with allowedHoursStart inclusive and allowedHoursEnd exclusive: 9 to 18 allows 09:00 through 17:59 and blocks 18:00 onward. Midnight is hour 0, so 0 to 24 covers the full day, which is the default. This differs from a TIME_WINDOW rule, where the end minute is included.

Use cases

Business hours

Only allow transactions during working hours

Extended hours

Allow transactions in extended support hours

Weekends only

For agents that operate on weekends

Error response

When a transaction is blocked by time window:

Best practices

Set the link’s timezone to your organization’s operating timezone (for example, America/New_York) instead of converting hours to UTC by hand. With the timezone set, allowedHoursStart and allowedHoursEnd read as local business hours, Conto applies daylight saving time, and allowedDays matches the local calendar day.
Every payment outside 09:00 to 17:00 New York time waits for review. Payments inside the window follow your other limits.