added content length to agents and activities endpoints