# Getting error: "message": "Unknown path components: /messages\\n"

**URL:** <https://community.postman.com/t/getting-error-message-unknown-path-components-messages-n/69015>\
**Category:** Help Hub\
**Tags:** authentication, json\
**Created:** [September 28, 2024, 1:00pm UTC](https://community.postman.com/t/getting-error-message-unknown-path-components-messages-n/69015 "2024-09-28T13:00:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![technical-candidate](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@technical-candidate](https://community.postman.com/u/technical-candidate)\
**Post date:** [September 28, 2024, 1:00pm UTC](https://community.postman.com/t/getting-error-message-unknown-path-components-messages-n/69015/1 "2024-09-28T13:00:08Z")

</div>

Why am I receiving that error message when testing de endpoint ?[https://graph.facebook.com/v19.0/291405280726967/messages](https://graph.facebook.com/v19.0/291405280726967/messages)

Error message:

```auto
{
    "error": {
        "message": "Unknown path components: /messages\n",
        "type": "OAuthException",
        "code": 2500,
        "fbtrace_id": "A-mrS0cewfwKUhBdbDoCEf8"
    }

```

Can someone help me ?

---

<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:** [September 28, 2024, 7:22pm UTC](https://community.postman.com/t/getting-error-message-unknown-path-components-messages-n/69015/2 "2024-09-28T19:22:49Z")

</div>

Hey @technical-candidate 👋🏻

Welcome to the Postman Community :postman:

Could you provide more details and context for your issue please? This is using a 3rd party API so it’s best to include the link to the documentation at the very least.

---

<div class="post-metadata">

**Author:** ![technical-candidate](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@technical-candidate](https://community.postman.com/u/technical-candidate)\
**Post date:** [September 29, 2024, 10:01am UTC](https://community.postman.com/t/getting-error-message-unknown-path-components-messages-n/69015/3 "2024-09-29T10:01:02Z")

</div>

Hi Danny,  
I am trying to use that code below:

```auto
{
  "messaging_product": "whatsapp",
  "to": "5527997744422",
  "type": "template",
  "template": {
    "name": "motorista_sem_mapa",
    "language": {
      "code": "pt_BR"
    },
    "components": [
      {
        "type": "button",
        "sub_type": "quick_reply",
        "index": "0"
      }
    ]
  }
}

```

This is the link to the documentation: [Overview - Graph API - Documentation - Meta for Developers](https://developers.facebook.com/docs/graph-api/overview/)

---

<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:** [September 29, 2024, 10:20am UTC](https://community.postman.com/t/getting-error-message-unknown-path-components-messages-n/69015/4 "2024-09-29T10:20:16Z")

</div>

Are you using the correct endpoint?

This was showing in the original error from the server

> Unknown path components: /messages

Which route and payload from the documentation are you using?

---

<div class="post-metadata">

**Author:** ![technical-candidate](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@technical-candidate](https://community.postman.com/u/technical-candidate)\
**Post date:** [September 29, 2024, 11:22am UTC](https://community.postman.com/t/getting-error-message-unknown-path-components-messages-n/69015/5 "2024-09-29T11:22:02Z")

</div>

There is nothing wrong with the endpoit, as you can check here:

**[https://graph.facebook.com/v19.0/291405280726967/messages](https://graph.facebook.com/v19.0/291405280726967/messages)**

I have checked the phone ID [291405280726967] and it’s ok too.

---

<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:** [September 29, 2024, 11:37am UTC](https://community.postman.com/t/getting-error-message-unknown-path-components-messages-n/69015/6 "2024-09-29T11:37:26Z")

</div>

This might need you to contact thier support team for more information, Postman is working as expected and the server is returning that response.

It could be a limitation for your token as it also mentions OAuth in the error - I don’t know that API and if specific permissions are given/not given for certain users.

---

<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:** [October 29, 2024, 11:37am UTC](https://community.postman.com/t/getting-error-message-unknown-path-components-messages-n/69015/7 "2024-10-29T11:37:56Z")

</div>

Closed on October 29, 2024, 11:37am UTC

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