Store data from POST API REST in CallBack


I would like to open Dash app in a tab from an external website and passing data by a HTTP POST request.
How can i store this data as Input in a CallBack ?

Thanks for your help

from dash import Dash
import dash_core_components as dcc 
import dash_html_components as html
import as px
from dash.dependencies import Input, Output
from flask import redirect, request

df =
fig = px.scatter(df, x="sepal_width", y="sepal_length", color="species",
                 size='petal_length', hover_data=['petal_width'])

#dummy app 1
app1 = Dash(__name__)

app1.layout = html.Div([
	html.H1('App 1'),

@app1.server.route('/', methods=['POST'])
def extract_body():

	return redirect('/')

if __name__ == '__main__':
 	app1.run_server(host= '',port='8020', debug=False)