Request lines
Ask the Project Blue team for new lines in an area code. The request is queued for confirmation and does not return a line. When the request is saved, the 202 includes lineRequestId and lineRequestStatus. Once the lines are live they show up in /get-lines.
POST/request-lineBearer token
Request body
requestedAreaCodestringRequiredThree-digit US or Canada area code for the new lines, e.g. "512". A number is also accepted.
quantityinteger (1–50)RequiredHow many lines to request in that area code.
notesstringOptional note for the Project Blue team, up to 1000 characters. Blank or omitted is stored as no note. Non-text values return 400.
Response
status"requested"RequiredPresent on every accepted request.
requestedAreaCodestringRequiredThe area code that was requested, as a three-digit string.
quantityintegerRequiredHow many lines were requested.
lineRequestIdstringId of the saved line request. Present when the request was written to the queue. Omitted if the save failed; the request still reaches the team. Repeating the same area code and quantity within two minutes returns this same id.
lineRequestStatusstringStatus of the saved request. Currently awaiting_confirmation until the team confirms it. Omitted when lineRequestId is omitted.
Status codes
- 202
- Request sent to the Project Blue team
- 400
- requestedAreaCode is not a 3-digit area code, quantity is not an integer from 1 to 50, or notes is not text or exceeds 1000 characters
- 401
- Missing or invalid API key
- 429
- Rate limit exceeded
- 500
- Internal server error