GET
/api/v1/tickets/getRecentConversations
Fetch recent conversation IDs for the authenticated shop.
Authentication: API key required
Behavior
- The route looks at conversation.date and returns records created on or after now minus the requested number of days.
- days defaults to 7 when the query parameter is missing or cannot be parsed as an integer.
- Results are ordered by date descending before the IDs are extracted.
- Only conversation IDs are returned in the final conversationIds array, not the full conversation objects.
- BigInt IDs are serialized to strings in the JSON response.
Query parameters
- days (optional)
Number of days to look back. Defaults to 7.
Response
Response example
{
"success": true,
"shopDomain": "example.myshopify.com",
"days": 7,
"conversationIds": [
"987654321012345678",
"987654321012345677"
],
"totalCount": 2
}