How grant required access & end point information for accessing the Splunk API?
Please help us how we can grant access SPlunk API
Are you asking about the REST API? Access is based on role and the capabilities associated with the role. You reach endpoints through the management port (8089) over HTTPS.
See Authentication and authorization and Connecting to splunkd in the REST API User Manual.