Freestyle · Capability

Freestyle Identity API — Tokens

Freestyle Identity API tokens surface. 3 operations. Lead operation: List Access Tokens for an Identity. Self-contained Naftiko capability for one Freestyle business surface.

Freestyle Identity API — Tokens is a Naftiko capability published by Freestyle, one of 30 capabilities the APIs.io network indexes for this provider. It bundles 3 operations across the GET, POST, and DELETE methods rooted at /v1/identity/v1/identities/{…}/tokens.

The capability includes 1 read-only operation and 2 state-changing operations. Lead operation: List Access Tokens for an Identity. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include Freestyle, Identity, and Tokens.

Run with Naftiko FreestyleIdentityTokens

What You Can Do

GET
Handle list git tokens — List Access Tokens for an Identity
/v1/identity/v1/identities/{identity}/tokens
POST
Handle create git token — Create an Access Token for an Identity
/v1/identity/v1/identities/{identity}/tokens
DELETE
Handle revoke git token — Revoke an Access Token for an Identity
/v1/identity/v1/identities/{identity}/tokens/{token}

MCP Tools

freestyle-handle-list-git-tokens

List Access Tokens for an Identity

read-only idempotent
freestyle-handle-create-git-token

Create an Access Token for an Identity

freestyle-handle-revoke-git-token

Revoke an Access Token for an Identity

idempotent

Capability Spec

identity-tokens.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: "Freestyle Identity API \u2014 Tokens"
  description: 'Freestyle Identity API tokens surface. 3 operations. Lead operation: List Access Tokens for an Identity. Self-contained
    Naftiko capability for one Freestyle business surface.'
  tags:
  - Freestyle
  - Identity
  - Tokens
  created: '2026-05-25'
  modified: '2026-05-25'
binds:
- namespace: env
  keys:
    FREESTYLE_API_KEY: FREESTYLE_API_KEY
capability:
  consumes:
  - type: http
    namespace: identity-tokens
    baseUri: https://api.freestyle.sh
    description: Freestyle Identity API tokens business capability.
    resources:
    - name: identity-v1-identities-tokens
      path: /identity/v1/identities/{identity}/tokens
      operations:
      - name: handle-list-git-tokens
        method: GET
        description: List Access Tokens for an Identity
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: identity
          in: path
          type: string
          required: true
      - name: handle-create-git-token
        method: POST
        description: Create an Access Token for an Identity
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: identity
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: identity-v1-identities-tokens
      path: /identity/v1/identities/{identity}/tokens/{token}
      operations:
      - name: handle-revoke-git-token
        method: DELETE
        description: Revoke an Access Token for an Identity
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: identity
          in: path
          type: string
          required: true
        - name: token
          in: path
          type: string
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: Bearer {{env.FREESTYLE_API_KEY}}
      placement: header
  exposes:
  - type: rest
    namespace: identity-tokens-rest
    port: 8080
    description: REST adapter for Freestyle Identity API tokens. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/identity/v1/identities/{identity}/tokens
      name: identity-v1-identities-tokens
      description: REST surface for identity-v1-identities-tokens.
      operations:
      - method: GET
        name: handle-list-git-tokens
        description: List Access Tokens for an Identity
        call: identity-tokens.handle-list-git-tokens
        with:
          identity: rest.path.identity
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: handle-create-git-token
        description: Create an Access Token for an Identity
        call: identity-tokens.handle-create-git-token
        with:
          identity: rest.path.identity
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/identity/v1/identities/{identity}/tokens/{token}
      name: identity-v1-identities-tokens
      description: REST surface for identity-v1-identities-tokens.
      operations:
      - method: DELETE
        name: handle-revoke-git-token
        description: Revoke an Access Token for an Identity
        call: identity-tokens.handle-revoke-git-token
        with:
          identity: rest.path.identity
          token: rest.path.token
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: identity-tokens-mcp
    port: 9090
    transport: http
    description: MCP adapter for Freestyle Identity API tokens. One tool per consumed operation.
    tools:
    - name: freestyle-handle-list-git-tokens
      description: List Access Tokens for an Identity
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: identity-tokens.handle-list-git-tokens
      with:
        identity: tools.path.identity
      outputParameters:
      - type: object
        mapping: $.
    - name: freestyle-handle-create-git-token
      description: Create an Access Token for an Identity
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: identity-tokens.handle-create-git-token
      with:
        identity: tools.path.identity
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: freestyle-handle-revoke-git-token
      description: Revoke an Access Token for an Identity
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: identity-tokens.handle-revoke-git-token
      with:
        identity: tools.path.identity
        token: tools.path.token
      outputParameters:
      - type: object
        mapping: $.