[api] - Add foreignId d and application when creating an identity