Skip to Content
API ReferenceMembersPUTUpsert a member

Upsert a member

PUT/api/v1/members/{external_member_id}

Creates a new member or updates an existing member record.

Path parameters

external_member_idstringrequired

Your system’s unique identifier for this member.

Request body

All body fields are optional. Omitted fields on subsequent calls retain their existing values.

nicknamestringoptional(max 200 characters)

Preferred conversational name.

onboardingobject[]optional

List of { id, value } answers matching question IDs from GET /api/v1/onboarding/questions:

  • id (string, required): Question identifier.
  • value (string[], required): Answer value array. Single-choice, date, and text questions take a 1-item array (e.g. ["pregnancy"]); multi-choice questions take an array of values (e.g. ["Feel stronger", "More energy"]). Pass [] or omit when skipping optional questions.

Returns

HTTP Status Codes

201 CreatedMemberoptional

Returned on initial registration. Returns the created member object.

200 OKMemberoptional

Returned when an existing member is updated. Returns the updated member object.

401 UnauthorizedErroroptional

The integration key is missing, invalid, or revoked.

422 Unprocessable EntityErroroptional

Validation failed (e.g. unknown question ID, invalid choice value, or bad date format).

curl -X PUT "https://api.bellacoach.ai/api/v1/members/usr_94821" \ -H "Authorization: Bearer $BELLA_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "nickname": "Sarah", "onboarding": [ { "id": "date_of_birth", "value": ["1992-06-14"] }, { "id": "stage_of_life", "value": ["pregnancy"] }, { "id": "goals", "value": ["Feel stronger", "More energy"] } ] }'

Response (201 Created / 200 OK)

{ "id": "mem_8f3a1c9e4b2d7061a5c8e2f1", "external_member_id": "usr_94821", "nickname": "Sarah", "source": "partner_api", "onboarding_status": [ { "name": "pre-payment", "status": "completed" }, { "name": "post-payment", "status": "pending" } ], "onboarding": [ { "id": "date_of_birth", "value": ["1992-06-14"] }, { "id": "stage_of_life", "value": ["pregnancy"] }, { "id": "goals", "value": ["Feel stronger", "More energy"] } ], "created_at": "2026-08-01T12:00:00Z" }

Next steps

Last updated on