[api] fix typo - my fingers are sticky from sweat
[api] add an index for messages

We very often dig out the last 5, which asks for an index