How to activate device with rest api

i want to activate device with rest api with using OTAA

how can i do ?

i wanna put key here