Create api

it sets security code