A poison produced by a living organism, especially a bacterium. An endotoxin is released only when the bacterial cell dies or desintegrates. An exotoxin is secreted by a bacterial cell into the surrounding medium. In the body a toxin acts as an antigen, producing an immune response.