Socket · Capability

Socket Api Tokens Api Tokens

Socket api tokens api tokens business capability. Self-contained Naftiko capability covering one Socket business surface.

Socket Api Tokens Api Tokens is a Naftiko capability published by Socket, one of 21 capabilities the APIs.io network indexes for this provider. It bundles 6 operations across the POST and GET methods.

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

Tagged areas include Socket, Supply Chain Security, Api, Tokens, and Api.

Run with Naftiko SocketSupply Chain SecurityApiTokensApiTokens

What You Can Do

GET
Get orgs org slug api tokens — List API Tokens
/v1/orgs/{org_slug}/api-tokens
POST
Post orgs org slug api tokens — Create API Token
/v1/orgs/{org_slug}/api-tokens
POST
Post orgs org slug api tokens update — Update API Token
/v1/orgs/{org_slug}/api-tokens/update
POST
Post orgs org slug api tokens rotate — Rotate API Token
/v1/orgs/{org_slug}/api-tokens/rotate
POST
Post orgs org slug api tokens revoke — Revoke API Token
/v1/orgs/{org_slug}/api-tokens/revoke
GET
Get quota — Get quota
/v1/quota

MCP Tools

socket-get-orgs-org-slug-api-tokens

List API Tokens

read-only idempotent
socket-post-orgs-org-slug-api-tokens

Create API Token

socket-post-orgs-org-slug-api-tokens-update

Update API Token

socket-post-orgs-org-slug-api-tokens-rotate

Rotate API Token

socket-post-orgs-org-slug-api-tokens-revoke

Revoke API Token

socket-get-quota

Get quota

read-only idempotent

Capability Spec

api-tokens-api-tokens.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Socket Api Tokens Api Tokens
  description: Socket api tokens api tokens business capability. Self-contained Naftiko capability covering one Socket business surface.
  tags:
  - Socket
  - Supply Chain Security
  - Api
  - Tokens
  - Api
  - Tokens
  created: '2026-05-25'
  modified: '2026-05-25'
binds:
- namespace: env
  keys:
    SOCKET_API_KEY: SOCKET_API_KEY
capability:
  consumes:
  - type: http
    namespace: api-tokens-api-tokens
    baseUri: https://api.socket.dev/v0
    description: Socket api tokens api tokens business capability. Self-contained, no shared references.
    resources:
    - name: orgs-org-slug-api-tokens
      path: /orgs/{org_slug}/api-tokens
      operations:
      - name: get-orgs-org-slug-api-tokens
        method: GET
        description: List API Tokens
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org_slug
          in: path
          type: string
          description: The slug of the organization
          required: true
        - name: sort
          in: query
          type: string
          description: Specify Sort order.
          required: false
        - name: direction
          in: query
          type: string
          description: Specify sort direction.
          required: false
        - name: per_page
          in: query
          type: integer
          description: Specify the maximum number of results to return per page.
          required: false
        - name: page
          in: query
          type: integer
          description: The token specifying which page to return.
          required: false
        - name: token_values
          in: query
          type: string
          description: Whether to include token values in response. Use "omit" to exclude tokens entirely.
          required: false
      - name: post-orgs-org-slug-api-tokens
        method: POST
        description: Create API Token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org_slug
          in: path
          type: string
          description: The slug of the organization
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: orgs-org-slug-api-tokens-update
      path: /orgs/{org_slug}/api-tokens/update
      operations:
      - name: post-orgs-org-slug-api-tokens-update
        method: POST
        description: Update API Token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org_slug
          in: path
          type: string
          description: The slug of the organization
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: orgs-org-slug-api-tokens-rotate
      path: /orgs/{org_slug}/api-tokens/rotate
      operations:
      - name: post-orgs-org-slug-api-tokens-rotate
        method: POST
        description: Rotate API Token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org_slug
          in: path
          type: string
          description: The slug of the organization
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: orgs-org-slug-api-tokens-revoke
      path: /orgs/{org_slug}/api-tokens/revoke
      operations:
      - name: post-orgs-org-slug-api-tokens-revoke
        method: POST
        description: Revoke API Token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: org_slug
          in: path
          type: string
          description: The slug of the organization
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: quota
      path: /quota
      operations:
      - name: get-quota
        method: GET
        description: Get quota
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters: []
    authentication:
      type: basic
      username: '{{env.SOCKET_API_KEY}}'
      password: ''
      description: Socket authenticates via HTTP Basic with the API key as the username and empty password.
  exposes:
  - type: rest
    namespace: api-tokens-api-tokens-rest
    port: 8080
    description: REST adapter for Socket api tokens api tokens.
    resources:
    - path: /v1/orgs/{org_slug}/api-tokens
      name: orgs-org-slug-api-tokens
      description: REST surface for orgs-org-slug-api-tokens.
      operations:
      - method: GET
        name: get-orgs-org-slug-api-tokens
        description: List API Tokens
        call: api-tokens-api-tokens.get-orgs-org-slug-api-tokens
        with:
          org_slug: rest.path.org_slug
          sort: rest.query.sort
          direction: rest.query.direction
          per_page: rest.query.per_page
          page: rest.query.page
          token_values: rest.query.token_values
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: post-orgs-org-slug-api-tokens
        description: Create API Token
        call: api-tokens-api-tokens.post-orgs-org-slug-api-tokens
        with:
          org_slug: rest.path.org_slug
          body: rest.body.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org_slug}/api-tokens/update
      name: orgs-org-slug-api-tokens-update
      description: REST surface for orgs-org-slug-api-tokens-update.
      operations:
      - method: POST
        name: post-orgs-org-slug-api-tokens-update
        description: Update API Token
        call: api-tokens-api-tokens.post-orgs-org-slug-api-tokens-update
        with:
          org_slug: rest.path.org_slug
          body: rest.body.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org_slug}/api-tokens/rotate
      name: orgs-org-slug-api-tokens-rotate
      description: REST surface for orgs-org-slug-api-tokens-rotate.
      operations:
      - method: POST
        name: post-orgs-org-slug-api-tokens-rotate
        description: Rotate API Token
        call: api-tokens-api-tokens.post-orgs-org-slug-api-tokens-rotate
        with:
          org_slug: rest.path.org_slug
          body: rest.body.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/orgs/{org_slug}/api-tokens/revoke
      name: orgs-org-slug-api-tokens-revoke
      description: REST surface for orgs-org-slug-api-tokens-revoke.
      operations:
      - method: POST
        name: post-orgs-org-slug-api-tokens-revoke
        description: Revoke API Token
        call: api-tokens-api-tokens.post-orgs-org-slug-api-tokens-revoke
        with:
          org_slug: rest.path.org_slug
          body: rest.body.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/quota
      name: quota
      description: REST surface for quota.
      operations:
      - method: GET
        name: get-quota
        description: Get quota
        call: api-tokens-api-tokens.get-quota
        with: {}
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: api-tokens-api-tokens-mcp
    port: 9090
    transport: http
    description: MCP adapter for Socket api tokens api tokens.
    tools:
    - name: socket-get-orgs-org-slug-api-tokens
      description: List API Tokens
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: api-tokens-api-tokens.get-orgs-org-slug-api-tokens
      with:
        org_slug: tools.org_slug
        sort: tools.sort
        direction: tools.direction
        per_page: tools.per_page
        page: tools.page
        token_values: tools.token_values
      outputParameters:
      - type: object
        mapping: $.
    - name: socket-post-orgs-org-slug-api-tokens
      description: Create API Token
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: api-tokens-api-tokens.post-orgs-org-slug-api-tokens
      with:
        org_slug: tools.org_slug
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: socket-post-orgs-org-slug-api-tokens-update
      description: Update API Token
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: api-tokens-api-tokens.post-orgs-org-slug-api-tokens-update
      with:
        org_slug: tools.org_slug
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: socket-post-orgs-org-slug-api-tokens-rotate
      description: Rotate API Token
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: api-tokens-api-tokens.post-orgs-org-slug-api-tokens-rotate
      with:
        org_slug: tools.org_slug
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: socket-post-orgs-org-slug-api-tokens-revoke
      description: Revoke API Token
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: api-tokens-api-tokens.post-orgs-org-slug-api-tokens-revoke
      with:
        org_slug: tools.org_slug
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: socket-get-quota
      description: Get quota
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: api-tokens-api-tokens.get-quota
      with: {}
      outputParameters:
      - type: object
        mapping: $.