cURL Example
Example of a curl request and response for model inference
Contents
MAC OS/Linux
curl -X POST \
-H "Content-Type: application/json" \
-H "x-corsali-organization-id: Xxx..-...." \
-H "Authorization: Bearer eyJxxx.eyJxxx.1ANxxx" \
-d @example_json https://api.corsali.com/predict/Xxxx...-...Windows
curl -X POST ^
-H "Content-Type: application/json" ^
-H "x-corsali-organization-id: irjt4o3t-...." ^
-H "Authorization: Bearer eyJxxx.eyJxxx.1ANxxx" ^
-d @example_json https://api.corsali.com/predict/Xxxx...-...Explanation:
The type of request is denoted by "-X"
Here we can see the 3 headers denoted by "-H":
The input data is denoted with "-d":
The last part of the request is the URL:
cURL Response
Last updated
Was this helpful?