Getting Data In

How to I find my ACCESS_TOKEN for the REST API?

New Member

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

Tags (2)
0 Karma


@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>


Additional info:


REST API Overview - Auth Methods


Hope this helps.

Get Updates on the Splunk Community!

Infographic provides the TL;DR for the 2023 Splunk Career Impact Report

We’ve been shouting it from the rooftops! The findings from the 2023 Splunk Career Impact Report showing that ...

Splunk Lantern | Getting Started with Edge Processor, Machine Learning Toolkit ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Enterprise Security Content Update (ESCU) | New Releases

In the last month, the Splunk Threat Research Team (STRT) has had 2 releases of new security content via the ...