Zesty · Capability

Zesty Accounts API

The Zesty.io Accounts API is used to manage users, roles, instances, teams, tokens, ecosystems, webhooks, and apps. It provides administrative control over the organizational structure of a Zesty.io account. All endpoints require authentication via a session token obtained from the Auth API.

Run with Naftiko ZestyAPI

What You Can Do

GET
Getinstances — Zesty List all instances
/instances
POST
Createinstance — Zesty Create a new instance
/instances
GET
Getinstance — Zesty Get an instance
/instances/{instanceZUID}
PUT
Updateinstance — Zesty Update an instance
/instances/{instanceZUID}
DELETE
Deleteinstance — Zesty Delete an instance
/instances/{instanceZUID}
GET
Getusers — Zesty List all users
/users
GET
Getuser — Zesty Get a user
/users/{userZUID}
PUT
Updateuser — Zesty Update a user
/users/{userZUID}
DELETE
Deleteuser — Zesty Delete a user
/users/{userZUID}
GET
Getroles — Zesty List all roles
/roles
POST
Createrole — Zesty Create a new role
/roles
GET
Getrole — Zesty Get a role
/roles/{roleZUID}
PUT
Updaterole — Zesty Update a role
/roles/{roleZUID}
DELETE
Deleterole — Zesty Delete a role
/roles/{roleZUID}
GET
Getteams — Zesty List all teams
/teams
POST
Createteam — Zesty Create a new team
/teams
GET
Getteam — Zesty Get a team
/teams/{teamZUID}
PUT
Updateteam — Zesty Update a team
/teams/{teamZUID}
DELETE
Deleteteam — Zesty Delete a team
/teams/{teamZUID}
GET
Gettokens — Zesty List all access tokens
/tokens
POST
Createtoken — Zesty Create an access token
/tokens
GET
Gettoken — Zesty Get an access token
/tokens/{tokenZUID}
DELETE
Deletetoken — Zesty Delete an access token
/tokens/{tokenZUID}
GET
Getapps — Zesty List all apps
/apps
GET
Getwebhooks — Zesty List all webhooks
/webhooks
POST
Createwebhook — Zesty Create a webhook
/webhooks

MCP Tools

getinstances

Zesty List all instances

read-only idempotent
createinstance

Zesty Create a new instance

getinstance

Zesty Get an instance

read-only idempotent
updateinstance

Zesty Update an instance

idempotent
deleteinstance

Zesty Delete an instance

idempotent
getusers

Zesty List all users

read-only idempotent
getuser

Zesty Get a user

read-only idempotent
updateuser

Zesty Update a user

idempotent
deleteuser

Zesty Delete a user

idempotent
getroles

Zesty List all roles

read-only idempotent
createrole

Zesty Create a new role

getrole

Zesty Get a role

read-only idempotent
updaterole

Zesty Update a role

idempotent
deleterole

Zesty Delete a role

idempotent
getteams

Zesty List all teams

read-only idempotent
createteam

Zesty Create a new team

getteam

Zesty Get a team

read-only idempotent
updateteam

Zesty Update a team

idempotent
deleteteam

Zesty Delete a team

idempotent
gettokens

Zesty List all access tokens

read-only idempotent
createtoken

Zesty Create an access token

gettoken

Zesty Get an access token

read-only idempotent
deletetoken

Zesty Delete an access token

idempotent
getapps

Zesty List all apps

read-only idempotent
getwebhooks

Zesty List all webhooks

read-only idempotent
createwebhook

Zesty Create a webhook

Capability Spec

zesty-capability.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Zesty Accounts API
  description: The Zesty.io Accounts API is used to manage users, roles, instances, teams, tokens, ecosystems, webhooks, and
    apps. It provides administrative control over the organizational structure of a Zesty.io account. All endpoints require
    authentication via a session token obtained from the Auth API.
  tags:
  - Zesty
  - API
  created: '2026-05-06'
  modified: '2026-05-06'
capability:
  consumes:
  - type: http
    namespace: zesty
    baseUri: https://accounts.api.zesty.io/v1
    description: Zesty Accounts API HTTP API.
    authentication:
      type: apikey
      in: header
      name: Authorization
      value: '{{ZESTY_TOKEN}}'
    resources:
    - name: instances
      path: /instances
      operations:
      - name: getinstances
        method: GET
        description: Zesty List all instances
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createinstance
        method: POST
        description: Zesty Create a new instance
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: instances-instancezuid
      path: /instances/{instanceZUID}
      operations:
      - name: getinstance
        method: GET
        description: Zesty Get an instance
        inputParameters:
        - name: instanceZUID
          in: path
          type: string
          required: true
          description: The ZUID of the instance.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateinstance
        method: PUT
        description: Zesty Update an instance
        inputParameters:
        - name: instanceZUID
          in: path
          type: string
          required: true
          description: The ZUID of the instance.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: deleteinstance
        method: DELETE
        description: Zesty Delete an instance
        inputParameters:
        - name: instanceZUID
          in: path
          type: string
          required: true
          description: The ZUID of the instance.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: users
      path: /users
      operations:
      - name: getusers
        method: GET
        description: Zesty List all users
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: users-userzuid
      path: /users/{userZUID}
      operations:
      - name: getuser
        method: GET
        description: Zesty Get a user
        inputParameters:
        - name: userZUID
          in: path
          type: string
          required: true
          description: The ZUID of the user.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateuser
        method: PUT
        description: Zesty Update a user
        inputParameters:
        - name: userZUID
          in: path
          type: string
          required: true
          description: The ZUID of the user.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: deleteuser
        method: DELETE
        description: Zesty Delete a user
        inputParameters:
        - name: userZUID
          in: path
          type: string
          required: true
          description: The ZUID of the user.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: roles
      path: /roles
      operations:
      - name: getroles
        method: GET
        description: Zesty List all roles
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createrole
        method: POST
        description: Zesty Create a new role
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: roles-rolezuid
      path: /roles/{roleZUID}
      operations:
      - name: getrole
        method: GET
        description: Zesty Get a role
        inputParameters:
        - name: roleZUID
          in: path
          type: string
          required: true
          description: The ZUID of the role.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updaterole
        method: PUT
        description: Zesty Update a role
        inputParameters:
        - name: roleZUID
          in: path
          type: string
          required: true
          description: The ZUID of the role.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: deleterole
        method: DELETE
        description: Zesty Delete a role
        inputParameters:
        - name: roleZUID
          in: path
          type: string
          required: true
          description: The ZUID of the role.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: teams
      path: /teams
      operations:
      - name: getteams
        method: GET
        description: Zesty List all teams
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createteam
        method: POST
        description: Zesty Create a new team
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: teams-teamzuid
      path: /teams/{teamZUID}
      operations:
      - name: getteam
        method: GET
        description: Zesty Get a team
        inputParameters:
        - name: teamZUID
          in: path
          type: string
          required: true
          description: The ZUID of the team.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateteam
        method: PUT
        description: Zesty Update a team
        inputParameters:
        - name: teamZUID
          in: path
          type: string
          required: true
          description: The ZUID of the team.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: deleteteam
        method: DELETE
        description: Zesty Delete a team
        inputParameters:
        - name: teamZUID
          in: path
          type: string
          required: true
          description: The ZUID of the team.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: tokens
      path: /tokens
      operations:
      - name: gettokens
        method: GET
        description: Zesty List all access tokens
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createtoken
        method: POST
        description: Zesty Create an access token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: tokens-tokenzuid
      path: /tokens/{tokenZUID}
      operations:
      - name: gettoken
        method: GET
        description: Zesty Get an access token
        inputParameters:
        - name: tokenZUID
          in: path
          type: string
          required: true
          description: The ZUID of the token.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: deletetoken
        method: DELETE
        description: Zesty Delete an access token
        inputParameters:
        - name: tokenZUID
          in: path
          type: string
          required: true
          description: The ZUID of the token.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: apps
      path: /apps
      operations:
      - name: getapps
        method: GET
        description: Zesty List all apps
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: webhooks
      path: /webhooks
      operations:
      - name: getwebhooks
        method: GET
        description: Zesty List all webhooks
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createwebhook
        method: POST
        description: Zesty Create a webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    port: 8080
    namespace: zesty-rest
    description: REST adapter for Zesty Accounts API.
    resources:
    - path: /instances
      name: getinstances
      operations:
      - method: GET
        name: getinstances
        description: Zesty List all instances
        call: zesty.getinstances
        outputParameters:
        - type: object
          mapping: $.
    - path: /instances
      name: createinstance
      operations:
      - method: POST
        name: createinstance
        description: Zesty Create a new instance
        call: zesty.createinstance
        outputParameters:
        - type: object
          mapping: $.
    - path: /instances/{instanceZUID}
      name: getinstance
      operations:
      - method: GET
        name: getinstance
        description: Zesty Get an instance
        call: zesty.getinstance
        with:
          instanceZUID: rest.instanceZUID
        outputParameters:
        - type: object
          mapping: $.
    - path: /instances/{instanceZUID}
      name: updateinstance
      operations:
      - method: PUT
        name: updateinstance
        description: Zesty Update an instance
        call: zesty.updateinstance
        with:
          instanceZUID: rest.instanceZUID
        outputParameters:
        - type: object
          mapping: $.
    - path: /instances/{instanceZUID}
      name: deleteinstance
      operations:
      - method: DELETE
        name: deleteinstance
        description: Zesty Delete an instance
        call: zesty.deleteinstance
        with:
          instanceZUID: rest.instanceZUID
        outputParameters:
        - type: object
          mapping: $.
    - path: /users
      name: getusers
      operations:
      - method: GET
        name: getusers
        description: Zesty List all users
        call: zesty.getusers
        outputParameters:
        - type: object
          mapping: $.
    - path: /users/{userZUID}
      name: getuser
      operations:
      - method: GET
        name: getuser
        description: Zesty Get a user
        call: zesty.getuser
        with:
          userZUID: rest.userZUID
        outputParameters:
        - type: object
          mapping: $.
    - path: /users/{userZUID}
      name: updateuser
      operations:
      - method: PUT
        name: updateuser
        description: Zesty Update a user
        call: zesty.updateuser
        with:
          userZUID: rest.userZUID
        outputParameters:
        - type: object
          mapping: $.
    - path: /users/{userZUID}
      name: deleteuser
      operations:
      - method: DELETE
        name: deleteuser
        description: Zesty Delete a user
        call: zesty.deleteuser
        with:
          userZUID: rest.userZUID
        outputParameters:
        - type: object
          mapping: $.
    - path: /roles
      name: getroles
      operations:
      - method: GET
        name: getroles
        description: Zesty List all roles
        call: zesty.getroles
        outputParameters:
        - type: object
          mapping: $.
    - path: /roles
      name: createrole
      operations:
      - method: POST
        name: createrole
        description: Zesty Create a new role
        call: zesty.createrole
        outputParameters:
        - type: object
          mapping: $.
    - path: /roles/{roleZUID}
      name: getrole
      operations:
      - method: GET
        name: getrole
        description: Zesty Get a role
        call: zesty.getrole
        with:
          roleZUID: rest.roleZUID
        outputParameters:
        - type: object
          mapping: $.
    - path: /roles/{roleZUID}
      name: updaterole
      operations:
      - method: PUT
        name: updaterole
        description: Zesty Update a role
        call: zesty.updaterole
        with:
          roleZUID: rest.roleZUID
        outputParameters:
        - type: object
          mapping: $.
    - path: /roles/{roleZUID}
      name: deleterole
      operations:
      - method: DELETE
        name: deleterole
        description: Zesty Delete a role
        call: zesty.deleterole
        with:
          roleZUID: rest.roleZUID
        outputParameters:
        - type: object
          mapping: $.
    - path: /teams
      name: getteams
      operations:
      - method: GET
        name: getteams
        description: Zesty List all teams
        call: zesty.getteams
        outputParameters:
        - type: object
          mapping: $.
    - path: /teams
      name: createteam
      operations:
      - method: POST
        name: createteam
        description: Zesty Create a new team
        call: zesty.createteam
        outputParameters:
        - type: object
          mapping: $.
    - path: /teams/{teamZUID}
      name: getteam
      operations:
      - method: GET
        name: getteam
        description: Zesty Get a team
        call: zesty.getteam
        with:
          teamZUID: rest.teamZUID
        outputParameters:
        - type: object
          mapping: $.
    - path: /teams/{teamZUID}
      name: updateteam
      operations:
      - method: PUT
        name: updateteam
        description: Zesty Update a team
        call: zesty.updateteam
        with:
          teamZUID: rest.teamZUID
        outputParameters:
        - type: object
          mapping: $.
    - path: /teams/{teamZUID}
      name: deleteteam
      operations:
      - method: DELETE
        name: deleteteam
        description: Zesty Delete a team
        call: zesty.deleteteam
        with:
          teamZUID: rest.teamZUID
        outputParameters:
        - type: object
          mapping: $.
    - path: /tokens
      name: gettokens
      operations:
      - method: GET
        name: gettokens
        description: Zesty List all access tokens
        call: zesty.gettokens
        outputParameters:
        - type: object
          mapping: $.
    - path: /tokens
      name: createtoken
      operations:
      - method: POST
        name: createtoken
        description: Zesty Create an access token
        call: zesty.createtoken
        outputParameters:
        - type: object
          mapping: $.
    - path: /tokens/{tokenZUID}
      name: gettoken
      operations:
      - method: GET
        name: gettoken
        description: Zesty Get an access token
        call: zesty.gettoken
        with:
          tokenZUID: rest.tokenZUID
        outputParameters:
        - type: object
          mapping: $.
    - path: /tokens/{tokenZUID}
      name: deletetoken
      operations:
      - method: DELETE
        name: deletetoken
        description: Zesty Delete an access token
        call: zesty.deletetoken
        with:
          tokenZUID: rest.tokenZUID
        outputParameters:
        - type: object
          mapping: $.
    - path: /apps
      name: getapps
      operations:
      - method: GET
        name: getapps
        description: Zesty List all apps
        call: zesty.getapps
        outputParameters:
        - type: object
          mapping: $.
    - path: /webhooks
      name: getwebhooks
      operations:
      - method: GET
        name: getwebhooks
        description: Zesty List all webhooks
        call: zesty.getwebhooks
        outputParameters:
        - type: object
          mapping: $.
    - path: /webhooks
      name: createwebhook
      operations:
      - method: POST
        name: createwebhook
        description: Zesty Create a webhook
        call: zesty.createwebhook
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    port: 9090
    namespace: zesty-mcp
    transport: http
    description: MCP adapter for Zesty Accounts API for AI agent use.
    tools:
    - name: getinstances
      description: Zesty List all instances
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: zesty.getinstances
      outputParameters:
      - type: object
        mapping: $.
    - name: createinstance
      description: Zesty Create a new instance
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: zesty.createinstance
      outputParameters:
      - type: object
        mapping: $.
    - name: getinstance
      description: Zesty Get an instance
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: zesty.getinstance
      with:
        instanceZUID: tools.instanceZUID
      inputParameters:
      - name: instanceZUID
        type: string
        description: The ZUID of the instance.
        required: true
      outputParameters:
      - type: object
        mapping: $.
    - name: updateinstance
      description: Zesty Update an instance
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: zesty.updateinstance
      with:
        instanceZUID: tools.instanceZUID
      inputParameters:
      - name: instanceZUID
        type: string
        description: The ZUID of the instance.
        required: true
      outputParameters:
      - type: object
        mapping: $.
    - name: deleteinstance
      description: Zesty Delete an instance
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: zesty.deleteinstance
      with:
        instanceZUID: tools.instanceZUID
      inputParameters:
      - name: instanceZUID
        type: string
        description: The ZUID of the instance.
        required: true
      outputParameters:
      - type: object
        mapping: $.
    - name: getusers
      description: Zesty List all users
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: zesty.getusers
      outputParameters:
      - type: object
        mapping: $.
    - name: getuser
      description: Zesty Get a user
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: zesty.getuser
      with:
        userZUID: tools.userZUID
      inputParameters:
      - name: userZUID
        type: string
        description: The ZUID of the user.
        required: true
      outputParameters:
      - type: object
        mapping: $.
    - name: updateuser
      description: Zesty Update a user
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: zesty.updateuser
      with:
        userZUID: tools.userZUID
      inputParameters:
      - name: userZUID
        type: string
        description: The ZUID of the user.
        required: true
      outputParameters:
      - type: object
        mapping: $.
    - name: deleteuser
      description: Zesty Delete a user
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: zesty.deleteuser
      with:
        userZUID: tools.userZUID
      inputParameters:
      - name: userZUID
        type: string
        description: The ZUID of the user.
        required: true
      outputParameters:
      - type: object
        mapping: $.
    - name: getroles
      description: Zesty List all roles
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: zesty.getroles
      outputParameters:
      - type: object
        mapping: $.
    - name: createrole
      description: Zesty Create a new role
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: zesty.createrole
      outputParameters:
      - type: object
        mapping: $.
    - name: getrole
      description: Zesty Get a role
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: zesty.getrole
      with:
        roleZUID: tools.roleZUID
      inputParameters:
      - name: roleZUID
        type: string
        description: The ZUID of the role.
        required: true
      outputParameters:
      - type: object
        mapping: $.
    - name: updaterole
      description: Zesty Update a role
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: zesty.updaterole
      with:
        roleZUID: tools.roleZUID
      inputParameters:
      - name: roleZUID
        type: string
        description: The ZUID of the role.
        required: true
      outputParameters:
      - type: object
        mapping: $.
    - name: deleterole
      description: Zesty Delete a role
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: zesty.deleterole
      with:
        roleZUID: tools.roleZUID
      inputParameters:
      - name: roleZUID
        type: string
        description: The ZUID of the role.
        required: true
      outputParameters:
      - type: object
        mapping: $.
    - name: getteams
      description: Zesty List all teams
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: zesty.getteams
      outputParameters:
      - type: object
        mapping: $.
    - name: createteam
      description: Zesty Create a new team
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: zesty.createteam
      outputParameters:
      - type: object
        mapping: $.
    - name: getteam
      description: Zesty Get a team
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: zesty.getteam
      with:
        teamZUID: tools.teamZUID
      inputParameters:
      - name: teamZUID
        type: string
        description: The ZUID of the team.
        required: true
      outputParameters:
      - type: object
        mapping: $.
    - name: updateteam
      description: Zesty Update a team
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: zesty.updateteam
      with:
        teamZUID: tools.teamZUID
      inputParameters:
      - name: teamZUID
        type: string
        description: The ZUID of the team.
        required: true
      outputParameters:
      - type: object
        mapping: $.
    - name: deleteteam
      description: Zesty Delete a team
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: zesty.deleteteam
      with:
        teamZUID: tools.teamZUID
      inputParameters:
      - name: teamZUID
        type: string
        description: The ZUID of the team.
        required: true
      outputParameters:
      - type: object
        mapping: $.
    - name: gettokens
      description: Zesty List all access tokens
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: zesty.gettokens
      outputParameters:
      - type: object
        mapping: $.
    - name: createtoken
      description: Zesty Create an access token
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: zesty.createtoken
      outputParameters:
      - type: object
        mapping: $.
    - name: gettoken
      description: Zesty Get an access token
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: zesty.gettoken
      with:
        tokenZUID: tools.tokenZUID
      inputParameters:
      - name: tokenZUID
        type: string
        description: The ZUID of the token.
        required: true
      outputParameters:
      - type: object
        mapping: $.
    - name: deletetoken
      description: Zesty Delete an access token
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: zesty.deletetoken
      with:
        tokenZUID: tools.tokenZUID
      inputParameters:
      - name: tokenZUID
        type: string
        description: The ZUID of the token.
        required: true
      outputParameters:
      - type: object
        mapping: $.
    - name: getapps
      description: Zesty List all apps
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: zesty.getapps
      outputParameters:
      - type: object
        mapping: $.
    - name: getwebhooks
      description: Zesty List all webhooks
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: zesty.getwebhooks
      outputParameters:
      - type: object
        mapping: $.
    - name: createwebhook
      description: Zesty Create a webhook
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: zesty.createwebhook
      outputParameters:
      - type: object
        mapping: $.
binds:
- namespace: env
  keys:
    ZESTY_TOKEN: ZESTY_TOKEN