{"openapi":"3.0.1","info":{"title":"Quinyx API Security","description":"User Account Authorization","contact":{"name":"Quinyx","url":"https://www.quinyx.com/"},"license":{"name":"","url":""},"version":"v2.0"},"externalDocs":{"description":"User Account Authorization"},"servers":[{"url":"https://api.quinyx.com/v2","description":""}],"tags":[{"name":"Token Controller","description":"Security Tokens Endpoint"}],"paths":{"/oauth/token":{"get":{"tags":["Token Controller"],"summary":"Obtain security token","description":"Please use the POST method, as this method is deprecated","operationId":"getAccessToken","responses":{"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuth2AccessToken"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuth2AccessToken"}}}},"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuth2TokenResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuth2AccessToken"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuth2AccessToken"}}}}},"deprecated":true},"post":{"tags":["Token Controller"],"summary":"Obtain security token","description":"Operation returns the security token to be used for subsequent calls to API","operationId":"postAccessToken","parameters":[{"name":"grant_type","description":"Grant type requested","required":true,"schema":{"type":"string"},"example":"client_credentials"}],"responses":{"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuth2AccessToken"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuth2AccessToken"}}}},"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuth2TokenResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuth2AccessToken"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuth2AccessToken"}}}}}}}},"components":{"schemas":{"OAuth2TokenResponse":{"type":"object","properties":{"access token":{"type":"string"},"type of the token":{"type":"string","enum":["Bearer"]},"token expiry time in seconds":{"type":"integer","format":"int32"},"scope of the token":{"type":"string","enum":["read, write"]},"uuid of the token":{"type":"string"}},"description":"Response model for OAuth2 token"},"OAuth2AccessToken":{"type":"object","properties":{"value":{"type":"string"},"expiresIn":{"type":"integer","format":"int32"},"refreshToken":{"$ref":"#/components/schemas/OAuth2RefreshToken"},"tokenType":{"type":"string"},"additionalInformation":{"type":"object","additionalProperties":{"type":"object"}},"expired":{"type":"boolean"},"scope":{"uniqueItems":true,"type":"array","items":{"type":"string"}},"expiration":{"type":"string","format":"date-time"}}},"OAuth2RefreshToken":{"type":"object","properties":{"value":{"type":"string"}}}}}}