Sign Up
Create a new JusPredict Backend user account. Users can register using an email and password or by linking a social account (Google, Apple).
Endpoint
Section titled “Endpoint”POST
/user/v1/signupRequest Body
Section titled “Request Body”curl -X POST https://api.juspredict.com/user/v1/signup \-H 'Authorization: Bearer YOUR_TOKEN' \-H 'Content-Type: application/json' \-d '{"first_name": "John","last_name": "Doe","email": "john.doe@example.com","date_of_birth": {"year": 1990,"month": 5,"day": 15},"email_signup": {"password": "securepassword123"}}'{"first_name": "John","last_name": "Doe","email": "john.doe@example.com","date_of_birth": {"year": 1990,"month": 5,"day": 15},"email_signup": {"password": "securepassword123"}}Constraints
Section titled “Constraints”| Field | Requirement |
|---|---|
first_name | Required, maximum 64 characters. |
last_name | Required, maximum 64 characters. |
email | Must be a valid email address format. |
password | Must be between 8 and 16 characters in length. |
Response Body
Section titled “Response Body”{"status": {"type": "SUCCESS","details": []},"access_token": "eyJhbG...","refresh_token": "def456...","token_expiry": "2026-04-18T12:00:00Z","user_profile": {"user_name": "jdoe","email": "john.doe@example.com","first_name": "John","last_name": "Doe","user_status": "CREATED"}}{"status": {"type": "ERROR","details": [ { "code": "401", "message": "Unauthorized access token." }]}}Response Fields
Section titled “Response Fields”| Field | Type | Description |
|---|---|---|
status | Status | Operation status. |