Error when creating a user via API [Sep 01]

:raising_hand_man: Manh-Trung BUI asked

Hello everyone,

I’m trying to create a user by API but i always get this message: Cannot GET /api/v1/auth/user/signin ?

Someone can help me §

:raising_hand_man: wkw replied

please share the project info and the request body

:raising_hand_man: Manh-Trung BUI replied

Node: v18.7.0

Arch: x64

Platform: linux

Docker: false

Database: mysql2

ProjectOnRootDB: false

RootDB: sqlite3

PackageVersion: 0.92.4

:raising_hand_man: Manh-Trung BUI replied

{

“email”: “dsi@example.com”,

“password”: “Information2022!”,

“roles”: {

“owner”: true

}

}

:raising_hand_man: Manh-Trung BUI replied

It’s correct ?

:raising_hand_man: wkw replied

api endpoint && header pls

:raising_hand_man: Manh-Trung BUI replied

image0

:raising_hand_man: Manh-Trung BUI replied

http://nocodb.vival.com/api/v1/auth/user/signin

:raising_hand_man: wkw replied

you want to create a user but using signin api?

:raising_hand_man: Manh-Trung BUI replied

yes

:raising_hand_man: Manh-Trung BUI replied

so i can make a script for a list of user

:raising_hand_man: wkw replied

signin is for authentication only.

:raising_hand_man: wkw replied

i think u want sign up

:raising_hand_man: Manh-Trung BUI replied

sorry it’s signup

:raising_hand_man: wkw replied

so you’re using the wrong API then

:raising_hand_man: Manh-Trung BUI replied

Cannot GET /api/v1/auth/user/signup

:raising_hand_man: wkw replied

that would be POST

:raising_hand_man: wkw replied

see here for reference

NocoDB API Documentation

:raising_hand_man: Manh-Trung BUI replied

thanks, i’ll try this

:raising_hand_man: Manh-Trung BUI replied

response = requests.request(“POST”, url, headers=headers, params=querystring, data=json.dumps(body))