scripts/api: add remaining endpoints.