How to create a host on a DigitalOcean team with Terraform? Teams on Digital Ocean are very recent and there is no documentation about using them with Terraform.

All information I can found is how to work with them manually.

I was hoping that I could say something like:

resource "digitalocean_droplet" "host" {
    image = "${var.image}"
    name = "${var.host_name}"
    region = "${var.region}"
    size = "${var.size}"
    private_networking = "${var.private_networking}"
    ssh_keys = ["${var.ssh_fingerprint}"]
    team = "${var.team}"
}


Note the team = "${var.team}" at the end.

Since Terraform is just a wrapper on the top of the provider APIs I looked at the documentation trying to find some endpoint of field about this but found nothing.

How should I use Digital Ocean teams with Terraform? Or I am stuck with the main account if I want to automate things with Terraform?
According to the article you linked, Team Resources are shared. This means that all droplets (hosts) are shared across the team once you have a team in place.

source: https://www.digitalocean.com/community/tutorials/how-to-use-teams-on-digitalocean#team-resources

This means that each team member, using his own personal token, can manage all the resources shared with her. Terraform allows each user to use his own credentials when managing resources, and includes a state file (that must be shared as well). Managing shared tfstate and managing secrets is addressed in this DevOps.SE question.