Did you see Is it possible to define an extra payload fields directly from TTN application different per device like an API Key?