{"openapi":"3.1.0","info":{"title":"get-bearer-token","version":"1-apps"},"servers":[{"url":"https://idp.test.bluestonepim.com"}],"components":{"securitySchemes":{"sec0":{"type":"oauth2","flows":{}}}},"security":[{"sec0":[]}],"paths":{"/op/token":{"post":{"summary":"Generate token","description":"Use this endpoint to generate a bearer token. Once you have obtained the token, copy it and use it for authenticating your requests to the OAuth2 endpoints.","operationId":"generate-token","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"client_id":{"type":"string"},"client_secret":{"type":"string"},"grant_type":{"type":"string","description":"Must be set to client_credentials. Choose \"Use default value\" to populate automatically.","default":"client_credentials"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"access_token\": \"string\",\n  \"expires_in\": 600,\n  \"token_type\": \"Bearer\"\n}"}},"schema":{"type":"object","properties":{"access_token":{"type":"string","example":"string"},"expires_in":{"type":"integer","example":600,"default":0},"token_type":{"type":"string","example":"Bearer"}}}}}},"400":{"description":"400","content":{"application/json":{"examples":{"Result":{"value":"{\n  \"error\": \"string\",\n  \"error_description\": \"string\"\n}"}},"schema":{"type":"object","properties":{"error":{"type":"string","example":"string"},"error_description":{"type":"string","example":"string"}}}}}}},"deprecated":false,"security":[]}}},"x-readme":{"headers":[],"explorer-enabled":true,"proxy-enabled":true},"x-readme-fauxas":true}