POST
/
users
/
{user_id}
/
complete_onboarding
cURL
curl --request POST \
  --url http://localhost:8080/users/{user_id}/complete_onboarding \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "address": {
    "city": "Bengaluru",
    "country": "IN",
    "line1": "123, MG Road",
    "line2": "Flat 4B, Sunrise Apartments",
    "pincode": "560001",
    "state": "Karnataka"
  },
  "dob": "2000-01-15",
  "first_name": "<string>",
  "gender": "male",
  "last_name": "<string>",
  "salutation": "mr",
  "email": "<string>",
  "id_proof": {
    "number": "<string>",
    "proof_type": "aadhaar"
  }
}
'
{
  "access_token": "<string>",
  "user": {
    "phone_country_code": "<string>",
    "phone_number": "<string>",
    "status": "onboarding",
    "user_id": "<string>",
    "address": {
      "city": "Bengaluru",
      "country": "IN",
      "line1": "123, MG Road",
      "line2": "Flat 4B, Sunrise Apartments",
      "pincode": "560001",
      "state": "Karnataka"
    },
    "dob": "2000-01-15",
    "email": "<string>",
    "first_name": "<string>",
    "gender": "male",
    "last_name": "<string>"
  }
}

Authorizations

Authorization
string
header
required

JWT access token. Obtain from /auth/otp/verify endpoint.

Path Parameters

user_id
string
required

User ID

Body

application/json
address
object
required

Structured address details for user profiles and insurance documents.

dob
string
required
Example:

"2000-01-15"

first_name
string
required
gender
enum<string>
required

User gender.

Available options:
male,
female,
other
last_name
string
required
salutation
enum<string>
required

Title or honorific for a person.

Available options:
mr,
mrs,
ms,
master
email
string | null
id_proof
object

Response

Onboarding completed

access_token
string
required
user
object
required