How long is the ticketID valid for?

How long is the ticketID valid for?

How long is the ticketID valid for that is used for API queries?