Bucket.counter via API/curl

I’m looking for easy way to pre-create atomic couters via API/curl? (this will be part of scripted bucket creation).

Help will be really appreciated

you can bundle your counters into file and use cbdocloader tool, which shipped with Couchbase Server.

https://developer.couchbase.com/documentation/server/current/cli/cbdocloader-tool.html