api file formatting