Skip to main content
POST
Email an admin a recap
Key: Write Scope: Company

Authorizations

Authorization
string
header
required

Use your Primo API key in the Authorization header as Bearer <API_KEY>.

Body

application/json
language
string
required

The language of the text, as a BCP 47 tag: "en", "fr". It formats the dates.

Pattern: ^[a-z]{2}(-[A-Za-z]{2})?$
subject
string
required

The subject of the recap, then the period in a few words: "Today · 3 actions this week".

Required string length: 1 - 60
preheader
string
required

The period's most important change, in one sentence.

Required string length: 1 - 140
headline
string
required

The admin's first name and the period's verdict, in one sentence.

Required string length: 1 - 120
period
object
required

The days the recap covers, as YYYY-MM-DD dates.

dashboardId
string | null
required

The id of the dashboard the recap is about, as getAiDashboardData returns it; null when the recap is not about one AI dashboard.

Pattern: ^[0-9a-fA-F]{24}$
dashboardName
string | null
required

The dashboard's name as getAiDashboardData returns it, "Today" for the first one; null when the recap is not about one AI dashboard.

Required string length: 1 - 80
agentId
string
required

Your own agent id, as your instructions give it.

Pattern: ^[A-Za-z0-9-]{1,64}$
blocks
object[]
required

1 to 5 blocks, in display order. Values only: no HTML, no markup, no URL.

Required array length: 1 - 5 elements
adminId
string
required

The one admin to email, as returned by getAdmins (an employee id or an external userId).

Minimum string length: 1

Response

default - application/json
recipientCount
integer
required
Required range: -9007199254740991 <= x <= 9007199254740991