Outreach Management API
Create direct outreach for a campaign
Create direct outreach for a campaign for a patient identified by contact_id (MRN).
Authentication: This endpoint supports dual authentication methods:
-
Auth0 JWT Bearer Token: For partners using Auth0 authentication
- Header: Authorization: Bearer <JWT_TOKEN>
- Token must include partner_id claim
- Token is validated for signature, expiration, issuer, and audience
-
Verification Token: For partners using legacy authentication
- Header: verification-token: <ENCRYPTED_TOKEN>
- Token format: partner_id:verification_token (encrypted)
- Validated against partner credentials
Your partner account is configured for one of these methods. Please use the authentication method assigned to your account. If you attempt to use the wrong method, you will receive a 401 Unauthorized error.
Scheduling Rules:
- scheduled_at: Optional — defaults to now + 10 minutes. Must be at most 48 hours in the future and no more than 1 hour in the past.
- expires_at: Optional — defaults to now + 48 hours. Must be at least 1 hour in the future and after scheduled_at.
Response Codes:
- 201 Created: Successfully created outreach
- 400 Bad Request: Validation error (invalid datetime, expires before scheduled, etc.)
- 404 Not Found: Patient not found with the provided contact_id
- 401 Unauthorized: Authentication failed or wrong authentication method used
- 500 Internal Server Error: Server error during processing
Request Body:
{
"contact_id": "MRN123456", // Required: MRN
"campaign_id": "campaign-uuid-789", // Required: Campaign UUID
"scheduled_at": "2025-01-15T10:00:00Z", // Optional: ISO datetime (defaults to now + 10 min)
"expires_at": "2025-01-17T10:00:00Z", // Optional: ISO datetime (defaults to now + 48 hours)
"dry_run": false // Optional: Test mode without creating outreach
}
Success Response (201):
{
"status": "success",
"message": "Successfully created outreach for campaign",
"outreach_id": "outreach-uuid-123"
}
Validation Error Response (400):
{
"detail": "scheduled_at must be at least 1 hour in the past"
}
Patient Not Found Response (404):
{
"detail": "No patient found with contact_id: MRN123456"
}
post/api/v1/outreach/create
Request
- Base URLhttps://api.hippocraticai.com (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.