How to get attachment url from the remote host?

Is there a special rest api for that?

not sure exactly what you mean by an attachment in the couchbase server context. Were you asking the question for mobile (couchbase lite)?