Api definition