Splunk MINT REST API

Splunk MINT REST API Developer Guide

Download manual as PDF

Download topic as PDF

Use the Splunk MINT REST API

Important notice The Splunk MINT REST API has been deprecated. The Splunk MINT REST commands are no longer supported.

Use a RESTful API with Splunk MINT to retrieve insights, upload dSYMs, and manage projects and teams. This interface incorporates several elements of the REST tradition, making access to these actions consistent and intuitive. All responses are in JSON format.

The examples in this topic show the supported API commands using curl. Curl is a command-line utility for performing HTTP requests and is available on most Unix systems, but you can use any tool or language that can submit HTTP requests.

Get insights

Use the following REST command to get insights about your mobile app usage.

curl --header "X-Splunk-Mint-Auth-Token: YOUR_API_TOKEN" \
    https://mint.splunk.com/api/v1/project/YOUR_API_KEY/analytics.json

Response

{
   "unique_affected_users": [3, 0, 4, 3, 2, 1, 0],
   "crashes": [3, 0, 4, 3, 2, 1, 0],
   "sessions": [986, 987, 1069, 1368, 1421, 1288, 401],
   "days": 7,
   "unique_users": [564, 535, 588, 769, 765, 653, 234],
   "overquotas": false
}

To get other insights, replace analytics.json in the URL with one of the following:

  • analytics/devices.json
  • analytics/versions.json?category=app_versions
  • analytics/versions.json?category=app_versions
  • analytics/versions.json?category=os_versions
  • analytics/top_errors.json
  • analytics/trending_errors.json

Upload dSYM files

To upload a dSYM file, you can use the sample Python BugSense API client or the curl command.

To find your API access token, on your Splunk MINT Management Console dashboard go to Account>Account Info.

python bugsense_cli.py YOUR_API_KEY YOUR_API_TOKEN \
    -dsym ../dsyms/crash-me3.app.dSYM

or

curl -F file=@"/path/to/dsym.zip" \
    --header "X-Splunk-Mint-apikey: YOUR_API_KEY \
    --header "X-Splunk-Mint-Auth-Token: YOUR_API_TOKEN" \
    https://ios.splkmobile.com/api/v1/dsyms/upload -i

Upload ProGuard mapping files

To upload a ProGuard mapping file, you can use the sample Python BugSense API client or the curl command.

To find your API access token, on your Splunk MINT Management Console dashboard go to Account>Account Info.

python bugsense_cli.py YOUR_API_KEY YOUR_API_TOKEN \
    -mappings mappings1.4.txt -app_version 1.4

or

curl -F file=@"/path/to/mapping.txt" \
    --header "X-Splunk-Mint-apikey: YOUR_API_KEY" \
    --header "X-Splunk-Mint-Auth-Token: YOUR_API_TOKEN" \
    --header "X-Splunk-Mint-appver: YOUR_APP_VERSION" \
    https://symbolicator.splkmobile.com/upload/mapping -i

Get project errors

This API has been deprecated and is not supported at this time.

curl --header "X-Splunk-Mint-Auth-Token: YOUR_API_TOKEN" \
    https://mint.splunk.com/api/v1/project/YOUR_API_KEY/errors.json
  NEXT
MINT Documentation

This documentation applies to the following versions of Splunk MINT REST API: 4.0


Comments

HI Maxzintel,

We fixed the issue!

Bashby splunk, Splunker
June 13, 2019

*.splkmobile.com has expired again. Please renew this certificate.

Maxzintel
June 11, 2019

Thanks for pointing this out. I notified the team and they said they have fixed the issue.

Apruneda splunk, Splunker
June 20, 2017

The certificate at https://symbolicator.splkmobile.com seems to be expired! Can this get updated?

Pumakuma
June 19, 2017

Was this documentation topic helpful?

Enter your email address, and someone from the documentation team will respond to you:

Please provide your comments here. Ask a question or make a suggestion.

You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters