slackhq / slack-api-docs

API Docs for Slack.com
https://api.slack.com/
426 stars 85 forks source link

reminders.add endpoind returns empty `reminder` list #92

Closed wolendranh closed 5 years ago

wolendranh commented 5 years ago

After success call to Web API https://api.slack.com/methods/reminders.add end point instead of expected by docs response:

{
    "ok": true,
    "reminder": {
        "id": "Rm12345678",
        "creator": "U18888888",
        "user": "U18888888",
        "text": "eat a banana",
        "recurring": false,
        "time": 1602288000,
        "complete_ts": 0
    }
}

I got only

{"ok":true,"reminder":[]}

Call example:

curl -X POST -H 'Authorization: Bearer xxxx' \
-H 'Content-type: application/json; charset=utf-8' \
--data '{"channel":"CE1234","text":"test", "time": 1543491969}' \
https://slack.com/api/reminders.add

Are docs outdated?

wolendranh commented 5 years ago

Find issue: you should add scope permission - reminders:read to get reminder in response.