add permalinks creation api