MediaWiki

Apihelp-query+allmessages-param-nocontent

From Gender and Tech Resources

If set, do not include the content of the messages in the output.