Netlify Redirect - Splat Subdomain

I’m trying to create a redirect rule that achieves the following:

Any request that arrives at https://example.netlify.app/api/ORG/any/path to be redirected to https://ORG.example.com/any/path. Can I achieve that using this configuration in my netlify.toml?

[[redirects]]
from = “/api/:ORG/*”
to = “https://:ORG.example.com/:splat”
status = 200
force = true

You can certainly do this! I’ve prepped a little demo here: https://redirect-subdomain-splat.netlify.rodeo

I’ve written it using _redirects but the same principle applies!