How create Dashboard and Panel via API

There is no API for panels only.

You can create & update dashboards using this API
http://docs.grafana.org/http_api/dashboard/#create-update-dashboard