Galon Cloud
Galon API v1

/receiving-domains/{domain_id}/rules/{rule_id}

Base URL https://api.galon.ai/v1 · export GALON_API_BASE="https://api.galon.ai/v1"

PATCH /receiving-domains/{domain_id}/rules/{rule_id}

Enable or disable a forwarding rule

Key carrying mail:send AND job:read. Served only when inbound is open to the account (404 not_found otherwise).

API key (Bearer), on the public API endpoint.

Parameters

NameInTypeDescription
domain_idpathstring · requiredinbound domain identifier
rule_idpathstring · required

Request body

application/json

FieldTypeDescription
enabledboolean · required

Responses

StatusDescriptionBody
200Rule updatedobject
404Not foundError
401Key missing or invalidError

Examples

curl

curl -X PATCH "$GALON_API_BASE/receiving-domains/<domain_id>/rules/<rule_id>" \
  -H "Authorization: Bearer $GALON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"enabled": true}'

DELETE /receiving-domains/{domain_id}/rules/{rule_id}

Delete a forwarding rule

Key carrying mail:send AND job:read. Served only when inbound is open to the account (404 not_found otherwise).

API key (Bearer), on the public API endpoint.

Parameters

NameInTypeDescription
domain_idpathstring · requiredinbound domain identifier
rule_idpathstring · required

Responses

StatusDescriptionBody
200Rule deletedobject
404Not foundError
401Key missing or invalidError

Examples

curl

curl -X DELETE "$GALON_API_BASE/receiving-domains/<domain_id>/rules/<rule_id>" \
  -H "Authorization: Bearer $GALON_API_KEY"