Skip to content
Chatto v0.5.0

AdminInvitationCodeService

Chatto exposes this service below /api/connect.

Shared message and enum definitions are documented in Shared Types And Enums.

Issues and manages registration codes. user.invite permits access to own codes. Effective user.manage-invites permits access to all codes and requires privileged mode for human sessions. External systems can issue codes with an authorized API credential.

Lists visible current and historical codes. Pagination and totals include only visible codes.

POST /api/connect/chatto.admin.v1.AdminInvitationCodeService/ListInvitationCodes

Lists codes newest first, with ID as the tie-breaker.

FieldTypeDescription
pagechatto.api.v1.PageRequestDefault limit: 20. Maximum: 100.

No message description provided.

FieldTypeDescription
invitation_codesrepeated InvitationCodeNo field description provided.
pagechatto.api.v1.PageInfoNo field description provided.

Reads a code by ID. Returns NOT_FOUND for an unknown or inaccessible ID.

POST /api/connect/chatto.admin.v1.AdminInvitationCodeService/GetInvitationCode

No message description provided.

FieldTypeDescription
idstringNo field description provided.

No message description provided.

FieldTypeDescription
invitation_codeInvitationCodeNo field description provided.

Creates a code that expires seven days after creation for every caller. Not idempotent: retrying creates another code.

POST /api/connect/chatto.admin.v1.AdminInvitationCodeService/CreateInvitationCode

Creates one single-use code. The server sets expiry to seven days after creation.

FieldTypeDescription
notestringOptional plain-text note, up to 250 Unicode characters. Surrounding whitespace is removed. Visible to the creator and invitation managers; it does not bind the code to a recipient.

No message description provided.

FieldTypeDescription
invitation_codeInvitationCodeNo field description provided.

Revokes a code without deleting its history. Repeating revocation is safe. Returns NOT_FOUND for an unknown or inaccessible ID.

POST /api/connect/chatto.admin.v1.AdminInvitationCodeService/RevokeInvitationCode

No message description provided.

FieldTypeDescription
idstringNo field description provided.

No message description provided.

FieldTypeDescription
invitation_codeInvitationCodeNo field description provided.