variable use from appstate to api call url and body

Database & APIs

hey i am having problem setting up variable from appstate variable into api call url on the get method i have already setup post api so i want to use prediction id from that api output also when i for each call it needs authorization so i did by adding token to to header but can't seem to figure out how to use the prediction id from app state variable as it needs to be dynamic help me out on this topic.

What have you tried so far?

i have tried using ${FFAppState().predictionId}, {{appstate.predictionid}}, {predictionid}, [predictionid], [appstate.predictionid]

Did you check FlutterFlow's Documentation for this topic?
No
1