{"_id":"56cc1533ca43550b0028125d","project":"56cacb1bc675f50b00a4b619","version":{"_id":"56cacb1cc675f50b00a4b61c","project":"56cacb1bc675f50b00a4b619","__v":14,"createdAt":"2016-02-22T08:47:24.528Z","releaseDate":"2016-02-22T08:47:24.528Z","categories":["56cacb1dc675f50b00a4b61d","56cc10aaca43550b0028125a","56cc10b7b4cbcf0b004a5df9","56cc1bb2272aa4130002ccd2","56cc5834b4cbcf0b004a5f8b","56cda18bface161300dae13b","56d51f2873dcd20b00fb87bb","56fbe0610023171700b96105","57658310c176520e00ea9076","5772bdd48c48e00e00503638","577c1dfe87acf617003c3fcd","579525172979790e00771a15","582b4661cdfdc125000c8684","586365cedfe6cc3700a7be63"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1"},"category":{"_id":"56cc1bb2272aa4130002ccd2","project":"56cacb1bc675f50b00a4b619","__v":0,"version":"56cacb1cc675f50b00a4b61c","pages":[],"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-02-23T08:43:30.817Z","from_sync":false,"order":4,"slug":"authentication-rest-api","title":"Authentication REST API"},"editedParams":true,"editedParams2":true,"__v":1,"parentDoc":null,"user":"56caca84245b841300806def","updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-02-23T08:15:47.681Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","examples":{"codes":[]},"method":"post","results":{"codes":[{"language":"json","code":"{\n\t\"access_token\": access_token_from_server,\n\t\"token_type\": \"Bearer\",\n\t\"expires_in\": 3600\n}","name":"","status":200},{"status":400,"language":"json","code":"{\n\"code\": 505,\n\"status\": \"fail\",\n\"message\":related_error_message\n}","name":""}]},"auth":"never","params":[{"_id":"56cc1533ca43550b0028125e","ref":"","in":"body","required":true,"desc":"Client ID from your Codemojo dashboard","default":"","type":"string","name":"client_id"},{"_id":"56cc18eb9f4ae20b00645011","ref":"","in":"body","required":true,"desc":"Client Secret from your Codemojo dashboard","default":"","type":"string","name":"client_secret"},{"_id":"56cc18eb9f4ae20b00645010","ref":"","in":"body","required":true,"desc":"Default value (client_credentials)","default":"client_credentials","type":"string","name":"grant_type"}],"url":"/oauth/access_token"},"isReference":true,"order":0,"body":"The **access_token** received can be cached within the **expires_in** duration to reduce the access token trip","excerpt":"Using your Client ID & Client Secret to generate your oAuth Access token","slug":"getting-oauth-access-token","type":"endpoint","title":"Getting oAuth Access Token"}

postGetting oAuth Access Token

Using your Client ID & Client Secret to generate your oAuth Access token

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

client_id:
required
string
Client ID from your Codemojo dashboard
client_secret:
required
string
Client Secret from your Codemojo dashboard
grant_type:
required
stringclient_credentials
Default value (client_credentials)

Result Format


Documentation

The **access_token** received can be cached within the **expires_in** duration to reduce the access token trip

User Information

Try It Out

post
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}