Skip to content

Mobile port lifecycle

First select a plan and one of its tarifications from GET /plans.

POST/ports/orderCreate one mobile proxy port
Terminal window
curl -X POST "https://api.ltesocks.io/v2/ports/order" \
-H "Authorization: Bearer ${LTESOCKS_API_TOKEN}" \
-H "Content-Type: application/json" \
-d '{
"plan": "5349b4ddd2781d08c09890f3",
"tarification": {
"time": 2592000,
"traffic": 51200,
"price": 14500
}
}'

The response is the created Port. Persist its account-scoped identifier. Do not blindly retry an order after a timeout; list ports first to determine whether it was created.

GET /ports returns the first page. Use POST /ports for filters and pagination:

{
"plan": "O2",
"countryCode": "GB",
"tags": ["production"],
"page": 1,
"pageSize": 100
}
  • GET /ports/{id} returns one port.
  • POST /ports/{id}/extend extends the current plan.
  • POST /ports/{id}/plan changes the plan using a plan identifier and tarification.

Read the returned port after each mutation and update your stored expiration, traffic, and status values.

POST /ports/{id}/reset requests immediate connection reset and IP rotation. Expect a brief connectivity interruption and poll the port status with bounded frequency.

DELETE /ports/{id} permanently removes the port. POST /ports/{id}/delete exists as a compatibility endpoint. Prefer DELETE for new integrations.