# Error 415 OAuth2

**URL:** <https://community.postman.com/t/error-415-oauth2/59608>\
**Category:** Help Hub\
**Tags:** authentication\
**Created:** [April 5, 2024, 5:18am UTC](https://community.postman.com/t/error-415-oauth2/59608 "2024-04-05T05:18:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![viktorwilson01](https://avatars.discourse-cdn.com/v4/letter/v/278dde/32.png) [@viktorwilson01](https://community.postman.com/u/viktorwilson01)\
**Post date:** [April 5, 2024, 5:18am UTC](https://community.postman.com/t/error-415-oauth2/59608/1 "2024-04-05T05:18:05Z")

</div>

Hello!

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.

```auto
{"type":"https://tools.ietf.org/html/rfc7231#section-6.5.13","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?

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [April 5, 2024, 4:49pm UTC](https://community.postman.com/t/error-415-oauth2/59608/2 "2024-04-05T16:49:49Z")

</div>

Hey @viktorwilson01 👋

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. 😓

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [May 5, 2024, 4:50pm UTC](https://community.postman.com/t/error-415-oauth2/59608/3 "2024-05-05T16:50:01Z")

</div>

Closed on May 5, 2024, 4:50pm UTC

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