Skip to main content
POST
/
auth
/
register
Register
curl --request POST \
  --url https://api.surefeedback.com/api/v1/auth/register \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "first_name": "<string>",
  "last_name": "<string>",
  "email": "<string>",
  "password": "<string>",
  "invitation_token": "<string>",
  "signup_source": "<string>"
}
'
{
  "success": true,
  "data": {
    "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...",
    "user": {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "email": "[email protected]",
      "first_name": "Jane",
      "last_name": "Smith"
    },
    "organization": {
      "id": "660e8400-e29b-41d4-a716-446655440001",
      "name": "Jane's Organization"
    }
  }
}
Creates a new user account and returns a JWT token. An organization and default project are automatically created for the new user.

Request body

first_name
string
required
User’s first name. Max 100 characters.
last_name
string
User’s last name. Max 100 characters.
email
string
required
Valid email address. Max 255 characters.
password
string
required
Password. Minimum 8 characters.
invitation_token
string
Invitation token if registering via an invite link.
signup_source
string
Source of the signup (e.g., widget, invitation). Max 100 characters.

Response

success
boolean
true on success.
data
object
{
  "success": true,
  "data": {
    "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...",
    "user": {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "email": "[email protected]",
      "first_name": "Jane",
      "last_name": "Smith"
    },
    "organization": {
      "id": "660e8400-e29b-41d4-a716-446655440001",
      "name": "Jane's Organization"
    }
  }
}