Security profiles api

Hi!
I was wondering, is there an API to create and edit my app’s security profiles? Or the only way is on the dashboard?
Also, i would like to know if there is an API to create my app’s API tokens.

Thanks!