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

# Revoke an agent

> Disables or revokes access for the specified AI agent, preventing further authentication or activity.



## OpenAPI

````yaml delete /accounts/agent/{agentId}
openapi: 3.1.0
info:
  title: OwnID API
  version: 1.0.0
  description: Server API for integrating with the OwnID
servers:
  - url: https://server.ownid.com/{appId}
security:
  - AdminAccessToken: []
paths:
  /accounts/agent/{agentId}:
    delete:
      tags:
        - Agents
      summary: Revoke an agent
      description: >-
        Disables or revokes access for the specified AI agent, preventing
        further authentication or activity.
      operationId: deleteAgent
      parameters:
        - name: agentId
          in: path
          required: true
          description: Unique identifier for the AI agent
          schema:
            type: string
        - name: Authorization
          in: header
          required: true
          description: Bearer Token for admin authorization
          schema:
            type: string
      responses:
        '200':
          description: Successful revocation of the agent
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  message:
                    type: string
                    example: Agent revoked successfully.
        '400':
          description: Bad request or invalid agentId
        '401':
          description: Unauthorized or missing credentials
        '404':
          description: Agent not found
components:
  securitySchemes:
    AdminAccessToken:
      type: http
      scheme: bearer
      bearerFormat: JWT

````