code: func (m *MachinesClient) Create(ctx context.Context, orgID, teamID *identity.ID,
  	name string, output ProgressFunc) (*apitypes.MachineSegment, *base64.Value, error) {
  
  	secret, err := createTokenSecret()
  	if err != nil {
  		return nil, nil, err
  	}
  
  	mcr := apitypes.MachinesCreateRequest{
  		Name:   name,
  		OrgID:  orgID,
  		TeamID: teamID,
  		Secret: secret,
  	}
  
  	result := &apitypes.MachineSegment{}
  	err = m.client.DaemonRoundTrip(ctx, "POST", "/machines", nil, &mcr, &result, output)
  	return result, secret, err
  }
docs: // Create a new machine in the given org