swagger: '2.0' info: description: This API is used to generate access token with Client credentials as OAuth Grant type. version: v1 title: Token API termsOfService: "http://swagger.io/terms/" contact: email: apiteam@apigee.net license: name: Apache 2.0 url: 'http://www.apache.org/licenses/LICENSE-2.0.html' externalDocs: description: "Find out more about Swagger" url: "http://swagger.io" host: xxxxxxxxx.apigee.net basePath: xxxxxxx/oauth/cc schemes: - https paths: /accesstoken: post: summary: create cc accesstoken operationId: createccaccesstoken tags: - Generate Access Token consumes: - application/x-www-form-urlencoded produces: - application/json responses: '200': description: OK schema: description: '' type: object properties: access_token: type: string minLength: 1 expires_in: type: string minLength: 1 required: - access_token - expires_in '400': description: 'Bad Request' schema: type: object properties: errorCode: type: string errorMessage: type: string examples: application/json: errorCode: INVALID_GRANT_TYPE errorMessage: Missing grant_type '401': description: 'Unauthorized' schema: type: object properties: errorCode: type: string errorMessage: type: string examples: application/json: errorCode: UN_AUTHORIZED errorMessage: Invalid Credentials '405': description: 'Method Not Allowed' schema: type: object properties: errorCode: type: string errorMessage: type: string examples: application/json: errorCode: INVALID_VERB errorMessage: Only POST/OPTIONS supported '415': description: 'Unsupported Media Type' schema: type: object properties: errorCode: type: string errorMessage: type: string examples: application/json: errorCode: UNSUPPORTED_MEDIA_TYPE errorMessage: Content-Type not supported '500': description: 'Internal Server Error' schema: type: object properties: errorCode: type: string errorMessage: type: string examples: application/json: errorCode: INTERNAL_SERVER_ERROR errorMessage: Internal Server Error parameters: - name: Authorization in: header description: 'The `Basic` word followed by a space and a base64-encoded string ClientID:ClientSecret.' required: true type: string - name: Content-Type in: header description: 'MIME type' required: true type: string default: application/x-www-form-urlencoded - name: grant_type in: formData type: string description: 'Oauth Grant Type' required: true default: client_credentials