API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console
Entity · tenant_links

Tenant Link Schema

Schema ID
tenant_link
Collection
tenant_links
Permissions
  • Readtenant_link_view
  • Createtenant_link_manage
  • Edittenant_link_manage
  • Deletetenant_link_manage

Fields

Tenant Link Schema

tenant_links4 permissions

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

labelstringoptional

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

max 120 charactersnullable
peerKindstringrequired

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

localremote
read-only
baseUrlstringoptional

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

max 500 charactersnullable
peerInstallationIdstringoptional

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

max 200 charactersread-onlynullable
peerTenantIdstringoptional

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

read-onlynullable
invitationCodestringoptional

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

read-onlynullable
invitationExpiresAtdatetimeoptional

After this instant the code no longer redeems.

read-onlynullable
statusstringrequired
pendingacceptedrevoked
Default: "pending"read-only
revokedSidestringoptional

Which side ended it. Both sides may revoke.

initiatorpeer
read-onlynullable
rolesobjectoptional
nullable
mspTenantIdstringoptional
nullable
customerTenantIdstringoptional
nullable
partyIduuidoptional

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

nullable
protocolVersionintegeroptional

Negotiated major version, min(local, peer).

≥ 1Default: 1read-only
capabilitiesobjectoptional

What the PEER may do here. Server-enforced.

read-only
createTicketbooleanoptional
Default: false
commentbooleanoptional
Default: true
changeStatusbooleanoptional
Default: true
changePrioritybooleanoptional
Default: true
requestReturnbooleanoptional
Default: true
peerCapabilitiesobjectoptional

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

read-onlynullable
createTicketbooleanoptional
commentbooleanoptional
changeStatusbooleanoptional
changePrioritybooleanoptional
requestReturnbooleanoptional
inboundKeyIdstringoptional

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

read-onlynullable
inboundSecretEncobjectoptional

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

read-onlynullable
__encryptedbooleanoptional
vintegeroptional
ivstringoptional
tagstringoptional
ciphertextstringoptional
inboundSecretRotatedAtdatetimeoptional
read-onlynullable
outboundKeyIdstringoptional

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

read-onlynullable
outboundSecretEncobjectoptional

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

read-onlynullable
__encryptedbooleanoptional
vintegeroptional
ivstringoptional
tagstringoptional
ciphertextstringoptional
outboundSecretRotatedAtdatetimeoptional
read-onlynullable
exchangeobjectoptional

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

nullable
sharesIdentitybooleanoptional

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
peerSharesIdentitybooleanoptional

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[]optional

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
peerLocationKeystringrequired
1–128 characters
partyAddressIdstringrequired
1–64 characters
seenPeerLocationsobject[]optional

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
keystringrequired
max 128 characters
namestringoptional
max 200 charactersnullable
streetstringoptional
max 200 charactersnullable
postalCodestringoptional
max 20 charactersnullable
citystringoptional
max 100 charactersnullable
countryCodestringoptional
max 8 charactersnullable
resolvedAddressIdstringoptional
max 64 charactersnullable
lastSeenAtdatetimeoptional
acceptedAtdatetimeoptional
read-onlynullable
acceptedBystringoptional
read-onlynullable
revokedAtdatetimeoptional
read-onlynullable
revokedBystringoptional
read-onlynullable

Standard endpoints

This resource follows the platform's generic CRUD contract. Read the conventions for pagination, idempotency, optimistic locking and audit. The most important endpoints:

  • GET /api/v1/tenant_links — List, paginated + filterable
  • GET /api/v1/tenant_links/<id> — Single entity
  • POST /api/v1/tenant_links — Create
  • PATCH /api/v1/tenant_links/<id> — Partial update
  • DELETE /api/v1/tenant_links/<id> — Soft delete
  • GET /api/v1/tenant_links/<id>/timeline — Audit + activities

Search