Pass cookie through programmatic API #41

`cookie: Array` ?