Skip to content

Instantly share code, notes, and snippets.

@guillaumejacquart
Created August 8, 2021 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guillaumejacquart/aaa89e1f96d76fb98c5460f54b0c8ced to your computer and use it in GitHub Desktop.
Save guillaumejacquart/aaa89e1f96d76fb98c5460f54b0c8ced to your computer and use it in GitHub Desktop.
Call Decision API with Curl
curl -X POST \
https://decision.flagship.io/v2/{{ENV_ID}}/campaigns \
-H 'Content-Type: application/json' \
-H 'x-api-key: {{API_KEY}}' \
-d '{
"visitor_id": "YOUR_VISITOR_ID",
"context": {
},
"trigger_hit": true,
"decision_group": null
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment