--- title: Client authorization category: docs layout: docs --- Client authorization ==================== [See all management resources](/docs/usergrid/content/management-resources)[](/docs/usergrid/content/management-resources) Using the App services API, you can authorize a client. Authorizing a client -------------------- Use the GET method to authorize a client. ### Request URI GET /management/authorize?response\_type={response\_type}&client\_id={client\_id} ### Parameters Parameter Description ----------------------- ------------------------------------------------------------------------------------------------- string response\_type The [OAuth 2.0 response type](http://tools.ietf.org/html/draft-ietf-oauth-v2-31#section-3.1.1). string client\_id Organization client ID ### Example - Request - [cURL](#curl_auth_client) - [JavaScript (HTML5)](#javascript_auth_client) - [Ruby](#ruby_auth_client) - [Node.js](#nodejs_auth_client) curl -X GET "https://api.usergrid.com/management/authorize?response_type=token&client_id=b0U5N81ME96NSeG78xIxQFxelQ" It is recommended that you use the [Admin Portal](http://apigee.com/usergrid) for administrative activities instead of using JavaScript to do them programmatically in your app. **Note:**You can see the response below in the Admin Portal by using the [JavaScript Console](/docs/usergrid/content/displaying-app-services-api-calls-curl-commands). The example assumes use of the [Ruby SDK](https://github.com/scottganyo/usergrid_iron). mgmt = Usergrid::Management.new 'https://api.usergrid.com/' mgmt['authorize'].get params: { response_type: 'token', client_id: 'b0U5N81ME96NSeG78xIxQFxelQ'} The example assumes use of the [Node.js module](https://github.com/apigee/usergrid-node-module). var options = { method:'GET', endpoint:'management/authorize', qs:{response_type:'token', client_id:'b0U5N81ME96NSeG78xIxQFxelQ'} }; client.request(options, function (err, data) { if (err) { //error — GET failed } else { //success — data will contain raw results from API call } }); ### Example - Response