Spot · Capability

Spot Administration API — Users

Spot Administration API — Users. 6 operations. Lead operation: Spot List Organization Users. Self-contained Naftiko capability covering one Spot business surface.

Run with Naftiko SpotUsers

What You Can Do

GET
Listorganizationusers — Spot List Organization Users
/v1/setup/organization/{organizationid}/user
POST
Createuser — Spot Create User
/v1/setup/user
POST
Createprogrammaticuser — Spot Create Programmatic User
/v1/setup/user/programmatic
GET
Getuser — Spot Get User Details
/v1/setup/user/{userid}
PUT
Updateuserpermissions — Spot Update User Permissions
/v1/setup/user/{userid}
DELETE
Deleteuser — Spot Delete User
/v1/setup/user/{userid}

MCP Tools

spot-list-organization-users

Spot List Organization Users

read-only idempotent
spot-create-user

Spot Create User

spot-create-programmatic-user

Spot Create Programmatic User

spot-get-user-details

Spot Get User Details

read-only idempotent
spot-update-user-permissions

Spot Update User Permissions

idempotent
spot-delete-user

Spot Delete User

idempotent

Capability Spec

administration-users.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Spot Administration API — Users
  description: 'Spot Administration API — Users. 6 operations. Lead operation: Spot List Organization Users. Self-contained
    Naftiko capability covering one Spot business surface.'
  tags:
  - Spot
  - Users
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SPOT_API_KEY: SPOT_API_KEY
capability:
  consumes:
  - type: http
    namespace: administration-users
    baseUri: https://api.spotinst.io
    description: Spot Administration API — Users business capability. Self-contained, no shared references.
    resources:
    - name: setup-organization-organizationId-user
      path: /setup/organization/{organizationId}/user
      operations:
      - name: listorganizationusers
        method: GET
        description: Spot List Organization Users
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: organizationId
          in: path
          type: string
          required: true
    - name: setup-user
      path: /setup/user
      operations:
      - name: createuser
        method: POST
        description: Spot Create User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: setup-user-programmatic
      path: /setup/user/programmatic
      operations:
      - name: createprogrammaticuser
        method: POST
        description: Spot Create Programmatic User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: setup-user-userId
      path: /setup/user/{userId}
      operations:
      - name: getuser
        method: GET
        description: Spot Get User Details
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: userId
          in: path
          type: string
          required: true
      - name: updateuserpermissions
        method: PUT
        description: Spot Update User Permissions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: userId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteuser
        method: DELETE
        description: Spot Delete User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: userId
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.SPOT_API_KEY}}'
  exposes:
  - type: rest
    namespace: administration-users-rest
    port: 8080
    description: REST adapter for Spot Administration API — Users. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/setup/organization/{organizationid}/user
      name: setup-organization-organizationid-user
      description: REST surface for setup-organization-organizationId-user.
      operations:
      - method: GET
        name: listorganizationusers
        description: Spot List Organization Users
        call: administration-users.listorganizationusers
        with:
          organizationId: rest.organizationId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/setup/user
      name: setup-user
      description: REST surface for setup-user.
      operations:
      - method: POST
        name: createuser
        description: Spot Create User
        call: administration-users.createuser
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/setup/user/programmatic
      name: setup-user-programmatic
      description: REST surface for setup-user-programmatic.
      operations:
      - method: POST
        name: createprogrammaticuser
        description: Spot Create Programmatic User
        call: administration-users.createprogrammaticuser
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/setup/user/{userid}
      name: setup-user-userid
      description: REST surface for setup-user-userId.
      operations:
      - method: GET
        name: getuser
        description: Spot Get User Details
        call: administration-users.getuser
        with:
          userId: rest.userId
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateuserpermissions
        description: Spot Update User Permissions
        call: administration-users.updateuserpermissions
        with:
          userId: rest.userId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteuser
        description: Spot Delete User
        call: administration-users.deleteuser
        with:
          userId: rest.userId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: administration-users-mcp
    port: 9090
    transport: http
    description: MCP adapter for Spot Administration API — Users. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: spot-list-organization-users
      description: Spot List Organization Users
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: administration-users.listorganizationusers
      with:
        organizationId: tools.organizationId
      outputParameters:
      - type: object
        mapping: $.
    - name: spot-create-user
      description: Spot Create User
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: administration-users.createuser
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: spot-create-programmatic-user
      description: Spot Create Programmatic User
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: administration-users.createprogrammaticuser
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: spot-get-user-details
      description: Spot Get User Details
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: administration-users.getuser
      with:
        userId: tools.userId
      outputParameters:
      - type: object
        mapping: $.
    - name: spot-update-user-permissions
      description: Spot Update User Permissions
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: administration-users.updateuserpermissions
      with:
        userId: tools.userId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: spot-delete-user
      description: Spot Delete User
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: administration-users.deleteuser
      with:
        userId: tools.userId
      outputParameters:
      - type: object
        mapping: $.