---
title: "Lock a dedicated line for porting"
method: POST
path: "/lines/{e164}/lock"
---

# Lock a dedicated line for porting

`POST /lines/{e164}/lock`

## Request

- Base URL: `https://osis.co/api/v1/comms`
- URL: `https://osis.co/api/v1/comms/lines/{e164}/lock`
- Auth: HTTP bearer

Prepare a dedicated line for a number transfer. This does not submit a carrier request or change service. Cancel the preparation with DELETE on this path before submitting the port. Shared lines cannot be prepared. Requires porting access and comms_lines_write. Limit: 5 requests every 15 minutes per line.

## Path parameters

- `e164` string, required

## Response `201`

Line locked

- LinePortResponse
  - `port` LinePort, required: The port's status, times, and errors. The account details you sent are never returned.
    - `id` string, required
    - `org_id` string, required
    - `locked_e164` string, required: The dedicated line locked for this port.
    - `target_e164` string, nullable: The number you're bringing to Comms. Set once you submit the port.
    - `status` 'number_locked' | 'port_submitted' | 'port_in_progress' | 'port_completed' | 'port_failed', required: Where the port is right now.
    - `error_code` string, nullable
    - `error_message` string, nullable
    - `submitted_at` string, date-time, nullable
    - `foc_at` string, date-time, nullable
    - `completed_at` string, date-time, nullable
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required

## Other responses

- `400`: The line is shared, not dedicated, or the number isn't valid E.164
- `401`: API key is missing or wrong
- `403`: You don't have porting access yet, or your key is missing the scope
- `404`: Not found
- `409`: The conversation isn't available, or the request conflicts with an earlier one
- `429`: Too many requests. Slow down and retry.

---

[API](https://skmtc.dev/osis/apis/comms-api.md) · [All operations](https://skmtc.dev/osis/apis/comms-api/llms.txt) · [OpenAPI document](https://skmtc.dev/osis/apis/comms-api/revisions/59a4c0ba8936?raw)
