REST API tokens

Well, I am not sure what I am doing wrong because I keep getting HTTP 401 / “Authentication failure. Wrong credentials” with a simple curl command. Maybe, you can answer this for me, what is the “credentials of the user” from the createapi option? I am using the Auth-Token as presented.

curl -iL
-H ‘Accept: application/json’
-H ‘Content-type: application/json’
-d ‘{“username”:“apiadmin”,“password”:"b’eyJ0eXAi…kHqA’",“realm”:“administrators”}’
-X POST https://pi.foo.edu/auth

Thanks,
-Jeff