Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
maxLevel24

Base Url

https://console.springserve.com/

...

We are limiting the requests to our API as such:

1) max 240 request/minute per account 
2) max 10 requests/minute to the reporting API endpoint 
3) max 3 requests/minute to the reporting API endpoint by domain/app bundle 


Authentication

To create a new API user, simply login into your account, and in the Settings → Users section, create a new user. As email for the API user, you should put your regular email but add +api to the name (ex. name.lname+api@gmail.com). This will help you identify the origin of any change made in the UI. If you do not receive a password via email contact support@springserve.com

...

Authorization "yourAuthToken"

Examples

Python Example

Code Block
languagepy
themeRDark
import requests
import json

url = "https://console.springserve.com/api/v0/auth"

payload = json.dumps({
  "email": "user@example.com",
  "password": "123abc"
})
headers = {
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)


NodeJS Example

Code Block
languagejs
themeRDark
var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://console.springserve.com/api/v0/auth',
  'headers': {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "email": "user@example.com",
    "password": "123abc"
  })

};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

...