sessions in the API