Instructions to Reset your password have been emailed to the specified email address.
Please check your SPAM folder if you do not receive an email from us within the next 15 mins.
API Authentication

The Stacker API uses the OAuth 2 standard to make authenticated requests using an API token



Getting Started with OAuth 2
  1. Grab an OAuth 2 library.

  2. Register your app here. You will be assigned a client_id and client_secret. You will need to provide a redirect_uri: a URL where we can send a response code after successfully authenticating. For example http://www.appurl.com

  3. Configure your OAuth 2 library with your client_id, client_secret, code and redirect_uri. Tell it to use https://www.getstacker.com/oauth/authorize to request authorization and https://www.getstacker.com/oauth/getAccessToken to get access tokens.



GET Authorization
Request

GET https://www.getstacker.com/oauth/authorize?client_id={client_id}&redirect_uri=http://www.appurl.com

Parameters

client_id
string
Stacker API developer client id
required
redirect_uri
string
Url to redirect after authorization
required

Response
http://www.appurl.com?code=1406574445|j46s6dfghsdxc474z5dfz4xcxcvhjbxc



GET Access Token

Request

POST https://www.getstacker.com/oauth/getAccessToken?client_id=client_id}&redirect_uri={redirect_url}&client_secret={client_secret}&code={code}

Parameters

client_id
string
Stacker API developer client id
required
redirect_uri
string
Url to redirect after authorization
required
client_secret
string
Stacker API developer app client id
required
code
string
Stacker API developer app code after authorization
required

Response

http://www.appurl.com?code={code}

{
  "status": "success",
  access_token:1407328644094|31581058a04e643c18f0f7f1fac6ced8 
}