Yes, you can create searches using the REST API in Splunk Cloud. Here are the basic steps:
Here’s a simple example using curl:
curl -k -u username:password https://<splunk-cloud-url>/services/search/jobs -d search="search index=_internal | head 10"
This command will create a search job that retrieves the first 10 events from the _internal index.