Strapi · Capability

Strapi Admin Panel API — API Tokens

Strapi Admin Panel API — API Tokens. 5 operations. Lead operation: List API tokens. Self-contained Naftiko capability covering one Strapi business surface.

Run with Naftiko StrapiAPI Tokens

What You Can Do

GET
Listapitokens — List API tokens
/v1/admin/api-tokens
POST
Createapitoken — Create an API token
/v1/admin/api-tokens
GET
Getapitoken — Get an API token
/v1/admin/api-tokens/{id}
PUT
Updateapitoken — Update an API token
/v1/admin/api-tokens/{id}
DELETE
Deleteapitoken — Delete an API token
/v1/admin/api-tokens/{id}

MCP Tools

list-api-tokens

List API tokens

read-only idempotent
create-api-token

Create an API token

get-api-token

Get an API token

read-only idempotent
update-api-token

Update an API token

idempotent
delete-api-token

Delete an API token

idempotent

Capability Spec

admin-panel-api-tokens.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Strapi Admin Panel API — API Tokens
  description: 'Strapi Admin Panel API — API Tokens. 5 operations. Lead operation: List API tokens. Self-contained Naftiko
    capability covering one Strapi business surface.'
  tags:
  - Strapi
  - API Tokens
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    STRAPI_API_KEY: STRAPI_API_KEY
capability:
  consumes:
  - type: http
    namespace: admin-panel-api-tokens
    baseUri: https://{host}
    description: Strapi Admin Panel API — API Tokens business capability. Self-contained, no shared references.
    resources:
    - name: admin-api-tokens
      path: /admin/api-tokens
      operations:
      - name: listapitokens
        method: GET
        description: List API tokens
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createapitoken
        method: POST
        description: Create an API token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: admin-api-tokens-id
      path: /admin/api-tokens/{id}
      operations:
      - name: getapitoken
        method: GET
        description: Get an API token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID of the API token
          required: true
      - name: updateapitoken
        method: PUT
        description: Update an API token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID of the API token
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteapitoken
        method: DELETE
        description: Delete an API token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID of the API token
          required: true
    authentication:
      type: bearer
      token: '{{env.STRAPI_API_KEY}}'
  exposes:
  - type: rest
    namespace: admin-panel-api-tokens-rest
    port: 8080
    description: REST adapter for Strapi Admin Panel API — API Tokens. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/admin/api-tokens
      name: admin-api-tokens
      description: REST surface for admin-api-tokens.
      operations:
      - method: GET
        name: listapitokens
        description: List API tokens
        call: admin-panel-api-tokens.listapitokens
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createapitoken
        description: Create an API token
        call: admin-panel-api-tokens.createapitoken
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/admin/api-tokens/{id}
      name: admin-api-tokens-id
      description: REST surface for admin-api-tokens-id.
      operations:
      - method: GET
        name: getapitoken
        description: Get an API token
        call: admin-panel-api-tokens.getapitoken
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateapitoken
        description: Update an API token
        call: admin-panel-api-tokens.updateapitoken
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteapitoken
        description: Delete an API token
        call: admin-panel-api-tokens.deleteapitoken
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: admin-panel-api-tokens-mcp
    port: 9090
    transport: http
    description: MCP adapter for Strapi Admin Panel API — API Tokens. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-api-tokens
      description: List API tokens
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: admin-panel-api-tokens.listapitokens
      outputParameters:
      - type: object
        mapping: $.
    - name: create-api-token
      description: Create an API token
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: admin-panel-api-tokens.createapitoken
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-api-token
      description: Get an API token
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: admin-panel-api-tokens.getapitoken
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: update-api-token
      description: Update an API token
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: admin-panel-api-tokens.updateapitoken
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-api-token
      description: Delete an API token
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: admin-panel-api-tokens.deleteapitoken
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.