api-tokens

List API Tokens

Changed on

List all API Tokens.

This endpoint consumes 10 units of your quota.

This endpoint requires the following org token scopes:

  • api-tokens:list
get/orgs/{org_slug}/api-tokens

Request

  • Base URL
    https://api.socket.dev/v0
  • URL
    https://api.socket.dev/v0/orgs/{org_slug}/api-tokens
  • Auth
    • HTTP bearer
    • or HTTP basic

Path parameters

org_slugstring required

The slug of the organization

Query parameters

sort'created_at'

Specify Sort order.

direction'asc' | 'desc'

Specify sort direction.

per_pageinteger

Specify the maximum number of results to return per page.

pageinteger

The token specifying which page to return.

token_values'include' | 'omit'

Whether to include the masked token display. The non-secret token_prefix and token_last4 fields are always returned.

Response

The paginated array of API tokens for the organization, and related metadata.

nextPageinteger nullable required

Changes

    • warning

      added the new alert-policy enum value to the /// response property for the response status

    • warning

      added the new alert-policy:create enum value to the /// response property for the response status

    • warning

      added the new alert-policy:delete enum value to the /// response property for the response status

    • warning

      added the new alert-policy:list enum value to the /// response property for the response status

    • warning

      added the new alert-policy:read enum value to the /// response property for the response status

    • warning

      added the new alert-policy:update enum value to the /// response property for the response status

    • warning

      added the new selected-organization enum value to the /// response property for the response status

    • warning

      added the new socket-firewall-deployment enum value to the /// response property for the response status

    • warning

      added the new socket-firewall-deployment:update enum value to the /// response property for the response status

    • warning

      added the new vulnerability-feed enum value to the /// response property for the response status

    • warning

      added the new vulnerability-feed:list enum value to the /// response property for the response status

    • info

      added the required property // to the response with the status

    • info

      added the required property // to the response with the status