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: $.