curl -X POST "https://api.usegately.com/api/v1/auth/login" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"password": "securepassword123"
}'
{
"user": {
"id": "usr_abc123",
"email": "[email protected]",
"user_metadata": {
"role": "member",
"project_id": "your-project-id"
}
},
"session": {
"access_token": "eyJhbGciOiJIUzI1NiIs...",
"user": {
"id": "usr_abc123",
"email": "[email protected]"
}
}
}
Authenticate a user with email and password
curl -X POST "https://api.usegately.com/api/v1/auth/login" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"password": "securepassword123"
}'
{
"user": {
"id": "usr_abc123",
"email": "[email protected]",
"user_metadata": {
"role": "member",
"project_id": "your-project-id"
}
},
"session": {
"access_token": "eyJhbGciOiJIUzI1NiIs...",
"user": {
"id": "usr_abc123",
"email": "[email protected]"
}
}
}
curl -X POST "https://api.usegately.com/api/v1/auth/login" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"password": "securepassword123"
}'
{
"user": {
"id": "usr_abc123",
"email": "[email protected]",
"user_metadata": {
"role": "member",
"project_id": "your-project-id"
}
},
"session": {
"access_token": "eyJhbGciOiJIUzI1NiIs...",
"user": {
"id": "usr_abc123",
"email": "[email protected]"
}
}
}
Was this page helpful?