Order a port
Section titled “Order a port”First select a plan and one of its tarifications from GET /plans.
POST
/ports/orderCreate one mobile proxy portcurl -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.
List and filter
Section titled “List and filter”GET /ports returns the first page. Use POST /ports for filters and pagination:
{ "plan": "O2", "countryCode": "GB", "tags": ["production"], "page": 1, "pageSize": 100}Inspect and change the plan
Section titled “Inspect and change the plan”GET /ports/{id}returns one port.POST /ports/{id}/extendextends the current plan.POST /ports/{id}/planchanges the plan using aplanidentifier andtarification.
Read the returned port after each mutation and update your stored expiration, traffic, and status values.
Reset and delete
Section titled “Reset and delete”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.