Skip to main content
POST
/
:projectId
/
auth
/
sign-up
Sign Up
curl --request POST \
  --url https://api.replyke.com/api/v6/:projectId/auth/sign-up \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "<string>",
  "password": "<string>",
  "name": "<string>",
  "username": "<string>",
  "avatar": "<string>",
  "bio": "<string>",
  "location": {},
  "birthdate": "<string>",
  "metadata": {},
  "secureMetadata": {}
}'
{
  "success": true,
  "accessToken": "<string>",
  "refreshToken": "<string>",
  "user": {
    "id": "<string>",
    "email": "<string>",
    "username": "<string>",
    "name": "<string>",
    "avatar": "<string>",
    "bio": "<string>",
    "location": {
      "type": "<string>",
      "coordinates": [
        123
      ]
    },
    "birthdate": "<string>",
    "metadata": {},
    "suspensions": [
      {}
    ],
    "reputation": 123,
    "createdAt": "<string>",
    "updatedAt": "<string>"
  }
}
Register a new user by providing required credentials and optional profile data. Returns access and refresh tokens along with user data.

Body Parameters

email
string
required
User’s email address
password
string
required
User’s password
name
string
Full name of the user
username
string
Unique username (will be automatically lowercased)
avatar
string
URL to the user’s avatar image
bio
string
Short biography or description
location
object
Geolocation object with longitude and latitude properties
birthdate
string
User’s birthdate in ISO 8601 format
metadata
object
Custom public metadata that will be returned in API responses
secureMetadata
object
Custom secure metadata (not returned to client, server-side only)

Response

success
boolean
Indicates whether the registration was successful
accessToken
string
JWT access token for authenticating API requests
refreshToken
string
JWT refresh token for obtaining new access tokens
user
User Object
The newly created user object

Error Responses

{
  "error": "Missing required fields",
  "code": "auth/missing-fields"
}
{
  "error": "Internal server error",
  "code": "auth/server-error",
  "details": "<Error message>"
}

Notes

  • Sets an HttpOnly cookie named replyke-refresh-jwt with the refresh token.
  • Access token is returned in the response body.
  • Sensitive user data is excluded in the response.
  • A webhook is called before user creation to allow project-specific validation.
I