cURL
curl --request GET \ --url https://api.messages.dev/v1/lines \ --header 'Authorization: Bearer <token>'
{ "data": [ { "id": "<string>", "handle": "<string>", "label": "<string>", "service": "imessage", "is_active": true } ], "has_more": true, "next_cursor": "<string>", "request_id": "<string>" }
Returns your iMessage lines (phone numbers and Apple IDs). If the API key is restricted to specific lines, only those are returned.
Use an API key as a bearer token: Authorization: Bearer sk_live_...
Authorization: Bearer sk_live_...
List of lines
Show child attributes
Whether more items exist beyond this page
Cursor to pass as cursor query parameter for the next page
cursor