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

**URL:** <https://forum.rasa.com/t/post-request-to-webhooks-rest-webhook-endpoint-returns-empty-list/54430>\
**Category:** Rasa Open Source\
**Created:** [July 21, 2022, 8:12pm UTC](https://forum.rasa.com/t/post-request-to-webhooks-rest-webhook-endpoint-returns-empty-list/54430 "2022-07-21T20:12:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![drewholowaty](https://avatars.discourse-cdn.com/v4/letter/d/c4cdca/32.png) [@drewholowaty](https://forum.rasa.com/u/drewholowaty)\
**Post date:** [July 21, 2022, 8:12pm UTC](https://forum.rasa.com/t/post-request-to-webhooks-rest-webhook-endpoint-returns-empty-list/54430/1 "2022-07-21T20:12:26Z")

</div>

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:

> **[Your Own Website](https://rasa.com/docs/rasa/connectors/your-own-website/)**
>
> Deploy and Run a Rasa Chat Bot on a Website

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:

```auto
rasa run --enable-api

```

python script to make call:

```auto
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:

```auto
# 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:

```auto
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

```
