Auth service
Internal
9 endpoints.
/api/v1/internal/account-invites/send-emailSend Account Invite Email
Parameters
| Name | In | Type | Description |
|---|---|---|---|
X-Internal-Api-Key | header | string | null |
Request bodyrequired
application/jsonInternalAccountInviteEmailRequest| Field | Type | Description |
|---|---|---|
emailrequired | string (email) | |
business_namerequired | string | |
invite_idrequired | string | |
owner_name | string | default "" |
Responses
200Successful Responseapplication/jsonany422Validation Error
Error bodies: HTTPValidationError. See Errors.
/api/v1/internal/billing-notifications/send-emailSend Billing Notification Email
Email one business user about a billing event (DF-10). Called per recipient by sor, which owns the business↔user mapping; this service only knows how to render and send.
**422 on a kind we have no copy for.** The alternative — generic wording — produces an email that names no amount, no date and no reason, which spends the customer's one notification on nothing and reports nothing to us. The caller retries and dead-letters it, so it surfaces as a tracked failure. `notification_data` gets no such treatment: it is best-effort, and a missing or unreadable value costs a line in the callout rather than the email.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
X-Internal-Api-Key | header | string | null |
Request bodyrequired
application/jsonInternalBillingNotificationEmailRequest| Field | Type | Description |
|---|---|---|
emailrequired | string (email) | |
business_namerequired | string | |
kindrequired | string | max length 64 |
billing_url | string (uri) | null | |
notification_data | object | |
event_id | string | default "" |
Responses
200Successful Responseapplication/jsonany422Validation Error
Error bodies: HTTPValidationError. See Errors.
/api/v1/internal/escalation-notifications/send-emailSend Escalation Notification Email
Parameters
| Name | In | Type | Description |
|---|---|---|---|
X-Internal-Api-Key | header | string | null |
Request bodyrequired
application/jsonInternalEscalationNotificationEmailRequest| Field | Type | Description |
|---|---|---|
emailrequired | string (email) | |
business_namerequired | string | |
escalation_reason | string | default "" |
consumer_label | string | default "" |
matched_keyword | string | default "" |
last_message_preview | string | default "" |
conversation_url | string (uri) | null |
Responses
200Successful Responseapplication/jsonany422Validation Error
Error bodies: HTTPValidationError. See Errors.
/api/v1/internal/lead-notifications/send-emailSend Lead Notification Email
Parameters
| Name | In | Type | Description |
|---|---|---|---|
X-Internal-Api-Key | header | string | null |
Request bodyrequired
application/jsonInternalLeadNotificationEmailRequest| Field | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
emailrequired | string (email) | ||||||||||
business_namerequired | string | ||||||||||
lead_name | string | default "" | |||||||||
lead_email | string | default "" | |||||||||
lead_phone | string | default "" | |||||||||
lead_message | string | default "" | |||||||||
contact_url | string (uri) | null | ||||||||||
kind | string | default "new_lead" | |||||||||
source | string | default "website_form" | |||||||||
lead_fields | LeadFieldItem[] | default []LeadFieldItem[] fields
| |||||||||
partial_details | boolean | default false | |||||||||
ai_pursuing | boolean | default false |
Responses
200Successful Responseapplication/jsonany422Validation Error
Error bodies: HTTPValidationError. See Errors.
/api/v1/internal/review-notifications/send-emailSend Review Notification Email
Parameters
| Name | In | Type | Description |
|---|---|---|---|
X-Internal-Api-Key | header | string | null |
Request bodyrequired
application/jsonInternalReviewNotificationEmailRequest| Field | Type | Description |
|---|---|---|
emailrequired | string (email) | |
business_namerequired | string | |
listing_title | string | default "" |
reviewer_name | string | default "" |
rating | integer | null | |
review_body | string | default "" |
review_url | string (uri) | null |
Responses
200Successful Responseapplication/jsonany422Validation Error
Error bodies: HTTPValidationError. See Errors.
/api/v1/internal/usersList Users
Parameters
| Name | In | Type | Description |
|---|---|---|---|
role_idrequired | query | integer | Filter by Heimdal role_id |
limit | query | integer | default 100 |
offset | query | integer | default 0 |
X-Internal-Api-Key | header | string | null |
Responses
200Successful Responseapplication/jsonInternalUserListResponse| Field | Type | Description | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
usersrequired | InternalUserRecord[] | InternalUserRecord[] fields
|
422Validation Error
Error bodies: HTTPValidationError. See Errors.
/api/v1/internal/users/{user_id}Update User
Parameters
| Name | In | Type | Description |
|---|---|---|---|
user_idrequired | path | string (uuid) | |
X-Internal-Api-Key | header | string | null |
Request bodyrequired
application/jsonInternalUserUpdateRequest| Field | Type | Description |
|---|---|---|
first_name | string | null | |
last_name | string | null | |
phone | string | null | |
email | string (email) | null | |
role_id | integer | null | |
is_active | boolean | null |
Responses
200Successful Responseapplication/jsonInternalUserRecordInternalUserRecord, expanded above.
422Validation Error
Error bodies: HTTPValidationError. See Errors.
/api/v1/internal/users/lookupLookup Users
Parameters
| Name | In | Type | Description |
|---|---|---|---|
X-Internal-Api-Key | header | string | null |
Request bodyrequired
application/jsonInternalUserLookupRequest| Field | Type | Description |
|---|---|---|
user_ids | string (uuid)[] | default []string (uuid)[] fields |
emails | string (email)[] | default []string (email)[] fields |
Responses
200Successful Responseapplication/jsonInternalUserLookupResponse| Field | Type | Description |
|---|---|---|
usersrequired | InternalUserRecord[] | InternalUserRecord[] fieldsInternalUserRecord, expanded above. |
422Validation Error
Error bodies: HTTPValidationError. See Errors.
/api/v1/internal/users/provisionProvision User
Parameters
| Name | In | Type | Description |
|---|---|---|---|
X-Internal-Api-Key | header | string | null |
Request bodyrequired
application/jsonInternalProvisionUserRequest| Field | Type | Description |
|---|---|---|
emailrequired | string (email) | |
first_namerequired | string | |
last_namerequired | string | |
phone | string | null | |
role_id | integer | default 400 |
send_password_reset | boolean | default true |
Responses
200User updated successfullyapplication/jsonInternalProvisionUserResponse| Field | Type | Description |
|---|---|---|
user_idrequired | string (uuid) | |
emailrequired | string (email) | |
first_name | string | null | |
last_name | string | null | |
phone | string | null | |
role_idrequired | integer | |
createdrequired | boolean | |
password_reset_sentrequired | boolean |
201Successful Responseapplication/jsonInternalProvisionUserResponseInternalProvisionUserResponse, expanded above.
422Validation Error
Error bodies: HTTPValidationError. See Errors.