Error 415 OAuth2


The REST API i want to use have the OAuth2 authentication.
I have the username, password and URL.
When i try to use it in a collection, i get the error 415.

{"type":"","title":"Unsupported Media Type","status":415,"traceId":"00-874466cf41c1b02bbd0c8aca58762c81-dd8c76ba6769296e-00"}

In the request header, Postman uses Content-Type: application/x-www-form-urlencoded

In the respons header, my API uses Content-Type: application/json; charset=utf-8

How do i solve this?

Hey @viktorwilson01 :wave:

Welcome to the Postman Community! :postman:

What API are you using? Does it have any public documentation? If yes, can you share the link.

Without knowing what the API is and how it expects the requests to be structured, it a bit of a guessing game. :sweat:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.