Port In Events API
Porting in phone numbers is a multi-step, asynchronous process. Numerous events (comments, splits, status changes) can occur as the order is processed. Each of these events has an associated notification. Users can subscribe to these notifications to stay up to date on their orders. For more information, please visit our Port-in order notifications developer guide. Now, you can use the Port In Events API for further control and clarity over your porting orders. Specifically, you can:- View all events for your porting orders
- Republish notifications for specific events
List port in events
You can perform aGET v2/porting/events API request to view a list of port in events. A sample request is shown below:
Request Samples
Don’t forget to update
YOUR_API_KEY here.Response Samples
id= the id of the port in event.payload_status= indicates whether the webhook payload for the event has been generated. Whencreated, the payload in the API response will be null. Whencompleted, the payload in the API response will be fulfilled.payload= provides additional details for the event. If theevent_typesupports webhooks, thenpayloadis the webhookpayload. If theevent_typeonly supports email, thenpayloadwill be null.available_notification_methods= this lists all possible notification methods for that particularevent_type. In the example above, it is communicating that you could subscribe to webhook or email notifications for theporting_order.status_changedevent_type. It does not indicate if you are currently subscribed to those notifications, and it does not indicate if those notifications were successfully emitted.
Republish a port in event
If you would like to republish a particular port in event, perform aPOST v2/porting/events/{{id}}/republish API request. The {{id}} in the URL path should be the id of the port in event you would like to be republished. A sample request is shown below:
GET v2/porting/events API response.
Note: if you are looking for the similar “Port Out Events API”, you can find that guide here.