/v1/user
Enable a user to start new conversations and send messages
Re-enable a previously-disabled user. The user moves out of read-only mode and can again start new conversations and send messages in the embedded iFrame or WebView app.
Pass access_expires_at to set a specific expiry (e.g., aligned with a subscription period). Omitting it sets the user to never expire.
Organizations with trial access. Counsel sets the expiry instead of using access_expires_at. The first rule that matches applies:
- Active subscription: re-enabled with no expiry.
- Trial still running: re-enabled until the trial's original end date. Time spent disabled is not added back.
- Trial ended and no active subscription: not re-enabled. The request returns 409 with code trial_expired. The disable is still lifted, so the user can subscribe to get access back.
post/v1/user/{userId}/enable/
Request
- Base URLhttps://api.counselhealth.com (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
Path parameters
userIdstring required
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
{
"access_expires_at": "2030-01-01T00:00:00Z"
}Response
Default Response
Example response
{
"created_at": "2030-01-01T00:00:00Z",
"dob": "1990-01-01",
"phone": "+18007006000",
"addresses": [
{
"line1": "123 Main St",
"line2": "Apt 2",
"city": "San Francisco",
"state": "CA",
"zip": "12345"
}
],
"race": [
"White",
"Asian"
],
"medical_profile": {
"conditions": [
"Diabetes"
],
"medications": [
"Metformin"
],
"medication_allergies": [
"Tylenol"
],
"surgeries": [
"Appendectomy"
],
"family_history": [
"Diabetes"
],
"doctors": {
"pcp_name": "Dr. Joe Doe",
"specialist_types": [
"Cardiologist"
]
},
"additional_details": {}
},
"access_expires_at": "2030-01-01T00:00:00Z",
"email": "john.doe@example.com",
"metadata": {
"plan": "pro",
"external_id": "1234567890"
},
"onboarded_at": "2030-01-01T00:00:00Z",
"external_id": "01ARZ3NDEKTSV4RRFFQ69G5FAV"
}Changes
No recorded changes to this operation across all 1 revision of this API.