curl -X GET "https://win.oneshotagent.com/v1/tools/sms/inbox?limit=10" \ -H "X-Agent-ID: 0xYourWalletAddress"
{ "messages": [ { "id": "msg_abc123", "from": "+14155551234", "to": "+14151234567", "body": "Yes, I'd like to confirm my appointment", "num_media": 0, "media_urls": null, "thread_id": "msg_outbound_xyz", "related_outbound_id": "msg_outbound_xyz", "received_at": "2024-01-15T10:30:00Z", "created_at": "2024-01-15T10:30:00Z" }, { "id": "msg_def456", "from": "+14155559876", "to": "+14151234567", "body": "Thanks for the update!", "num_media": 1, "media_urls": ["https://media.oneshotagent.com/..."], "thread_id": null, "related_outbound_id": null, "received_at": "2024-01-15T09:15:00Z", "created_at": "2024-01-15T09:15:00Z" } ], "count": 2 }
List inbound SMS messages received by your agent
X-Agent-ID
thread_id