Looking the The Core API examples is the best way to understand the API. Use Scripts->Create new Core API script to experiment with that examples.
C++ and CoreAPI basics

Logging.cpp
Output to the log file, writing to the text file

dialogs.cpp
This example demonstrates the power of the dialogs and UI. It describes how to register the elements into the UI.
SculptTree operations

square_volume.cpp
Iterate over the sculpt tree, show the basic stats - square, volume
Generate objects

meshes.cpp
Generate the voxel figure that consists of random spheres

meshes_surface_merge.cpp
Generate the figure that consists of multiple spheres merged into the single surface object without booleans
Construct scene using primitives

csg_voxels.cpp
This example generates the detail for the further 3D printing using the voxels. The CSG principles demonstrated.

csg_surface.cpp
This example generates the detail for the further 3D printing using the surface mode. The CSG principles demonstrated.

BrickWall.cpp
Generate the surface figure "brick wall" that consists of boxes

capsule.cpp
This example generates the surface figure that consists of capsule

ellipses.cpp
This example generates the surface figure that consists of ellipses

gear.cpp
This example generates the surface figure that consists of gear

HoneyComb.cpp
This example generates the surface figure that consists of honey combs (ngons)

OlympicRings.cpp
This example generates the surface figure "olimpic rings" that consists of toruses

RollingPin.cpp
This example generates the surface figure rolling pin that consists of cylinders

spheres.cpp
Generate the surface figure that consists of spheres

spiral.cpp
This example generates the surface figure that consists of spiral

tube.cpp
This example generates the surface figure that consists of tube

WindRose.cpp
Generate the surface figure "windrose" that consists of cones

cup.cpp
Generate the surface figure "glass"

DoorStop.cpp
This example generates the surface figure door stop that consists of half-sphere and cylinders

bolt_binary.cpp
This example generates the bolt composite (bolt head + thread stud)

bolt_rim.cpp
This example generates the bolt composite (rim head + round thread profile)

boltheads.cpp
This example generates the bolt heads (hexa,flat,lamb)

screw.cpp
This example generates the bolt composite (bolt head + thread stud)

thread.cpp
This example generates the surface figure that consists of thread

threadStud.cpp
This example generates the surface figure that consists of thread stud

washer.cpp
This example generates the washer primitives (flat,grover,quard)

nut.cpp
This example generates the nut primitive.

ffBlob.cpp
This example generates the freeform primitive (blob)

ffCube.cpp
This example generates the freeform primitive (cube)

ffCylinder.cpp
This example generates the freeform primitive (cylinder)
Construct scene using primitives

Dumbbell.cpp
This example generates the surface figure dumb-bell with usage of the debug mode

Logo3D.cpp
This example generates the surface consist of logo 3D picture
Export