Set the send window

Set the hours and weekdays the workspace sends in. The launcher sends only inside it, paced so each sender's daily limit is reached by close.

PUThttps://app.trygtm.com/api/v1/workspace/send-window
Scope
write

Headers

Idempotency-Keystringoptional
A key unique to this write, up to 255 characters. A retry carrying the same key returns the first response instead of running again. Kept for 24 hours.

Body

timezonestringoptional
IANA timezone, e.g. Europe/London. Omit for America/New_York.
start_hourintegerrequired
First sending hour, 0 to 23, in the timezone.
end_hourintegerrequired
Hour sending stops, 1 to 24, exclusive. Must be after startHour.
daysinteger[]required
ISO weekdays that send: 1 is Monday, 7 is Sunday.

Request

curl -X PUT https://app.trygtm.com/api/v1/workspace/send-window \
  -H "Authorization: Bearer $TRYGTM_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "start_hour": 1,
    "end_hour": 1,
    "days": []
  }'

Response

{
  "data": {
    "saved": "send_window",
    "timezone": "Europe/London",
    "start_hour": 9,
    "end_hour": 17,
    "days": [
      1,
      2,
      3,
      4,
      5
    ]
  }
}

Was this page helpful?