Synapse · Capability

Synapse Admin API — Registration

Synapse Admin API — Registration. 2 operations. Lead operation: List Registration Tokens. Self-contained Naftiko capability covering one Synapse business surface.

Run with Naftiko SynapseRegistration

What You Can Do

GET
Listregistrationtokens — List Registration Tokens
/v1/v1/registration-tokens
POST
Createregistrationtoken — Create Registration Token
/v1/v1/registration-tokens

MCP Tools

list-registration-tokens

List Registration Tokens

read-only idempotent
create-registration-token

Create Registration Token

Capability Spec

admin-registration.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Synapse Admin API — Registration
  description: 'Synapse Admin API — Registration. 2 operations. Lead operation: List Registration Tokens. Self-contained Naftiko
    capability covering one Synapse business surface.'
  tags:
  - Synapse
  - Registration
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SYNAPSE_API_KEY: SYNAPSE_API_KEY
capability:
  consumes:
  - type: http
    namespace: admin-registration
    baseUri: https://matrix.example.com/_synapse/admin
    description: Synapse Admin API — Registration business capability. Self-contained, no shared references.
    resources:
    - name: v1-registration_tokens
      path: /v1/registration_tokens
      operations:
      - name: listregistrationtokens
        method: GET
        description: List Registration Tokens
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: valid
          in: query
          type: boolean
          description: Filter by validity
      - name: createregistrationtoken
        method: POST
        description: Create Registration Token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: bearer
      token: '{{env.SYNAPSE_API_KEY}}'
  exposes:
  - type: rest
    namespace: admin-registration-rest
    port: 8080
    description: REST adapter for Synapse Admin API — Registration. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/v1/registration-tokens
      name: v1-registration-tokens
      description: REST surface for v1-registration_tokens.
      operations:
      - method: GET
        name: listregistrationtokens
        description: List Registration Tokens
        call: admin-registration.listregistrationtokens
        with:
          valid: rest.valid
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createregistrationtoken
        description: Create Registration Token
        call: admin-registration.createregistrationtoken
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: admin-registration-mcp
    port: 9090
    transport: http
    description: MCP adapter for Synapse Admin API — Registration. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-registration-tokens
      description: List Registration Tokens
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: admin-registration.listregistrationtokens
      with:
        valid: tools.valid
      outputParameters:
      - type: object
        mapping: $.
    - name: create-registration-token
      description: Create Registration Token
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: admin-registration.createregistrationtoken
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.