Getting invalid api when curling to create a dashb...
# support-questions-legacy
k
Getting invalid api when curling to create a dashboard user with supertokens server -> curl --location --request POST 'Server link' \ --header 'rid: dashboard' \ --header 'api-key: ' \ --header 'Content-Type: application/json' \ --data-raw '{"email": "","password": ""}'
j
Is your url indeed to https://something.aws.supertokens.io:3569/recipe/dashboard/user (assuming you're using managed) ? Did you do Dashboard.init() in your SuperTokens init on your backend or whatever is equivalent?
k
I did dashboard.init in backend nodejs
the url is copied from api domain/auth/dashboard
I wrapped the api, email, password using <>
j
Note that for me I need to use a space between the key and the api-key:, so it's
--header 'api-key: mYsUpErSeCrEtKeY' \
Just a detail, no idea if that's your issue.
k
Yes, that was the issue Works sucessfully
thanks
I tried it with different ones expect for that lol.
3 Views