> ## Documentation Index
> Fetch the complete documentation index at: https://www.dynamic.xyz/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Revoke delegated access for one or more wallets

> Allows developers to revoke their own delegated access




## OpenAPI

````yaml post /environments/{environmentId}/waas/delegatedAccess/revoke
openapi: 3.0.1
info:
  title: Dashboard API
  description: Dashboard API documentation
  version: 1.0.0
servers:
  - url: https://app.dynamicauth.com/api/v0
  - url: https://app.dynamic.xyz/api/v0
  - url: http://localhost:3333/api/v0
security: []
tags:
  - name: Analytics
  - name: SDK
  - name: Organizations
  - name: Projects
  - name: Environments
  - name: Users
  - name: Invites
  - name: Tokens
  - name: Origins
  - name: Allowlists
  - name: Wallets
  - name: Members
  - name: Sessions
  - name: Settings
  - name: Gates
  - name: Chains
  - name: Exports
  - name: Events
  - name: Webhooks
  - name: Custom Fields
  - name: OrganizationMfaSettings
  - name: CustomHostnames
  - name: TestAccount
  - name: NameServices
  - name: GlobalWallets
  - name: GlobalWalletConnections
  - name: UserApiTokens
  - name: Waas
  - name: WalletConnect
paths:
  /environments/{environmentId}/waas/delegatedAccess/revoke:
    post:
      tags:
        - Waas
      summary: Revoke delegated access for one or more wallets
      description: |
        Allows developers to revoke their own delegated access
      operationId: revokeDelegatedAccess
      parameters:
        - $ref: '#/components/parameters/environmentId'
      requestBody:
        description: Revoke Delegated Access Request
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RevokeDelegatedAccessRequest'
      responses:
        '200':
          description: Delegated access revocation processed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RevokeDelegatedAccessResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  parameters:
    environmentId:
      in: path
      name: environmentId
      required: true
      description: ID of the environment
      schema:
        $ref: '#/components/schemas/uuid'
  schemas:
    RevokeDelegatedAccessRequest:
      type: object
      required:
        - walletIds
      properties:
        walletIds:
          type: array
          items:
            $ref: '#/components/schemas/uuid'
          description: Array of wallet IDs to revoke delegated access for
          minItems: 1
          maxItems: 100
    RevokeDelegatedAccessResponse:
      type: object
      required:
        - results
        - total
        - succeeded
        - failed
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/RevokeDelegatedAccessWalletResult'
          description: Results for each wallet
        total:
          type: integer
          description: Total number of wallets processed
        succeeded:
          type: integer
          description: Number of wallets successfully revoked
        failed:
          type: integer
          description: Number of wallets that failed to revoke
    uuid:
      type: string
      pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
      minLength: 36
      maxLength: 36
      example: 95b11417-f18f-457f-8804-68e361f9164f
    RevokeDelegatedAccessWalletResult:
      type: object
      required:
        - walletId
        - success
      properties:
        walletId:
          $ref: '#/components/schemas/uuid'
        success:
          type: boolean
          description: Whether the revocation was successful for this wallet
        error:
          type: string
          description: Error message if the revocation failed
    BadRequest:
      type: object
      properties:
        error:
          type: string
    Unauthorized:
      type: object
      properties:
        error:
          type: string
          example: No jwt provided!
    Forbidden:
      type: object
      properties:
        error:
          type: string
          example: Access Forbidden
    InternalServerError:
      type: object
      properties:
        error:
          type: string
          example: Internal Server Error
  responses:
    BadRequest:
      description: Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/BadRequest'
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Unauthorized'
    Forbidden:
      description: Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Forbidden'
    InternalServerError:
      description: Internal Server Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/InternalServerError'

````