Skip to content

Porting API (1.0)

Automated processing of port-in phone number operations

Download OpenAPI description
Overview
License

MIT

Languages
Servers
v1.0 of the porting API

https://porting.api.sinch.com/v1/projects/{projectId}/

Port-in numbers

You can create orders, check portability, and more. When you port in phone numbers to Sinch you need to make sure the numbers are portable, you can use the portability check to make sure the numbers are portable before creating an order. If a number is not portable the whole order will fail. When porting a number to Sinch you can either use the dashboard or the API, the API is recommended for larger orders and for automation.

Note: For port orders of over 500 numbers, please contact the support team.

The recommended way to port numbers to Sinch is to schedule the port, this means that you create an order and specify a desired port date and time, If you have more advanced needs like on-demand activation, you can read more about that in the advanced porting section.

Operations
Webhooks

Port-in settings

Porting default settings

Operations

Request

Create default Configuration for a given project

Security
basicAuth or bearerAuth
Bodyapplication/jsonrequired

Create Communication Configuration for a given project

contactobject

Contains the contact information for the default user.

webhookUrlstring

The default webhook URL to use for callbacks.

Example: "my.callback.server"
defaultPortTimestring

The default time for porting in numbers. If you don't specify a time in the order this time will be used.

Example: "09:00:00"
defaultPortTimeZonestring

The default time zone for porting in numbers. If you don't specify a time zone in the order, this time zone will be used.

Enum ValueDescription
US/Eastern

US Eastern Timezone

US/Central

US Central Timezone

US/Mountain

US Mountain Timezone

US/Pacific

US Pacific Timezone

curl -i -X POST \
  -u <username>:<password> \
  https://porting.api.sinch.com/v1/projects/YOUR_project_id/configuration \
  -H 'Content-Type: application/json' \
  -d '{
    "contact": {
      "email": "name@email.com",
      "name": "John Smith",
      "phone": "+15559999"
    },
    "webhookUrl": "my.callback.server",
    "defaultPortTime": "09:00:00",
    "defaultPortTimeZone": "US/Eastern"
  }'

Responses

Successful operation

Bodyapplication/json
contactobject

Contains the contact information for the default user.

webhookUrlstring

The default webhook URL to use for callbacks.

Example: "my.callback.server"
defaultPortTimestring

The default time for porting in numbers. If you don't specify a time in the order this time will be used.

Example: "09:00:00"
defaultPortTimeZonestring

The default time zone for porting in numbers. If you don't specify a time zone in the order, this time zone will be used.

Enum ValueDescription
US/Eastern

US Eastern Timezone

US/Central

US Central Timezone

US/Mountain

US Mountain Timezone

US/Pacific

US Pacific Timezone

Response
application/json
{ "contact": { "email": "name@email.com", "name": "John Smith", "phone": "+15559999" }, "webhookUrl": "my.callback.server", "defaultPortTime": "09:00:00", "defaultPortTimeZone": "US/Eastern" }

Request

Retrieve Notification Configuration for a given project

Security
basicAuth or bearerAuth
curl -i -X GET \
  -u <username>:<password> \
  https://porting.api.sinch.com/v1/projects/YOUR_project_id/configuration

Responses

Successful operation

Bodyapplication/json
contactobject

Contains the contact information for the default user.

webhookUrlstring

The default webhook URL to use for callbacks.

Example: "my.callback.server"
defaultPortTimestring

The default time for porting in numbers. If you don't specify a time in the order this time will be used.

Example: "09:00:00"
defaultPortTimeZonestring

The default time zone for porting in numbers. If you don't specify a time zone in the order, this time zone will be used.

Enum ValueDescription
US/Eastern

US Eastern Timezone

US/Central

US Central Timezone

US/Mountain

US Mountain Timezone

US/Pacific

US Pacific Timezone

Response
application/json
{ "contact": { "email": "name@email.com", "name": "John Smith", "phone": "+15559999" }, "webhookUrl": "my.callback.server", "defaultPortTime": "09:00:00", "defaultPortTimeZone": "US/Eastern" }

Request

Update default configurations for a given project

Security
basicAuth or bearerAuth
Bodyapplication/jsonrequired

Update default configurations for a given project

contactobject

Contains the contact information for the default user.

webhookUrlstring

The default webhook URL to use for callbacks.

Example: "my.callback.server"
defaultPortTimestring

The default time for porting in numbers. If you don't specify a time in the order this time will be used.

Example: "09:00:00"
defaultPortTimeZonestring

The default time zone for porting in numbers. If you don't specify a time zone in the order, this time zone will be used.

Enum ValueDescription
US/Eastern

US Eastern Timezone

US/Central

US Central Timezone

US/Mountain

US Mountain Timezone

US/Pacific

US Pacific Timezone

curl -i -X PUT \
  -u <username>:<password> \
  https://porting.api.sinch.com/v1/projects/YOUR_project_id/configuration \
  -H 'Content-Type: application/json' \
  -d '{
    "contact": {
      "email": "name@email.com",
      "name": "John Smith",
      "phone": "+15559999"
    },
    "webhookUrl": "my.callback.server",
    "defaultPortTime": "09:00:00",
    "defaultPortTimeZone": "US/Eastern"
  }'

Responses

Successful operation

Bodyapplication/json
contactobject

Contains the contact information for the default user.

webhookUrlstring

The default webhook URL to use for callbacks.

Example: "my.callback.server"
defaultPortTimestring

The default time for porting in numbers. If you don't specify a time in the order this time will be used.

Example: "09:00:00"
defaultPortTimeZonestring

The default time zone for porting in numbers. If you don't specify a time zone in the order, this time zone will be used.

Enum ValueDescription
US/Eastern

US Eastern Timezone

US/Central

US Central Timezone

US/Mountain

US Mountain Timezone

US/Pacific

US Pacific Timezone

Response
application/json
{ "contact": { "email": "name@email.com", "name": "John Smith", "phone": "+15559999" }, "webhookUrl": "my.callback.server", "defaultPortTime": "09:00:00", "defaultPortTimeZone": "US/Eastern" }

Advanced porting

This section is for advanced porting operations, like on demand activating numbers, getting available numbers for activation, and more. If you are looking for basic porting operations like creating an order, checking portability, and more, please refer to the Port-in numbers section.

Operations