Skip to content
Get Started

Line Provisioning

Request new phone lines for your Sendblue account

Request new phone lines for your Sendblue account. Line requests are processed by our team and fulfilled based on availability.


Submit a request for a new phone number.

POST /account/lines/add-line
ParameterTypeRequiredDescription
line_request_typestringYesType of line: phone
desired_area_codestringNo3-digit area code or 5-digit zip code
Terminal window
curl -X POST "https://api.sendblue.co/account/lines/add-line" \
-H "sb-api-key-id: YOUR_API_KEY" \
-H "sb-api-secret-key: YOUR_API_SECRET" \
-H "Content-Type: application/json" \
-d '{
"line_request_type": "phone",
"desired_area_code": "415"
}'
{
"status": "OK",
"data": {
"id": 12345,
"type": "PHONE",
"status": "OPEN",
"desiredAreaCode": "415",
"createdAt": "2025-01-30T10:00:00.000Z"
}
}
FieldTypeDescription
idnumberUnique ticket ID for tracking
typestringPHONE
statusstringRequest status: OPEN, FULFILLED, CANCELLED
desiredAreaCodestring | nullRequested area code
createdAtstringISO 8601 timestamp

Get the status of a line request ticket.

GET /account/lines/line-request/:lineRequestTicketId
ParameterTypeDescription
lineRequestTicketIdnumberThe ticket ID from the add-line response
Terminal window
curl -X GET "https://api.sendblue.co/account/lines/line-request/12345" \
-H "sb-api-key-id: YOUR_API_KEY" \
-H "sb-api-secret-key: YOUR_API_SECRET"
{
"status": "OK",
"data": {
"id": 12345,
"type": "PHONE",
"status": "FULFILLED",
"desiredAreaCode": "415",
"fulfilledNumber": "+14155551234",
"createdAt": "2025-01-30T10:00:00.000Z",
"fulfilledAt": "2025-01-30T12:00:00.000Z"
}
}

HTTP StatusDescription
400Missing or invalid parameters
401Invalid API credentials
403Ticket belongs to another account
404Line request ticket not found
{
"status": "ERROR",
"message": "Description of what went wrong"
}

  • Line requests are reviewed and fulfilled by our team
  • Area code availability varies by region
  • Contact [email protected] for expedited provisioning or specific requirements