Reolink · Capability

Reolink Camera HTTP API — Encoding

Reolink Camera HTTP API — Encoding. 2 operations. Lead operation: Get encoding settings. Self-contained Naftiko capability covering one Reolink business surface.

Run with Naftiko ReolinkEncoding

What You Can Do

POST
Getenc — Get encoding settings
/v1/cgi-bin/api-cgi-cmd-getenc-token-token
POST
Setenc — Set encoding settings
/v1/cgi-bin/api-cgi-cmd-setenc-token-token

MCP Tools

get-encoding-settings

Get encoding settings

read-only
set-encoding-settings

Set encoding settings

Capability Spec

camera-encoding.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Reolink Camera HTTP API — Encoding
  description: 'Reolink Camera HTTP API — Encoding. 2 operations. Lead operation: Get encoding settings. Self-contained Naftiko
    capability covering one Reolink business surface.'
  tags:
  - Reolink
  - Encoding
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    REOLINK_API_KEY: REOLINK_API_KEY
capability:
  consumes:
  - type: http
    namespace: camera-encoding
    baseUri: https://{camera_ip}
    description: Reolink Camera HTTP API — Encoding business capability. Self-contained, no shared references.
    resources:
    - name: cgi-bin-api.cgi?cmd=GetEnc&token={token}
      path: /cgi-bin/api.cgi?cmd=GetEnc&token={token}
      operations:
      - name: getenc
        method: POST
        description: Get encoding settings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: cgi-bin-api.cgi?cmd=SetEnc&token={token}
      path: /cgi-bin/api.cgi?cmd=SetEnc&token={token}
      operations:
      - name: setenc
        method: POST
        description: Set encoding settings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: token
      value: '{{env.REOLINK_API_KEY}}'
      placement: query
  exposes:
  - type: rest
    namespace: camera-encoding-rest
    port: 8080
    description: REST adapter for Reolink Camera HTTP API — Encoding. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/cgi-bin/api-cgi-cmd-getenc-token-token
      name: cgi-bin-api-cgi-cmd-getenc-token-token
      description: REST surface for cgi-bin-api.cgi?cmd=GetEnc&token={token}.
      operations:
      - method: POST
        name: getenc
        description: Get encoding settings
        call: camera-encoding.getenc
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/cgi-bin/api-cgi-cmd-setenc-token-token
      name: cgi-bin-api-cgi-cmd-setenc-token-token
      description: REST surface for cgi-bin-api.cgi?cmd=SetEnc&token={token}.
      operations:
      - method: POST
        name: setenc
        description: Set encoding settings
        call: camera-encoding.setenc
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: camera-encoding-mcp
    port: 9090
    transport: http
    description: MCP adapter for Reolink Camera HTTP API — Encoding. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-encoding-settings
      description: Get encoding settings
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: camera-encoding.getenc
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: set-encoding-settings
      description: Set encoding settings
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: camera-encoding.setenc
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.