Unity Remote Config API Problem

Hi, I having problem with Unity’s remote config api. In their docs it says: “In the POST payload below, replace [username] and [password] with your Unity account login information”. However I can’t seem to figure it out. What username do they want? My email or display name.

I tried both options and nothing works. I am doing something wrong or is API not completed?

Can you specify which call you are trying to make, and the syntax that you are using? https://remote-config-api-docs.uca.cloud.unity3d.com/

Authentication call, getting 400 syntax error.

curl --header “Content-Type: application/json” --request POST --data ‘{“username”:“[username]”,“password”:“[password]”,“grant_type”:“PASSWORD”}’ https://api.unity.com/v1/core/api/login

Tried a different online curl website. One is giving me 401 error and says: “Invalid Credential” and the other is giving me 400 error.

I just tried it, and I believe I see the issue. The JSON should be formed like “username:email@domain.com” (there are no actual brackets). I’m on Windows, so I need to use the \ escape character, but my working request is:

curl --header “Content-Type: application/json” --request POST --data “{"username":"me@domain.com","password":"mypassword","grant_type":"PASSWORD"}” https://api.unity.com/v1/core/api/login

Now it worked, thank you =)

2 Likes