curl -X POST "https://api.usegately.com/api/v1/auth/signup" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"password": "securepassword123",
"metadata": {
"name": "Jane Smith"
}
}'
{
"user": {
"id": "usr_xyz789",
"email": "[email protected]",
"user_metadata": {
"role": "member",
"project_id": "your-project-id",
"metadata": {
"name": "Jane Smith"
}
}
},
"session": {
"access_token": "eyJhbGciOiJIUzI1NiIs...",
"user": {
"id": "usr_xyz789",
"email": "[email protected]"
}
}
}
Create a new user account
curl -X POST "https://api.usegately.com/api/v1/auth/signup" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"password": "securepassword123",
"metadata": {
"name": "Jane Smith"
}
}'
{
"user": {
"id": "usr_xyz789",
"email": "[email protected]",
"user_metadata": {
"role": "member",
"project_id": "your-project-id",
"metadata": {
"name": "Jane Smith"
}
}
},
"session": {
"access_token": "eyJhbGciOiJIUzI1NiIs...",
"user": {
"id": "usr_xyz789",
"email": "[email protected]"
}
}
}
curl -X POST "https://api.usegately.com/api/v1/auth/signup" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"password": "securepassword123",
"metadata": {
"name": "Jane Smith"
}
}'
{
"user": {
"id": "usr_xyz789",
"email": "[email protected]",
"user_metadata": {
"role": "member",
"project_id": "your-project-id",
"metadata": {
"name": "Jane Smith"
}
}
},
"session": {
"access_token": "eyJhbGciOiJIUzI1NiIs...",
"user": {
"id": "usr_xyz789",
"email": "[email protected]"
}
}
}
Was this page helpful?