Store data from POST API REST in CallBack

Hello,

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 plotly.express as px
from dash.dependencies import Input, Output
from flask import redirect, request

df = px.data.iris()
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'),
	dcc.Graph(id='id',
		  figure=fig),
	],
	)


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

	return redirect('/')

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