Skip to main content

Peliqan

Intercom V2

Open tickets by state

SQL query for Intercom V2

Get the count of open tickets for each ticket state.

SELECT ticket_states.name, COUNT(tickets.id) AS open_ticket_count FROM ticket_states LEFT JOIN tickets ON ticket_states.id = tickets.state_id WHERE tickets.state = ‘open’ GROUP BY ticket_states.name

Intercom V2 data model

Intercom V2
Admins

Intercom V2
Companies

Intercom V2
Contacts

Intercom V2
Conversations

Intercom V2
Conversation Parts

Intercom V2
Subscription Types

Intercom V2
Tags

Intercom V2
Teams

Intercom V2
Ticket Types

Intercom V2
Ticket States

Intercom V2
Tickets

Ready to get instant access to all your company data ?​

Connect 300+ sources, serve any BI tool, and give every AI agent one governed endpoint to read, and write back where the app supports it.