documented attachment api