Post request to webhooks/rest/webhook endpoint returns empty list

Hello, I am trying to communicate with my open source Rasa chatbot via rest api calls. The documentation that I am following can be seen at this link:

Whenever I run the following code, I simply get “[ ]” in response and not the expected reply. Below are the relevant Rasa files. I have been trying to debug this issue for days. Please help.

Command used to initialize api:

rasa run --enable-api

python script to make call:

import requests

url = 'http://localhost:5005/webhooks/rest/webhook'
myobj = {"sender": "test_user", "message": "hello"}

r = requests.post(url, json = myobj)

print(r.text)

credentials.yml:

# This file contains the credentials for the voice & chat platforms
# which your bot is using.
# https://rasa.com/docs/rasa/messaging-and-voice-channels

rest:
#  # you don't need to provide anything here - this channel doesn't
#  # require any credentials

# This entry is needed if you are using Rasa X. The entry represents credentials
# for the Rasa X "channel", i.e. Talk to your bot and Share with guest testers.
rasa:
  url: "http://localhost:5002/api"

config.yml:

recipe: default.v1
language: en

pipeline:
# # No configuration for the NLU pipeline was provided. The following default pipeline was used to train your model.
# # If you'd like to customize it, uncomment and adjust the pipeline.
# # See https://rasa.com/docs/rasa/tuning-your-model for more information.
#   - name: WhitespaceTokenizer
#   - name: RegexFeaturizer
#   - name: LexicalSyntacticFeaturizer
#   - name: CountVectorsFeaturizer
#   - name: CountVectorsFeaturizer
#     analyzer: char_wb
#     min_ngram: 1
#     max_ngram: 4
#   - name: DIETClassifier
#     epochs: 100
#     constrain_similarities: true
#   - name: EntitySynonymMapper
#   - name: ResponseSelector
#     epochs: 100
#     constrain_similarities: true
#   - name: FallbackClassifier
#     threshold: 0.3
#     ambiguity_threshold: 0.1

policies:
    - name: RulePolicy
    - name: MemoizationPolicy
    - name: TEDPolicy
      max_history: 5
      epochs: 10