I'm attempting to set up OAuth in the Stack Overflow API. I've created a Stack App and obtained the Client ID and Client Secret. However, I'm encountering difficulties in the process and require guidance on the parameters necessary for code generation in the Stack Overflow API.

Currently, I'm providing the following parameters:

```none
client_id: *****
scope: no_expiry
client_secret: ***********
redirect_uri: https://*********.com
response_type: code
```

I'm using the API endpoint https://api.stackexchange.com/2.3/oauth/code? for code generation, but it doesn't seem to be generating the code as expected.

I'm seeking assistance in understanding the correct parameters and API endpoints required for code generation and obtaining an access token for OAuth implementation.