COPENHAGEN — Describing his work as an undercover agent among a group of heavily armed Qaeda terrorists, Morten Storm said his job as a jihadist-turned-informant was dangerous and grueling.

Spy agencies never acknowledged his secret service. But now a Danish state agency, in a breakthrough ruling for Mr. Storm, has awarded him about $27,000 in damages for loss of work ability because of post-traumatic stress disorder, which he said in his claim was a result of his undercover role for the Danish and other intelligence agencies.

Labour Market Insurance, a state body, concluded that he had experienced “exceptionally dangerous events” during his tenure, the newspaper Jyllands-Posten reported on Monday. A future review will decide to what extent he may still be able to work, and could award additional compensation.

The payout is, in effect, the first formal recognition by the government of his undercover work; it has never been acknowledged by the Danish Security and Intelligence Service, PET, or by other Western intelligence agencies, which generally refuse to comment on secret sources.