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

# Cancel Request

> This action will cancel a credential request. 
Once a request is canceled, it cannot be undone and will prevent the request from being completed by any subjects. 
Any draft credentials are marked canceled and any already-active credentials in the request are revoked.



## OpenAPI

````yaml /versions/2026-07-06.yaml delete /request/{requestId}
openapi: 3.1.0
info:
  title: Humanos API
  description: Humanos API
  version: '1.0'
  contact: {}
servers: []
security: []
tags:
  - name: humanosApp
    description: ''
paths:
  /request/{requestId}:
    delete:
      tags:
        - Requests
      summary: Cancel Request
      description: >-
        This action will cancel a credential request. 

        Once a request is canceled, it cannot be undone and will prevent the
        request from being completed by any subjects. 

        Any draft credentials are marked canceled and any already-active
        credentials in the request are revoked.
      operationId: requests_cancel
      parameters:
        - name: requestId
          required: true
          in: path
          description: >-
            Unique identifier of the credential request to cancel. Must be a
            valid MongoDB ObjectId.
          schema:
            example: 507f1f77bcf86cd799439011
            type: string
        - $ref: '#/components/parameters/ApiVersion'
      responses:
        '201':
          description: Returns a confirmation of the cancellation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessEntity'
        '400':
          description: >-
            The request has already been canceled, or requestId is not a valid
            MongoDB ObjectId.
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    example: 400
                  message:
                    type: string
                    example: Request already canceled
                  error:
                    type: string
                    example: Bad Request
        '404':
          description: >-
            Request not found (unknown id, or the request belongs to another
            issuer).
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    example: 404
                  message:
                    type: string
                    example: Request not found
                  error:
                    type: string
                    example: Not Found
components:
  parameters:
    ApiVersion:
      name: API-Version
      in: header
      required: false
      schema:
        type: string
        pattern: ^\d{4}-\d{2}-\d{2}$
        example: '2026-07-06'
      description: >-
        Pin request, response, and webhook shapes to a specific dated API
        version (YYYY-MM-DD). Omit to use the version pinned to your API key
        (set when the key is created; new keys default to the latest version).
        New integrations should target the latest version.
  schemas:
    SuccessEntity:
      type: object
      properties:
        success:
          type: boolean
          description: Whether the operation was successful
          example: true
      required:
        - success

````