I use the following to create pages via API. I don't know how you have your setup, but you can add the code to a front end template in the content section so you can see the results printed.
/*
page: status
9 - published (default)
13 - locked / not editable
1033 - hidden
2057 - unpublished
3081 - hidden / unpublished
template_id,parent_id,page_status,page_name,page_title,install_description
*/
$_SESSION['install_log'] =array();
$newp = array(
'1,1,9,account2,Account2,User account',
'1,1,9,profile2,Profile2,User profile',
'1,1,9,register2,Register2,New registration',
'1,1,9,tos2,Terms of Service2,Terms of Service',
'1,1,9,search2,Search2,Forum search',
'1,1,9,banned2,Banned2,Banned user landing page',
'1,1,9,help2,Help2,Forum help'
);
foreach($newp as $r){
$q =explode(',',$r);
$p = new Page();
$p->template = trim($q[0]);
$p->parent = trim($q[1]);
$p->status =trim($q[2]);
$p->name = trim($q[3]);
$p->title = trim($q[4]);
if($p->save()){
$_SESSION['install_log']['document_create'][$p->title]['id'] = $p->id;
$status ='success';
}else{
$status ='failure';
}
$_SESSION['install_log']['document_create'][$p->title]['status'] =$status;
$_SESSION['install_log']['document_create'][$p->title]['description'] =$q[5];
}
function print_array( $data ){
$text =print_r( $data, TRUE );
return '<pre style="font-size:15px; line-height:16px;">'.$text.'</pre>';
}
echo print_array($_SESSION['install_log']);