Beginning of ticket API.