Sorsa · Capability

Sorsa API — Technical Endpoints

Sorsa API — Technical Endpoints. 4 operations. Lead operation: Convert User ID to Username. Self-contained Naftiko capability covering one Sorsa business surface.

Run with Naftiko SorsaTechnical Endpoints

What You Can Do

GET
Get — Convert User ID to Username
/v1/id-to-username/{user-id}
GET
Get — API Key Usage
/v1/key-usage-info
GET
Get — Convert Profile Link to User ID
/v1/link-to-id
GET
Get — Convert Username to User ID
/v1/username-to-id/{user-handle}

MCP Tools

convert-user-id-username

Convert User ID to Username

read-only idempotent
api-key-usage

API Key Usage

read-only idempotent
convert-profile-link-user-id

Convert Profile Link to User ID

read-only idempotent
convert-username-user-id

Convert Username to User ID

read-only idempotent

Capability Spec

sorsa-technical-endpoints.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Sorsa API — Technical Endpoints
  description: 'Sorsa API — Technical Endpoints. 4 operations. Lead operation: Convert User ID to Username. Self-contained
    Naftiko capability covering one Sorsa business surface.'
  tags:
  - Sorsa
  - Technical Endpoints
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SORSA_API_KEY: SORSA_API_KEY
capability:
  consumes:
  - type: http
    namespace: sorsa-technical-endpoints
    baseUri: https://api.sorsa.io/v3
    description: Sorsa API — Technical Endpoints business capability. Self-contained, no shared references.
    resources:
    - name: id-to-username-user_id
      path: /id-to-username/{user_id}
      operations:
      - name: get
        method: GET
        description: Convert User ID to Username
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: user_id
          in: path
          type: string
          description: user_id required
          required: true
    - name: key-usage-info
      path: /key-usage-info
      operations:
      - name: get
        method: GET
        description: API Key Usage
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: link-to-id
      path: /link-to-id
      operations:
      - name: get
        method: GET
        description: Convert Profile Link to User ID
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: link
          in: query
          type: string
          description: link required
          required: true
    - name: username-to-id-user_handle
      path: /username-to-id/{user_handle}
      operations:
      - name: get
        method: GET
        description: Convert Username to User ID
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: user_handle
          in: path
          type: string
          description: user_handle required
          required: true
    authentication:
      type: apikey
      key: ApiKey
      value: '{{env.SORSA_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: sorsa-technical-endpoints-rest
    port: 8080
    description: REST adapter for Sorsa API — Technical Endpoints. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/id-to-username/{user-id}
      name: id-to-username-user-id
      description: REST surface for id-to-username-user_id.
      operations:
      - method: GET
        name: get
        description: Convert User ID to Username
        call: sorsa-technical-endpoints.get
        with:
          user_id: rest.user_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/key-usage-info
      name: key-usage-info
      description: REST surface for key-usage-info.
      operations:
      - method: GET
        name: get
        description: API Key Usage
        call: sorsa-technical-endpoints.get
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/link-to-id
      name: link-to-id
      description: REST surface for link-to-id.
      operations:
      - method: GET
        name: get
        description: Convert Profile Link to User ID
        call: sorsa-technical-endpoints.get
        with:
          link: rest.link
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/username-to-id/{user-handle}
      name: username-to-id-user-handle
      description: REST surface for username-to-id-user_handle.
      operations:
      - method: GET
        name: get
        description: Convert Username to User ID
        call: sorsa-technical-endpoints.get
        with:
          user_handle: rest.user_handle
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: sorsa-technical-endpoints-mcp
    port: 9090
    transport: http
    description: MCP adapter for Sorsa API — Technical Endpoints. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: convert-user-id-username
      description: Convert User ID to Username
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: sorsa-technical-endpoints.get
      with:
        user_id: tools.user_id
      outputParameters:
      - type: object
        mapping: $.
    - name: api-key-usage
      description: API Key Usage
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: sorsa-technical-endpoints.get
      outputParameters:
      - type: object
        mapping: $.
    - name: convert-profile-link-user-id
      description: Convert Profile Link to User ID
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: sorsa-technical-endpoints.get
      with:
        link: tools.link
      outputParameters:
      - type: object
        mapping: $.
    - name: convert-username-user-id
      description: Convert Username to User ID
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: sorsa-technical-endpoints.get
      with:
        user_handle: tools.user_handle
      outputParameters:
      - type: object
        mapping: $.