Subscribe to a Hook Event
Subscribe to Events by creating a REST Hook Subscription
        POST
    /hooks/subscriptions
  
  curl \
 --request POST 'https://stg.getfoundation.com/api/external/v1/hooks/subscriptions' \
 --header "X-API-Key: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"subscription":{"event_type":"order_created","target_url":"https://app.getfoundation.com/api/external/v1/hooks/order_created","target":"Workato Workflow"}}'
    
        Request examples
  
  {
  "subscription": {
    "event_type": "order_created",
    "target_url": "https://app.getfoundation.com/api/external/v1/hooks/order_created",
    "target": "Workato Workflow"
  }
}
        Response examples (201)
  
  {
  "id": "9aa62446-c3b0-42f5-8027-3648daed9d73",
  "event_type": "order_created",
  "target_url": "https://app.getfoundation.com/api/external/v1/hooks/order_created",
  "target": "Workato Workflow"
}