Authentication

Introduction

Sprint.ly's API uses basic HTTP-Auth over SSL. The only difference is that you use your API key rather than your account's password as your password. Your username is your account's email address. 

curl -u joe@joestump.net:286755fad04869ca523320acce0dc6a4 https://sprint.ly/api/products.json 

Your API Key

You may find your API key in your account profile: 

 



We do not currently have an OAuth API so be sure to keep these credentials in a safe place and only share them with trusted third parties.

Finding the user's ID


We have an endpoint for finding user ids (and some other user info) given authentication tokens.

curl -u justin@sprint.ly:api_key_here https://sprint.ly/api/user/whoami.json
{ "first_name":"Justin", "last_name":"Abrahms", "created_at":"2012-07-23T17:54:30+00:00", "email":"justin@sprint.ly", "last_login":"2015-03-24T19:43:02+00:00", "id":5304 }
Have more questions? Submit a request

0 Comments

Article is closed for comments.
Powered by Zendesk