Getting Data In

How to I find my ACCESS_TOKEN for the REST API?

tashburn
New Member

How to I find my ACCESS_TOKEN to use the REST API?

Tags (2)
0 Karma

bmacias84
Champion

@tashburn, I guessing your tying to use the HTTP Header method of authenticating with Splunkd. Your access-token is your session key which can be used against the API, which can be retieved from the /services/auth/login and will be a long string of hexadecimal chars.


curl -k -u <user>:<passw> https://<splunkd>:8089/services/auth/login \ -d username=<user> -d password=<passw>


<response>
<sessionKey>##someHexdecimalNumber##</sessionKey>
</response>

Additional info:

auth/login

REST API Overview - Auth Methods

Authentication

Hope this helps.

Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...