github.com/twilio/twilio-go@v1.20.1/rest/numbers/v1/docs/PortingPortabilityApi.md (about) 1 # PortingPortabilityApi 2 3 All URIs are relative to *https://numbers.twilio.com* 4 5 Method | HTTP request | Description 6 ------------- | ------------- | ------------- 7 [**CreatePortingBulkPortability**](PortingPortabilityApi.md#CreatePortingBulkPortability) | **Post** /v1/Porting/Portability | 8 [**FetchPortingBulkPortability**](PortingPortabilityApi.md#FetchPortingBulkPortability) | **Get** /v1/Porting/Portability/{Sid} | 9 10 11 12 ## CreatePortingBulkPortability 13 14 > NumbersV1PortingBulkPortability CreatePortingBulkPortability(ctx, optional) 15 16 17 18 Allows to check if a list of phone numbers can be ported to Twilio or not. This is done asynchronous for each phone number. 19 20 ### Path Parameters 21 22 This endpoint does not need any path parameter. 23 24 ### Other Parameters 25 26 Other parameters are passed through a pointer to a CreatePortingBulkPortabilityParams struct 27 28 29 Name | Type | Description 30 ------------- | ------------- | ------------- 31 **PhoneNumbers** | **[]string** | The phone numbers which portability is to be checked. This should be a list of strings. Phone numbers are in E.164 format (e.g. +16175551212). . 32 33 ### Return type 34 35 [**NumbersV1PortingBulkPortability**](NumbersV1PortingBulkPortability.md) 36 37 ### Authorization 38 39 [accountSid_authToken](../README.md#accountSid_authToken) 40 41 ### HTTP request headers 42 43 - **Content-Type**: application/x-www-form-urlencoded 44 - **Accept**: application/json 45 46 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) 47 [[Back to Model list]](../README.md#documentation-for-models) 48 [[Back to README]](../README.md) 49 50 51 ## FetchPortingBulkPortability 52 53 > NumbersV1PortingBulkPortability FetchPortingBulkPortability(ctx, Sid) 54 55 56 57 Fetch a previous portability check. This should return the current status of the validation and the result for all the numbers provided, given that they have been validated (as this process is performed asynchronously). 58 59 ### Path Parameters 60 61 62 Name | Type | Description 63 ------------- | ------------- | ------------- 64 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 65 **Sid** | **string** | A 34 character string that uniquely identifies the Portability check. 66 67 ### Other Parameters 68 69 Other parameters are passed through a pointer to a FetchPortingBulkPortabilityParams struct 70 71 72 Name | Type | Description 73 ------------- | ------------- | ------------- 74 75 ### Return type 76 77 [**NumbersV1PortingBulkPortability**](NumbersV1PortingBulkPortability.md) 78 79 ### Authorization 80 81 [accountSid_authToken](../README.md#accountSid_authToken) 82 83 ### HTTP request headers 84 85 - **Content-Type**: Not defined 86 - **Accept**: application/json 87 88 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) 89 [[Back to Model list]](../README.md#documentation-for-models) 90 [[Back to README]](../README.md) 91