Set up and manage a Workspace
A Workspace is your business's own space in Harnesty. It holds your records, your Mandates and your workspace audit log. A Mandate is a signed record of what a person, an agent or a tool may do. The Workspace is also the boundary for isolation, data residency and billing.
One account can belong to several Workspaces. In each one, you may do what the Mandates that Workspace holds for you allow.
Set up a Workspace in this order: sign in, create the Workspace and choose where it keeps its data, then form Teams and connect your directory.
Sign in with an email link
Harnesty has no passwords. You sign in with a link that we email to you.
- Call
auth.signin.request. Put your email address inaddress, and the language of the sign-in email informLocale, such asenorcs. To come back to a page of this site after you sign in, add it asreturnPath. - Open the link in the message we send. A link works once, on any device, until it expires.
The request gets the same answer whether or not we hold that address, so nobody can use it to find out who has an account.
Create a Workspace
Call workspace.create. You become the founding owner of the Workspace.
- Set
name,slug,defaultLocale(such asenorcs) andtier, the plan the Workspace starts on. All four are required.slugis the name in the Workspace's own address, such asmeridian, and it never changes after the create. Before you send the create, askworkspace.slug.checkwhether the slug is free. - Choose how the Workspace is paid for. Send either
anchorReference, the reference from your payment card setup, orbusinessCode, a code from a Business Manager account. Send one of the two, never both. - Set
residencyClass. The next section says what each value means. - Set
ageConfirmedto true to confirm that you are 18 or older. If the call leaves it out or sends false, we refuse the call, and nothing is created. - Send the call with an
Idempotency-Keyheader, which makes a repeated call safe. If the connection drops, send the same call again with the same key: the answer names the same Workspace, and no second Workspace is created. The same key with a different input is refused. - Keep the answer.
workspaceis the id of the new Workspace.operationis the Operation that sets the Workspace up: the record of that set-up, which runs to its end even if your connection drops. - Call
workspace.creation.getwithworkspace, or with yourIdempotency-Keyaskey.provisionshows where the set-up stands, andfoundingshows where the founding stands. When the Workspace is set up and founded, you can work in it. If either fails,provisionCodeorfoundingCodesays why.
Choose where the Workspace keeps its data
You choose the residency, the place where the Workspace's data stays, in the create call. It is fixed when you create the Workspace. residencyClass takes one of two values:
eu-guaranteedstores and processes its data in the EU. You get this value when you leaveresidencyClassout. Traffic to a Catalog integration is an exception: a provider hosted in the US serves the Catalog kind for every Workspace, and our subprocessor list names it. The data processing agreement lists the transfers that our cloud provider documents for an EU region.globalpermits every region our terms permit.
A call you make through a Connection to a tool outside Harnesty reaches that tool where the tool is hosted.
To check the residency of an existing Workspace, call workspace.residency.get. It returns residencyClass and permittedRoutes, the routes to AI models that this residency lets you use. An empty list means that no route serves this residency.
Form Teams
A Team is a set of members that holds its own Mandates. The API calls it a Group. Members can be people, Agents, Machines and other Teams, and each member acts with everything the Team holds.
group.createcreates a Team. SetdisplayName, and setownerto the Team that will own the new one: a Team is always owned by a Team, never by one member.workspaceEnvironmentslimits the Workspace Environments, such as production or non-production, that the Team may act in. Leave it out, and the Team gets the same set as you.group.member.addadds amemberto agroup. The membership is itself a Mandate, and your workspace audit log records it, with you as the one who added the member.group.member.removeremoves a member. Each Mandate that member issued for the Team stays in force under a new issuer, so what the Team owns keeps working. A Mandate below a moved one ends if it no longer fits under the new issuer, and the answer counts these inleft. If you will not be in the Team yourself after the member leaves, name a member who stays asissuer.group.listlists the members of your Teams, one page at a time. Setgroupto read one Team's members,memberto read one member's Teams, or both.memberKindon each row says what kind of Principal the member is, such as a person or an Agent.
The owners of a Workspace are the members of its Owners Team, so you add an owner the same way as any other member.
Connect your directory
A directory is the system where your business keeps its user accounts, such as Microsoft Entra ID. Call directory.connection.create to connect your Workspace to it.
- Set
sourceto the kind of directory, such asentra-id, andtrustAnchorto where its identifiers come from, such as your tenant ID. You cannot connect a directory that gives no person an identifier that never changes. - Set
credentialto the credential we use to read the directory. It goes to your Workspace's vault, and no answer ever returns it. - Set
fallbackto what happens when the directory cannot prove that a new identifier belongs to the same person.bar-and-startbars the old Principal and starts a new one with no Mandates.refuse-newkeeps the old Principal and refuses the new identifier. - Set
ceilingKindandceilingto one node below your Workspace. That node limits every Policy that reads a fact from this directory. - Optionally, set
readFilterto read only part of the directory, andscheduleto read it on a schedule. Harnesty does not read the directory yet: it keeps the filter and the schedule for when it does.
A directory connection grants nobody anything. A directory administrator cannot give anyone authority in your Workspace: a person the directory names holds only the Mandates you grant them. Your workspace audit log records the connection, who made it and under what authority.
directory.connection.remove removes the connection and the identifiers it linked to people. It bars nobody: a person who has another way to sign in keeps working, and everyone keeps their Mandates and their history.
Export your account data
user.account.export returns your account data at once, in one machine-readable document. It answers for your own account alone.
The document holds your account and your email addresses. For each list that Harnesty holds about your account, it returns the count and the first entries. These lists are the Workspaces you belong to, your sign-ins, and the consent history and messages of your marketing addresses. Read the rest of each list with user.account.workspaces, user.account.sessions, user.account.provenance and user.account.sends.
The document and these reads name each Workspace you belong to, but nothing inside it. The data a Workspace holds about you as its member belongs to the business that owns that Workspace, so ask that business for it.