Jump to content

/api/core/messages/ - Invalid Sender?


H5K
Go to solution Solved by Jim M,

Recommended Posts

 

The API documentation clearly states that "to" is an array. Sorry.

 

According to the documentation for this endpoint, "from" and "to" parameters are the member_id.

I can view the member IDs from the URL and know they are correct:
/admin/?app=core&module=members&controller=members&do=view&id=1196

Despite this, I am getting invalid_recipient. The API key I am using does have permissions, the member IDs exist, and I have also tried using display names and emails.

from:1196
to:1195
title:test
body:test test

{
    "errorCode""1C374/3",
    "errorMessage""INVALID_RECIPIENT"
}
 

Please close this I am an idiot and am not passing an array.

 

Link to comment
Share on other sites

Just now, Jim M said:

to is required to be an array, not integer so would need to change that in your setup.

{
  "from": 39,
  "to": [
    1196
  ],
  "title": "TestTitle",
  "body": "TestBody"
}

Now I am getting invalid sender 😕

{
    "errorCode": "1C374\/2",
    "errorMessage": "INVALID_SENDER"
}

Link to comment
Share on other sites

  • 1 month later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...