Get All Lines
Get All Lines
List all iMessage/SMS lines for the authenticated workspace. REST endpoint in the Tuco AI iMessage API — bearer-token auth, JSON request/response, full schema.
GET
Get All Lines
Returns every line for the workspace with usage (new conversations and total messages for today) and health status. Use the line
_id as fromLineId when sending messages, or omit it for round-robin.Endpoint
- Method:
GET - Path:
/api/lines/by-user - Auth:
Authorization: Bearer tuco_sk_xxxxxxxxxxxxx
Example request
Success response (200)
Error responses
| Status | When | Body |
|---|---|---|
400 | No active workspace | { "error": "No active workspace" } |
401 | Missing or invalid API key | { "error": "Unauthorized" } |
500 | Server error | { "error": "Internal server error" } |
Use the Try it panel to run this request interactively.