...
Impact API
Added support for user status transition web hooks (example)
An organization is now able to subscribe to an Impact API endpoint to receive updates about user status transitions via a webhook
Sample subscription request:
Code Block curl --location 'https://impact-api.impact.staging.validic.com/api/v1/organizations/610bfc6c2d138c0001510145/programs/webhooks' \ --header 'Service-Name: postman' \ --header 'Content-Type: application/json' \ --header 'Authorization: Basic dXF5cmJ...NSdkRzNg==' \ --data '{ "uri": "http://localhost:8082/push", "auth": "HELLOAUTH!", "event_type": "status" }'
Sample successful subscription response:
Code Block { "org_id": "610bfc6c2d138c0001510145", "uri": "http://localhost:8082/push", "auth": "HELLOAUTH!", "event_type": "status", "event_scope": "organization", "response_headers": "" }
Sample Status update received from subscription
Code Block { id: '25933', validic_id: '62cc2cbd750e3a0001d6c6ab', validic_uid: 'ff6faff45fba6c78e74ef155602e3ed2', program_uid: '37ebe36c-dbce-11ea-98e8-dfa5e2088b5c', organization_uid: '161fe296-d841-11ea-806d-4b2818969001', inform_org_id: '610bfc6c2d138c0001510145', user_program_status: { status_id: 3, status: 'invited', sub_status: 'Email Sent', transitioned_at: '2023-12-13T16:56:14.406625Z' }
...