API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · tenant_links

Tenant Link Schema

Schema-ID
tenant_link
Collection
tenant_links
Permissions
  • Lezentenant_link_view
  • Aanmakentenant_link_manage
  • Wijzigentenant_link_manage
  • Verwijderentenant_link_manage

Velden

Tenant Link Schema

tenant_links4 permissions

Consent-based federation link between two Codemeta tenants, possibly on different installations (ADR 0445)

labelstringoptioneel

Display name for the connection list. Never sent over the wire.

max. 120 tekensnullable
peerKindstringvereist

local = another tenant of this installation (loopback, no secrets); remote = a foreign installation (signed HTTPS).

localremote
read-only
baseUrlstringoptioneel

Remote only. HTTPS enforced and re-validated against assertSafeOutgoingUrl before every call (SSRF).

max. 500 tekensnullable
peerInstallationIdstringoptioneel

Opaque id of the counterpart installation, stamped during the handshake.

max. 200 tekensread-onlynullable
peerTenantIdstringoptioneel

Counterpart tenant. Stamped on redemption only — never client-writable.

read-onlynullable
invitationCodestringoptioneel

Server-generated invitation. Unique while pending, cleared on redemption. Redacted from every read.

read-onlynullable
invitationExpiresAtdatetimeoptioneel

After this instant the code no longer redeems.

read-onlynullable
statusstringvereist
pendingacceptedrevoked
Default: "pending"read-only
revokedSidestringoptioneel

Which side ended it. Both sides may revoke.

initiatorpeer
read-onlynullable
rolesobjectoptioneel
nullable
mspTenantIdstringoptioneel
nullable
customerTenantIdstringoptioneel
nullable
partyIduuidoptioneel

THE anchor — the customer party in the MSP CRM. Never leaves the installation.

nullable
protocolVersionintegeroptioneel

Negotiated major version, min(local, peer).

≥ 1Default: 1read-only
capabilitiesobjectoptioneel

What the PEER may do here. Server-enforced.

read-only
createTicketbooleanoptioneel
Default: false
commentbooleanoptioneel
Default: true
changeStatusbooleanoptioneel
Default: true
changePrioritybooleanoptioneel
Default: true
requestReturnbooleanoptioneel
Default: true
peerCapabilitiesobjectoptioneel

What we may do there. Display / pre-flight only — never an authorisation basis.

read-onlynullable
createTicketbooleanoptioneel
commentbooleanoptioneel
changeStatusbooleanoptioneel
changePrioritybooleanoptioneel
requestReturnbooleanoptioneel
inboundKeyIdstringoptioneel

NON-SECRET selector (X-Codemeta-Peer-Key). Installation-wide unique — the ingress knows no tenant yet.

read-onlynullable
inboundSecretEncobjectoptioneel

AES-256-GCM blob of the secret inbound signatures are verified with. Encrypted, NOT hashed — HMAC verification needs the plaintext.

read-onlynullable
__encryptedbooleanoptioneel
vintegeroptioneel
ivstringoptioneel
tagstringoptioneel
ciphertextstringoptioneel
inboundSecretRotatedAtdatetimeoptioneel
read-onlynullable
outboundKeyIdstringoptioneel

The counterpart's selector — what we send in X-Codemeta-Peer-Key.

read-onlynullable
outboundSecretEncobjectoptioneel

AES-256-GCM blob of the secret outbound signatures are created with.

read-onlynullable
__encryptedbooleanoptioneel
vintegeroptioneel
ivstringoptioneel
tagstringoptioneel
ciphertextstringoptioneel
outboundSecretRotatedAtdatetimeoptioneel
read-onlynullable
exchangeobjectoptioneel

TicketExchangeConfig (ADR 0363 §1b) — target, statusMap, priorityMap. Same type as the Jira side.

nullable
sharesIdentitybooleanoptioneel

ADR 1116: the row OWNER sends reporter (name, e-mail, phone) and location with a handed-over ticket. Each side decides for its own outbound direction.

Default: falseread-only
peerSharesIdentitybooleanoptioneel

ADR 1116: the same switch for the ACCEPTING side of a local link (one row serves both tenants). Unused on remote links, where each side owns its own row.

Default: falseread-only
locationMapobject[]optioneel

ADR 1116: the counterpart's location key → one of OUR addresses on `partyId`. Only meaningful on the side that owns `partyId`.

max. 500 itemsread-only
peerLocationKeystringvereist
1–128 tekens
partyAddressIdstringvereist
1–64 tekens
seenPeerLocationsobject[]optioneel

ADR 1116: locations the counterpart has reported, with the address they resolved to (null = unresolved). Technical — written by the inbound path, read by the mapping UI.

max. 500 itemsread-only
keystringvereist
max. 128 tekens
namestringoptioneel
max. 200 tekensnullable
streetstringoptioneel
max. 200 tekensnullable
postalCodestringoptioneel
max. 20 tekensnullable
citystringoptioneel
max. 100 tekensnullable
countryCodestringoptioneel
max. 8 tekensnullable
resolvedAddressIdstringoptioneel
max. 64 tekensnullable
lastSeenAtdatetimeoptioneel
acceptedAtdatetimeoptioneel
read-onlynullable
acceptedBystringoptioneel
read-onlynullable
revokedAtdatetimeoptioneel
read-onlynullable
revokedBystringoptioneel
read-onlynullable

Standaard-endpoints

Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:

  • GET /api/v1/tenant_links — Lijst, gepagineerd + filterbaar
  • GET /api/v1/tenant_links/<id> — Enkele entity
  • POST /api/v1/tenant_links — Aanmaken
  • PATCH /api/v1/tenant_links/<id> — Gedeeltelijke update
  • DELETE /api/v1/tenant_links/<id> — Soft-delete
  • GET /api/v1/tenant_links/<id>/timeline — Audit + activiteiten

Zoeken