Using Triggers: curl -X POST

Using cURL

I want to pass a variable using the curl command and be able to read from the gitlab pipeline:

curl -X POST
-F token=TOKEN

I can use -F to define a new parameter, however, I do not know if their is a way to be able to access it from the pipeline?