What should I set as a callback URL for OAuth?

And after getting the callback URL, how am I supposed to use that to get the code? Since it is required when using the “authorizaion_code” grant type