Action POST request

how do you call actions. I tried the following :

 curl -d "etype=sum" -X POST http://localhost:5055/webhook
 curl -d '{"etype":"sum"}' -X POST http://localhost:5055/webhook

but getting error, what do I do wrong :

/btw the documentation is unclear how do you do actions. Nowhere is mentioned that you have to start a server i.e. rasa run actions … and how you can test it/

 ERROR    rasa_sdk.endpoint  - Exception on /webhook [POST]
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/flask/", line 2446, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.6/dist-packages/flask/", line 1951, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python3.6/dist-packages/flask_cors/", line 161, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "/usr/local/lib/python3.6/dist-packages/flask/", line 1820, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python3.6/dist-packages/flask/", line 39, in reraise
    raise value
  File "/usr/local/lib/python3.6/dist-packages/flask/", line 1949, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.6/dist-packages/flask/", line 1935, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/local/lib/python3.6/dist-packages/flask_cors/", line 128, in wrapped_function
    resp = make_response(f(*args, **kwargs))
  File "/usr/local/lib/python3.6/dist-packages/rasa_sdk/", line 72, in webhook
AttributeError: 'NoneType' object has no attribute 'get'

hi - the docs for the action server endpoint are here Action Server

i see … it seems too complicated to be able to generate it on the fly … hmm.