writ_join_tenant
Join an existing Writ tenant with a team invite code. No API key needed.
Instructions
Join an existing Writ tenant with a team invite code. No API key needed.
This is the join flow: the endpoint is unauthenticated (the caller has no key yet, that is the point) and issues a fresh API key on the invited tenant instead of creating a new one. This tool is not general key issuance: invite_code is required.
Args: email: Contact email for the new key. invite_code: The team's live writ_inv_... code (from writ_tenant_invite, shared by a teammate). tenant_name: Optional display name; only sent when non-empty.
Returns the gate payload verbatim: apiKey, tenantId, plan, monthlyChecks, defaultPolicy, and sponsorToken only when present. Store the apiKey immediately: it is shown once. Joining members receive NO sponsor token; only the first key of a brand-new tenant does. If a sponsorToken IS present, store it too: it is never recoverable and it approves grants and operates the kill switch. The gate rate-limits key issuance to 10 keys per hour per client IP.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"email": "<email>",
"invite_code": "<invite_code>"
},
"name": "writ_join_tenant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | |||
| invite_code | Yes | ||
| tenant_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |