snippet post api