Skip to main content
POST
https://api.usegately.com
/
api
/
v1
/
auth
/
signup
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]"
    }
  }
}

Request Body

email
string
required
The user’s email address
password
string
required
The user’s password (minimum 6 characters)
metadata
object
Additional user metadata (name, etc.)

Response

user
object
The created user object
session
object
Session information with access token
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]"
    }
  }
}