Label Studio · Capability
API Reference — subpackage_projectTemplates
API Reference — subpackage_projectTemplates. 6 operations. Lead operation: ✨ Get project templates. Self-contained Naftiko capability covering one Label Studio business surface.
What You Can Do
GET
List
— ✨ Get project templates
/v1/api/project-templates
POST
Create
— ✨ Create project template
/v1/api/project-templates
GET
Get
— ✨ Get a project template
/v1/api/project-templates/{id}
DELETE
Delete
— ✨ Delete a project template
/v1/api/project-templates/{id}
PATCH
Update
— ✨ Update a project template
/v1/api/project-templates/{id}
POST
Createprojectfromtemplate
— ✨ Create project from template
/v1/api/project-templates/{id}/create-project
MCP Tools
get-project-templates
✨ Get project templates
read-only
idempotent
create-project-template
✨ Create project template
get-project-template
✨ Get a project template
read-only
idempotent
delete-project-template
✨ Delete a project template
idempotent
update-project-template
✨ Update a project template
idempotent
create-project-template-2
✨ Create project from template
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: API Reference — subpackage_projectTemplates
description: 'API Reference — subpackage_projectTemplates. 6 operations. Lead operation: ✨ Get project templates. Self-contained
Naftiko capability covering one Label Studio business surface.'
tags:
- Label Studio
- subpackage_projectTemplates
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-projecttemplates
baseUri: http://localhost:8000
description: API Reference — subpackage_projectTemplates business capability. Self-contained, no shared references.
resources:
- name: api-project-templates
path: /api/project-templates/
operations:
- name: list
method: GET
description: ✨ Get project templates
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: create
method: POST
description: ✨ Create project template
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: body
in: body
type: object
description: Request body (JSON).
required: false
- name: api-project-templates-id
path: /api/project-templates/{id}
operations:
- name: get
method: GET
description: ✨ Get a project template
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: delete
method: DELETE
description: ✨ Delete a project template
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 a project template
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-project-templates-id-create-project
path: /api/project-templates/{id}/create-project
operations:
- name: createprojectfromtemplate
method: POST
description: ✨ Create project from template
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-projecttemplates-rest
port: 8080
description: REST adapter for API Reference — subpackage_projectTemplates. One Spectral-compliant resource per consumed
operation, prefixed with /v1.
resources:
- path: /v1/api/project-templates
name: api-project-templates
description: REST surface for api-project-templates.
operations:
- method: GET
name: list
description: ✨ Get project templates
call: label-studio-subpackage-projecttemplates.list
with:
ordering: rest.ordering
Authorization: rest.Authorization
outputParameters:
- type: object
mapping: $.
- method: POST
name: create
description: ✨ Create project template
call: label-studio-subpackage-projecttemplates.create
with:
Authorization: rest.Authorization
body: rest.body
outputParameters:
- type: object
mapping: $.
- path: /v1/api/project-templates/{id}
name: api-project-templates-id
description: REST surface for api-project-templates-id.
operations:
- method: GET
name: get
description: ✨ Get a project template
call: label-studio-subpackage-projecttemplates.get
with:
id: rest.id
Authorization: rest.Authorization
outputParameters:
- type: object
mapping: $.
- method: DELETE
name: delete
description: ✨ Delete a project template
call: label-studio-subpackage-projecttemplates.delete
with:
id: rest.id
Authorization: rest.Authorization
outputParameters:
- type: object
mapping: $.
- method: PATCH
name: update
description: ✨ Update a project template
call: label-studio-subpackage-projecttemplates.update
with:
id: rest.id
Authorization: rest.Authorization
body: rest.body
outputParameters:
- type: object
mapping: $.
- path: /v1/api/project-templates/{id}/create-project
name: api-project-templates-id-create-project
description: REST surface for api-project-templates-id-create-project.
operations:
- method: POST
name: createprojectfromtemplate
description: ✨ Create project from template
call: label-studio-subpackage-projecttemplates.createprojectfromtemplate
with:
id: rest.id
Authorization: rest.Authorization
body: rest.body
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: label-studio-subpackage-projecttemplates-mcp
port: 9090
transport: http
description: MCP adapter for API Reference — subpackage_projectTemplates. One tool per consumed operation, routed inline
through this capability's consumes block.
tools:
- name: get-project-templates
description: ✨ Get project templates
hints:
readOnly: true
destructive: false
idempotent: true
call: label-studio-subpackage-projecttemplates.list
with:
ordering: tools.ordering
Authorization: tools.Authorization
outputParameters:
- type: object
mapping: $.
- name: create-project-template
description: ✨ Create project template
hints:
readOnly: false
destructive: false
idempotent: false
call: label-studio-subpackage-projecttemplates.create
with:
Authorization: tools.Authorization
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: get-project-template
description: ✨ Get a project template
hints:
readOnly: true
destructive: false
idempotent: true
call: label-studio-subpackage-projecttemplates.get
with:
id: tools.id
Authorization: tools.Authorization
outputParameters:
- type: object
mapping: $.
- name: delete-project-template
description: ✨ Delete a project template
hints:
readOnly: false
destructive: true
idempotent: true
call: label-studio-subpackage-projecttemplates.delete
with:
id: tools.id
Authorization: tools.Authorization
outputParameters:
- type: object
mapping: $.
- name: update-project-template
description: ✨ Update a project template
hints:
readOnly: false
destructive: false
idempotent: true
call: label-studio-subpackage-projecttemplates.update
with:
id: tools.id
Authorization: tools.Authorization
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: create-project-template-2
description: ✨ Create project from template
hints:
readOnly: false
destructive: false
idempotent: false
call: label-studio-subpackage-projecttemplates.createprojectfromtemplate
with:
id: tools.id
Authorization: tools.Authorization
body: tools.body
outputParameters:
- type: object
mapping: $.