Label Studio · Capability

API Reference — subpackage_organizations

API Reference — subpackage_organizations. 5 operations. Lead operation: Reset organization token. Self-contained Naftiko capability covering one Label Studio business surface.

Run with Naftiko Label Studiosubpackage_organizations

What You Can Do

POST
Resettoken — Reset organization token
/v1/api/invite/reset-token
GET
List — List your organizations
/v1/api/organizations
GET
Get — Get organization settings
/v1/api/organizations/{id}
PATCH
Update — ✨ Update organization
/v1/api/organizations/{id}
PATCH
Updatedefaultrole — ✨ Update default role
/v1/api/organizations/{id}/set-default-role

MCP Tools

reset-organization-token

Reset organization token

list-your-organizations

List your organizations

read-only idempotent
get-organization-settings

Get organization settings

read-only idempotent
update-organization

✨ Update organization

idempotent
update-default-role

✨ Update default role

idempotent

Capability Spec

label-studio-subpackage-organizations.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: API Reference — subpackage_organizations
  description: 'API Reference — subpackage_organizations. 5 operations. Lead operation: Reset organization token. Self-contained
    Naftiko capability covering one Label Studio business surface.'
  tags:
  - Label Studio
  - subpackage_organizations
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    LABEL_STUDIO_API_KEY: LABEL_STUDIO_API_KEY
capability:
  consumes:
  - type: http
    namespace: label-studio-subpackage-organizations
    baseUri: http://localhost:8000
    description: API Reference — subpackage_organizations business capability. Self-contained, no shared references.
    resources:
    - name: api-invite-reset-token
      path: /api/invite/reset-token
      operations:
      - name: resettoken
        method: POST
        description: Reset organization token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
          description: 'The token (or API key) must be passed as a request header. You can find your user token on the User
            Account page in Label Studio. Example: <br><pre><code class='
          required: true
    - name: api-organizations
      path: /api/organizations/
      operations:
      - name: list
        method: GET
        description: List your organizations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ordering
          in: query
          type: string
          description: Which field to use when ordering the results.
        - name: Authorization
          in: header
          type: string
          description: 'The token (or API key) must be passed as a request header. You can find your user token on the User
            Account page in Label Studio. Example: <br><pre><code class='
          required: true
    - name: api-organizations-id
      path: /api/organizations/{id}
      operations:
      - name: get
        method: GET
        description: Get organization settings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          required: true
        - name: Authorization
          in: header
          type: string
          description: 'The token (or API key) must be passed as a request header. You can find your user token on the User
            Account page in Label Studio. Example: <br><pre><code class='
          required: true
      - name: update
        method: PATCH
        description: ✨ Update organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          required: true
        - name: Authorization
          in: header
          type: string
          description: 'The token (or API key) must be passed as a request header. You can find your user token on the User
            Account page in Label Studio. Example: <br><pre><code class='
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-organizations-id-set-default-role
      path: /api/organizations/{id}/set-default-role
      operations:
      - name: updatedefaultrole
        method: PATCH
        description: ✨ Update default role
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          required: true
        - name: Authorization
          in: header
          type: string
          description: 'The token (or API key) must be passed as a request header. You can find your user token on the User
            Account page in Label Studio. Example: <br><pre><code class='
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.LABEL_STUDIO_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: label-studio-subpackage-organizations-rest
    port: 8080
    description: REST adapter for API Reference — subpackage_organizations. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/invite/reset-token
      name: api-invite-reset-token
      description: REST surface for api-invite-reset-token.
      operations:
      - method: POST
        name: resettoken
        description: Reset organization token
        call: label-studio-subpackage-organizations.resettoken
        with:
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/organizations
      name: api-organizations
      description: REST surface for api-organizations.
      operations:
      - method: GET
        name: list
        description: List your organizations
        call: label-studio-subpackage-organizations.list
        with:
          ordering: rest.ordering
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/organizations/{id}
      name: api-organizations-id
      description: REST surface for api-organizations-id.
      operations:
      - method: GET
        name: get
        description: Get organization settings
        call: label-studio-subpackage-organizations.get
        with:
          id: rest.id
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: update
        description: ✨ Update organization
        call: label-studio-subpackage-organizations.update
        with:
          id: rest.id
          Authorization: rest.Authorization
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/organizations/{id}/set-default-role
      name: api-organizations-id-set-default-role
      description: REST surface for api-organizations-id-set-default-role.
      operations:
      - method: PATCH
        name: updatedefaultrole
        description: ✨ Update default role
        call: label-studio-subpackage-organizations.updatedefaultrole
        with:
          id: rest.id
          Authorization: rest.Authorization
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: label-studio-subpackage-organizations-mcp
    port: 9090
    transport: http
    description: MCP adapter for API Reference — subpackage_organizations. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: reset-organization-token
      description: Reset organization token
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: label-studio-subpackage-organizations.resettoken
      with:
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.
    - name: list-your-organizations
      description: List your organizations
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: label-studio-subpackage-organizations.list
      with:
        ordering: tools.ordering
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.
    - name: get-organization-settings
      description: Get organization settings
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: label-studio-subpackage-organizations.get
      with:
        id: tools.id
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.
    - name: update-organization
      description: ✨ Update organization
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: label-studio-subpackage-organizations.update
      with:
        id: tools.id
        Authorization: tools.Authorization
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: update-default-role
      description: ✨ Update default role
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: label-studio-subpackage-organizations.updatedefaultrole
      with:
        id: tools.id
        Authorization: tools.Authorization
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.