Create partner email report

Create a scheduled partner-level email report (activity/response/feed/etc.) for a recipient, scoped to all accounts the partner owns or to a specific list of account companies.

Auth: Partner — authentication; lives under the partner/* group (partner-admin scope, no Hipages gate). The owning company is the auth user's. Each account.* id must sit inside your own account tree, so a partner can only target account companies inside its own company tree. The recipient comes either from an existing user (old_recipient_email) or created fresh from recipient_email + name.

Rate limit: No rate limit.

Request

  • Body:
FieldTypeRequiredNotes
reportTypestringyesOne of activity_report, response_report, review_feed, review_feed_star, review_responses, review_site_connections. review_feed/review_feed_star are forced to day frequency.
reportPeriodTypestringyesday, week, or month. Further constrained by based on reportType.
all_accountintegeryes1 = all accounts the partner owns, 0 = specific accounts. Rule required|nullable|in:0,1.
accountint[]required_if all_account=0Account company ids; each must be an existing account and pass an ownership check.
old_recipient_emailstring(email)required_without recipient_emailExisting user's email; report attached to that user.
recipient_emailstring(email)required_without old_recipient_emailNew recipient email.
recipient_first_namestring(max 100)required_without old_recipient_emailNew recipient first name.
recipient_last_namestring(max 100)required_without old_recipient_emailNew recipient last name.

Response{ data. } envelope.

  • status (string) — success.
  • response (string) — message Report has been saved successfully!. On missing company / unknown old_recipient_email, a 400 { status: 'error', response: 'Company not found!' | 'User not found!' } comes back instead.

Errors: 422 on validation failure.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
string
integer
account
array of integers
account
string
string
string
Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json