api /streams initial implementation.