/v1/user
Create a new user that will go through the Counsel onboarding flow
Create a new "draft" user that will go through the onboarding flow within Counsel.
This API is only available if the organization has enabled the onboarding flow. Contact your Counsel representative to enable this feature.
post/v1/user/draft/
Request
- Base URLhttps://api.counselhealth.com (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
Headers
Idempotency-Keystring
Example:550e8400-e29b-41d4-a716-446655440000
Optional idempotency key. Repeat requests with the same key and body return the original result.
Request body
Example request
{
"dob": "1990-01-01",
"email": "john.doe@example.com",
"state": "CA",
"metadata": {
"plan": "pro",
"external_id": "1234567890"
},
"external_id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
"id_verified": true,
"addresses": [
{
"line1": "123 Main St",
"line2": "Apt 2",
"city": "San Francisco",
"state": "CA",
"zip": "12345"
}
],
"first_name": "John",
"last_name": "Doe",
"preferred_name": "Bob",
"id": "550e8400-e29b-41d4-a716-446655440000",
"unconfirmed_phone_number": "+18007006000"
}Response
A partially-created user still going through onboarding. Used if we need to handle consents and onboarding within Counsel. Converts to a user once onboarding completes.
Example response
{
"dob": "1990-01-01",
"email": "john.doe@example.com",
"state": "CA",
"created_at": "2030-01-01T00:00:00Z",
"metadata": {
"plan": "pro",
"external_id": "1234567890"
},
"external_id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
"id_verified": true,
"addresses": [
{
"line1": "123 Main St",
"line2": "Apt 2",
"city": "San Francisco",
"state": "CA",
"zip": "12345"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.