implement permanent link API (#77).