API reference

Projects and organisations

Your Praecise organisations as Rivier reads them, projects, branding and account tokens.

Scopes for this area: workspace:read, workspace:write and workspace:admin.

139 operations

job

MethodRouteWhat it doesLevelCommand
POST/jobsHold a job until its time, once or every so often. It arrives as the event jobs.<name>, signed, at the project's webhooks that listen for it. The same idempotency key never makes a second job.writerivier workspace job create
GET/jobsThe project's jobs, by when they next run; filter by state.readrivier workspace job list
GET/jobs/{id}One job: when it runs next, how often, how many times it ran.readrivier workspace job get
POST/jobs/{id}/cancelCancel a scheduled job.writerivier workspace job cancel

marketing

MethodRouteWhat it doesLevelCommand
GET/marketing/overviewSpend, impressions, clicks, results and cost per result from the connected ad platforms, by channel, campaign or day, with the period just before for comparison. Read from what Rivier stored, never from the platform. Money is in minor units of each row's own currency and is never added across currencies.readrivier workspace marketing overview
GET/marketing/channels/{platform}One ad platform: its totals, its days and its campaigns over a period, and when it was last stored.readrivier workspace marketing channel
GET/marketing/campaignsCampaigns across the connected ad platforms with their spend and results over a period.readrivier workspace marketing campaigns
GET/marketing/runsThe pulls that stored the marketing data: when, for which connection, how many rows, and why one failed or was skipped.readrivier workspace marketing runs
POST/marketing/pullPull the connected ad platforms' reports now instead of waiting for the hourly pull. Reads only; it uses the connections' own credentials and only the accounts the person ticked.writerivier workspace marketing pull
GET/marketing/reportsThe weekly marketing reports written so far, newest first: what changed across the connected ad platforms, warnings and next steps, with the words in the project's language.readrivier workspace marketing reports
GET/marketing/reports/{id}One weekly marketing report with its figures, its three biggest changes, its warnings and its plain-language text.readrivier workspace marketing report
POST/marketing/reports/weeklyWrite the weekly marketing report now for the seven days ending on a day (yesterday by default). It reads only what Rivier stored, keeps the report and announces it as the event marketing.report.created.writerivier workspace marketing weekly
GET/marketing/budgetsThe monthly budgets the project set for each ad platform, in minor units of the budget's currency.readrivier workspace marketing budgets
PUT/marketing/budgetsSet what the project means to spend on one ad platform in one month. The amount is in whole currency units. It only sets the line the pacing check measures against; it never changes anything on the platform.writerivier workspace marketing budget
GET/marketing/pacingHow this month's spend is going against each platform's budget: spend so far, the straight-line pace, where the month ends at the current rate, and whether it is on track, over, under or used up.readrivier workspace marketing pacing
POST/marketing/pacing/checkCheck this month's pacing now. For a platform running over its budget it asks the connector engine to queue a pause of the campaign that spent most; the engine does not run it, a person approves or declines it. One ask per platform and month.writerivier workspace marketing check
GET/marketing/alertsWhat the anomaly watch found: a campaign whose latest day moved well away from its own recent normal (cost per result, click rate, spend, results), with the likely cause in plain words, or a note that a platform's data is old. Each finding is kept once per campaign, metric and day until a person dismisses it.readrivier workspace marketing alerts
POST/marketing/alerts/{id}/dismissDismiss one anomaly the watch found, so it stops showing as open. It changes nothing at any ad platform.writerivier workspace marketing dismiss
GET/marketing/attributionAd spend against what the site recorded: per platform and per campaign, the spend the platform reported, the orders, bookings and forms the site recorded from visits that named that platform and campaign label, cost per outcome, and return on spend where the currencies match. Labels that match nowhere are listed apart, never guessed together.readrivier workspace marketing attribution
GET/marketing/sourcesWhere results come from, side by side: for each way people arrive (paid ads, search, social, email, other sites, direct and AI assistants) the visits the site counted, the orders, bookings and enquiries they led to, outcomes per hundred visits and share of all outcomes; for paid visits the spend the platforms reported and the cost of an outcome. Values appear only when every valued outcome is in one currency, and cost only when the spend is in one. If the site's counters cannot be read, only the spend is shown and the answer says so.readrivier workspace marketing sources
GET/marketing/trackingWhether conversion tracking still works: for each ad platform with enough traffic, the clicks the platform reported against the visits the site recorded from them and the orders, bookings and forms those visits ended in, with a state (ok, watch, broken, unknown or idle) and the reason in plain words. One check is kept a day; a change for the worse is announced once as the event marketing.tracking.problem. Read from what Rivier stored; it calls no ad platform.readrivier workspace marketing tracking
GET/marketing/creativesThe ads of the connected ad platforms, ranked inside each campaign: for each ad its picture when the platform gives one, its format, spend, results and cost per result, its rank, whether it is clearly the best or the worst of its campaign, and whether it has worn out (its results per impression fell by 30 percent or more against the week before while it kept delivering). A campaign with too little behind it is listed and not ranked, with the reason. Platforms that cannot report by ad are named with why. Read from what Rivier stored; once a day, inside the marketing clock, the owner is asked (the event marketing.creative.proposal) whether to pause an ad that is clearly losing or has worn out, and nothing is paused without that approval.readrivier workspace marketing creatives
POST/marketing/tracking/checkRun the conversion tracking check now for the seven days ending on a day (yesterday by default). It reads only what Rivier stored, keeps the result and announces it only if it got worse.writerivier workspace marketing tracking check

connected business

MethodRouteWhat it doesLevelCommand
POST/connected-businessesAsk the owner of a business to connect it to this platform: name it, give their address and the scopes the platform asks for. They are mailed an invitation, accept it in their own organisation and choose what the platform may do. With a test key it is a test business at once: connected with every scope asked, no mail and no owner, reached only by the test key. the platform hears platform.business.connected, .declined, .expired, .granted, .paused, .resumed and .ended.adminrivier workspace connected business create
GET/connected-businessesThe businesses this platform asked to connect: waiting, connected (with what the host granted), paused, declined, ended or expired; by status or by the platform's own ref. Use a connection's id as x-rivier-business to work inside it.readrivier workspace connected business list
GET/connected-businesses/{id}One connection: its status, what was asked and what the host granted.readrivier workspace connected business get
POST/connected-businesses/{id}/resendSend a waiting or expired invitation again; the old link stops working.adminrivier workspace connected business resend
POST/connected-businesses/{id}/person-tokensExchange the code a person of the business came back with for a person token (once, within five minutes; it lasts 30 minutes). Calls with the platform's key, the business header and x-rivier-person: <token> may confirm or decline a booking, as that person's act. Only where the business granted bookings:decide.adminrivier workspace connected business person token
PATCH/connected-businesses/{id}Who tells the people of a booking made through this connection: platform (the default: Rivier schedules no reminders and sends them nothing) or business (as the business's own settings say); and the platform's own metadata on it.adminrivier workspace connected business update
POST/connected-businesses/{id}/pausePause a connection: the platform's calls into that business are refused as for an ended one, the grant is kept and the business's events still arrive. Resume it to work there again.adminrivier workspace connected business pause
POST/connected-businesses/{id}/resumeResume a paused connection with the grant it had.adminrivier workspace connected business resume
POST/connected-businesses/{id}/endEnd a connection: the platform's calls into that business stop at once. The business and everything in it stay with its owner.adminrivier workspace connected business end

product

MethodRouteWhat it doesLevelCommand
GET/productsThe products of the project.readrivier workspace product list
POST/productsAdd a product.writerivier workspace product create
GET/products/{id}A product with its profile.readrivier workspace product get
PATCH/products/{id}Change a product.writerivier workspace product update
POST/products/{id}/archiveTake a product out of use.writerivier workspace product archive
POST/products/{id}/restoreBring an archived product back.writerivier workspace product restore

resource

MethodRouteWhat it doesLevelCommand
GET/resourcesLinks, documents and handles kept at a level.readrivier workspace resource list
POST/resourcesKeep a resource at a level.writerivier workspace resource add
DELETE/resources/{id}Remove a resource.writerivier workspace resource remove
GET/projects/{projectId}/resources/{type}/{rid}/move-checkWhat moving a resource to another project of the same organisation would move, and what stops it. Changes nothing. A document is {collection}~{id}; the other types are `prompt_set`, `asset`, `product`, `connection` and `agent`, each by its id. `info` lists what moving changes without stopping it.readrivier workspace resource move check
POST/projects/{projectId}/resources/{type}/{rid}/moveMove a resource to another project of the same organisation (an owner or an admin of the organisation; a person, never a key).writerivier workspace resource move

overview

MethodRouteWhat it doesLevelCommand
GET/workspaceThe workspace in one read: agents, connections, what is waiting.readrivier workspace overview get
GET/workspace/summaryCounts for the dashboard.readrivier workspace overview summary
GET/workspace/homeThe home screen's data.readrivier workspace overview home
GET/workspace/youThe signed-in person, their role and workspace.readrivier workspace overview you
GET/workspace/queueEverything that arrived and still needs a person.readrivier workspace overview queue

activity

MethodRouteWhat it doesLevelCommand
GET/workspace/activityWhat agents did, newest first.readrivier workspace activity list
GET/workspace/activity.csvThe activity log as CSV.readrivier workspace activity csv

setup

MethodRouteWhat it doesLevelCommand
GET/workspace/setup/guideThe setup checklist and what is done.readrivier workspace setup guide

portfolio

MethodRouteWhat it doesLevelCommand
GET/workspace/portfolioEvery workspace of the organisation at a glance.readrivier workspace portfolio get

gap

MethodRouteWhat it doesLevelCommand
GET/workspace/gapsQuestions customers ask that the knowledge cannot answer.readrivier workspace gap list
POST/workspace/gaps/pageDraft a page that closes a gap.writerivier workspace gap page

watch

MethodRouteWhat it doesLevelCommand
GET/workspace/watchAnswers drafted in watch mode, awaiting a verdict.readrivier workspace watch list
POST/workspace/watch/{id}/verdictSay whether a drafted answer was good.writerivier workspace watch verdict

service

MethodRouteWhat it doesLevelCommand
POST/workspace/runRun one action of a connected service now.writerivier workspace service run

brand

MethodRouteWhat it doesLevelCommand
GET/workspace/brandThe business's name, domain, sender address and accent.readrivier workspace brand get
PUT/workspace/brandChange the business profile.writerivier workspace brand update

people

MethodRouteWhat it doesLevelCommand
GET/workspace/peopleWho has a role in the workspace.readrivier workspace people list
POST/workspace/peopleInvite a person with a role.adminrivier workspace people invite
DELETE/workspace/people/{id}Remove a person.adminrivier workspace people remove
PATCH/workspace/people/{id}Change a person's role.adminrivier workspace people set role

plan

MethodRouteWhat it doesLevelCommand
GET/workspace/planThe plan and what it allows.readrivier workspace plan get

organization

MethodRouteWhat it doesLevelCommand
GET/organizationsThe organisations the person belongs to.readrivier workspace organization list
POST/organizations/{id}/activateWork inside an organisation.adminrivier workspace organization activate

org workspace

MethodRouteWhat it doesLevelCommand
GET/organizations/{id}/workspacesAn organisation's workspaces.readrivier workspace org workspace list
POST/organizations/{id}/workspacesAdd a workspace.adminrivier workspace org workspace create
DELETE/organizations/{id}/workspaces/{wid}Remove a workspace.adminrivier workspace org workspace delete
PATCH/organizations/{id}/workspaces/{wid}Rename a workspace, or move it to another organisation by giving organizationId (an owner or admin of both; a person signs in for this, a key cannot).adminrivier workspace org workspace rename
GET/organizations/{id}/workspaces/archivedThe archived workspaces.readrivier workspace org workspace archived
POST/organizations/{id}/workspaces/{wid}/restoreBring an archived workspace back, within the plan's limit.adminrivier workspace org workspace restore
GET/organizations/{id}/workspaces/{wid}/retire-planWhat retiring an archived workspace removes, by area with counts and sizes, what stops it, and when the schedule would retire it.readrivier workspace org workspace retire plan
POST/organizations/{id}/workspaces/{wid}/retireRemove an archived workspace for good. The name is typed and the loss acknowledged; the domain registration and DNS are never touched.adminrivier workspace org workspace retire
GET/organizations/{id}/workspaces/{wid}/clear-planWhat clearing some areas of a workspace removes, and which other areas must be cleared with them.readrivier workspace org workspace clear plan
POST/organizations/{id}/workspaces/{wid}/clearRemove the data of some areas, or all of them, and keep the workspace, its settings, keys, members, plan and domains.adminrivier workspace org workspace clear
POST/organizations/{id}/workspaces/{wid}/exportMake the export of a workspace's records, kept for seven days.adminrivier workspace org workspace export
GET/organizations/{id}/workspaces/{wid}/exportDownload the export made for a workspace.readrivier workspace org workspace export download

profile

MethodRouteWhat it doesLevelCommand
GET/account/profileThe signed-in person's profile: the name from their Praecise account (read-only here), language, time zone, formats, accessibility and theme.readrivier workspace profile get
PATCH/account/profileChange the language, time zone, formats, accessibility and theme. The name and address are changed in the Praecise account.writerivier workspace profile update

notification

MethodRouteWhat it doesLevelCommand
GET/account/notificationsNotification choices per topic and channel, digest and quiet hours; a project id gives that project's override.readrivier workspace notification get
PUT/account/notificationsChange notification choices. Security email cannot be switched off.writerivier workspace notification set

account data

MethodRouteWhat it doesLevelCommand
POST/account/exportEverything held about the person, as JSON.writerivier workspace account data export

account deletion

MethodRouteWhat it doesLevelCommand
GET/account/deleteWhether a deletion of the account is waiting, and the phrase to type.readrivier workspace account deletion get
POST/account/deleteAsk for the account to be deleted after a 14-day cooling-off.writerivier workspace account deletion request
DELETE/account/deleteCancel a pending account deletion.writerivier workspace account deletion cancel

account feed

MethodRouteWhat it doesLevelCommand
GET/account/feedWhat the other Praecise products have for the signed-in person (Inbox, Spaces, Cloud, Skerry...), in their language, from the account's feed at the Praecise account service. Each item opens its own product.readrivier workspace account feed list
POST/account/feed/seenMark the items that were shown as seen (up to 100).writerivier workspace account feed seen
POST/account/feed/doneDismiss one item of the feed. It does not do the thing in its product.writerivier workspace account feed done

account token

MethodRouteWhat it doesLevelCommand
GET/account/tokensThe account's tokens: name, scopes, last use and expiry. Never a secret.readrivier workspace account token list
POST/account/tokensMake an account token for the command line or an agent. The secret is shown once. Needs a signed-in person; a token cannot make a token.writerivier workspace account token create
POST/account/tokens/{id}/rotateReplace a token with a twin; the old one keeps working for the overlap. The new secret is shown once.writerivier workspace account token rotate
DELETE/account/tokens/{id}Revoke a token at once.writerivier workspace account token revoke

audit

MethodRouteWhat it doesLevelCommand
GET/projects/{projectId}/auditWho did what in the project; filter by action, actor and dates.readrivier workspace audit list
GET/projects/{projectId}/audit.csvThe audit log as CSV.readrivier workspace audit csv

org library

MethodRouteWhat it doesLevelCommand
POST/org-library/itemsShare one of this project's templates, segments, forms or brand assets with the organisation's other projects. Sharing it again publishes a new version.writerivier workspace org library publish
GET/org-library/itemsWhat the organisation has shared: templates, brand assets, segments and forms, with folders and tags, and which ones this project already uses.readrivier workspace org library list
GET/org-library/items/{id}One shared item in full, with its versions and how many projects use it.readrivier workspace org library get
PATCH/org-library/items/{id}Rename a shared item, move it to a folder, tag it or set its language.writerivier workspace org library update
DELETE/org-library/items/{id}Take an item out of the organisation library. Copies already in projects are kept.writerivier workspace org library remove
POST/org-library/items/{id}/versionsPublish a new version of a shared item from this project's changed copy. Projects using it are offered the update.writerivier workspace org library new version
POST/org-library/items/{id}/useUse a shared item in this project: a copy that remembers where it came from. With refresh, bring an earlier copy up to the latest version.writerivier workspace org library use
GET/org-library/updatesCopies in this project that are behind the organisation library.readrivier workspace org library updates

org library settings

MethodRouteWhat it doesLevelCommand
GET/org-library/settingsWhether this organisation lets a contact's consent travel with it between projects.readrivier workspace org library settings get
PUT/org-library/settingsAllow or forbid consent travelling with a contact between projects. A person sets this.writerivier workspace org library settings set

org library contact

MethodRouteWhat it doesLevelCommand
POST/org-library/contacts/adoptTake a contact another project shared into this one. It arrives without consent and a pending record is written; a person may carry the consent along when the organisation allows it.writerivier workspace org library contact adopt

project hub

MethodRouteWhat it doesLevelCommand
GET/project-hubThe project as one page: counts of campaigns, templates, segments, lists, forms and contacts, domains, numbers and assets, the sender, recent campaigns, library updates, setup progress and what is blocking.readrivier workspace project hub get
GET/project-hub/searchSearch across the project's contacts, campaigns, templates, segments, forms, brand assets, domains, numbers and the organisation library.readrivier workspace project hub search
POST/project-hub/campaign-from-briefDraft a campaign from a brief: picks the segment among those that can be written to, reuses the best template (the organisation's if the project has none), writes the copy in the audience language and runs the check. It stops at a draft: a person approves it before anything is sent.writerivier workspace project hub draft from brief

org client

MethodRouteWhat it doesLevelCommand
GET/projects/{projectId}/clientsThe project's clients: search by name, email or tag, active ones by default (archived: include or only), paged.readrivier clients list
GET/projects/{projectId}/clients/{id}One client with its contacts.readrivier clients get
POST/projects/{projectId}/clientsAdd a client (a name is unique among the project's active clients). Editor and above.writerivier clients create
PATCH/projects/{projectId}/clients/{id}Change any part of a client; fields left out stay as they are.writerivier clients update
POST/projects/{projectId}/clients/{id}/archiveArchive a client: hidden from lists and pickers, its history and documents kept.writerivier clients archive
POST/projects/{projectId}/clients/{id}/restoreBring an archived client back.writerivier clients restore
POST/projects/{projectId}/clients/importLoad clients from CSV text. With apply false (the default) it shows what would be created, changed or skipped and writes nothing.writerivier clients import
GET/projects/{projectId}/clients/{id}/eventsWhat happened to a client, newest first.readrivier clients events
GET/projects/{projectId}/clients/{clientId}/documentsEvery quote, proposal and invoice of a client newest first.readrivier clients documents

org contact

MethodRouteWhat it doesLevelCommand
GET/projects/{projectId}/clients/{id}/contactsThe contacts of a client.readrivier clients contacts list
POST/projects/{projectId}/clients/{id}/contactsAdd a contact to a client (a name or an email address is needed; one can be primary, several can be copied by default).writerivier clients contacts add
PATCH/projects/{projectId}/clients/{id}/contacts/{contactId}Change a contact of a client.writerivier clients contacts update
DELETE/projects/{projectId}/clients/{id}/contacts/{contactId}Remove a contact from a client.writerivier clients contacts remove

org branding

MethodRouteWhat it doesLevelCommand
GET/projects/{projectId}/brandingThe branding documents are printed with: names, address, tax and registration numbers, bank details, footer, accent colour, font, sender name, reply-to, and whether a logo is set.readrivier branding get
PUT/projects/{projectId}/brandingChange the branding; fields left out stay as they are. Needs an admin (a person who is owner or admin, or an admin key).writerivier branding set
PUT/projects/{projectId}/branding/logoSet the logo (variant light or dark): base64 PNG, JPEG, WebP or SVG up to 512 KB; an SVG is sanitised. Needs an admin.writerivier branding logo set
GET/projects/{projectId}/branding/logoThe logo file (variant light or dark).readrivier branding logo get

org template

MethodRouteWhat it doesLevelCommand
GET/projects/{projectId}/templatesThe project's own templates (archived: include or only) with the starter gallery, optionally for one kind and language.readrivier templates list
GET/projects/{projectId}/templates/galleryThe starter gallery: four layouts per kind (minimal, classic, modern, bold) and, for proposals, four use cases, in English, Dhivehi and Arabic.readrivier templates gallery
GET/projects/{projectId}/templates/{id}One template.readrivier templates get
POST/projects/{projectId}/templatesMake a template: by hand, from a gallery starter (fromGallery), or from a document's content (a body with lines, which drops any tax field on them). Editor and above.writerivier templates create
PATCH/projects/{projectId}/templates/{id}Change a template; fields left out stay as they are. An editor changes templates they made, an admin any.writerivier templates update
POST/projects/{projectId}/templates/{id}/duplicateA copy of a template (optionally named); the copy is never the default.writerivier templates duplicate
DELETE/projects/{projectId}/templates/{id}Archive a template: out of the pickers, its copies in documents untouched. Needs an admin.writerivier templates archive
POST/projects/{projectId}/templates/{id}/defaultMake a template the default of its kind (isDefault false clears it). Needs an admin.writerivier templates default
POST/projects/{projectId}/templates/applyA copy of a template's (or a gallery starter's) content to place into a new document; nothing is saved.writerivier templates apply
POST/projects/{projectId}/templates/previewThe renderable view of a template or starter with the project's branding and sample figures; nothing is saved.writerivier templates preview