I’ve been using the documentation of Indeed at https://opensource.indeedeng.io/api-documentation/docs/campaigns/auth/ to create campaigns.
curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -H "Accept: application/json" "https://secure.indeed.com/oauth/tokens?code=MY_SECRET_CODE&client_id=MY_CLIENT_ID&client_secret=MY_CLIENT_SECRET&redirect_uri=MY_REDIRECT_URI&grant_type=authorization_code"
And it returns:
I tried to contact Indeed but nobody ansewered me.
One reason might be a misfit in the Redirect URL which is configured in your Indeed App vs. your Request for the Authorization Code.
In the App/API Keys you configured
In the OAuth request url you had a slight different redirect url:
Matching them exactly resolved the issue for me and it worked nicely.