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

# Revoke auth credential

> Disconnect the saved credential and all its Darwin grants after comparing If-Match with the revision from the account credential list. Provider-side revocation is queued separately; this does not undo work already dispatched.

This account-scoped mutation requires a user-authorized `human:actions` OAuth grant. First list the saved item, review its current metadata, then send its Darwin ID with an `If-Match` header containing the listed revision in double quotes. A stale revision fails with `409`; fetch the list again before retrying. No provider secret or payment details belong in this request. Revocation prevents future selection by Darwin but cannot undo a dispatched action or payment. This operation remains release-gated until account ownership migration and live provider verification are complete.


## OpenAPI

````yaml openapi-target-accounts.json DELETE /v2/account/auth-credentials/{credentialId}
openapi: 3.1.0
info:
  title: Darwin target accounts
  version: 1.0.0
  description: >-
    Manage saved payment methods and authentication credentials for your Darwin
    account. Older AI-scoped routes remain as compatibility aliases.
servers:
  - url: https://api.darwin.so/api
    description: Darwin API after cutover
security: []
paths:
  /v2/account/auth-credentials/{credentialId}:
    delete:
      tags:
        - Account
      summary: Revoke auth credential
      description: >-
        Disconnect the saved credential and all its Darwin grants after
        comparing If-Match with the revision from the account credential list.
        Provider-side revocation is queued separately; this does not undo work
        already dispatched.
      operationId: revoke_account_auth_credential
      parameters:
        - name: credentialId
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 200
        - name: If-Match
          in: header
          required: true
          schema:
            type: string
            pattern: ^"[^"\\]+"$
      responses:
        '200':
          description: Authorized account metadata only.
          content:
            application/json:
              schema:
                type: object
                properties:
                  disconnected:
                    type: boolean
                    const: true
                  revocationPending:
                    type: boolean
                required:
                  - disconnected
                  - revocationPending
                additionalProperties: false
          headers:
            Cache-Control:
              schema:
                type: string
                const: no-store
        '400':
          description: Invalid or unsupported input.
        '401':
          description: Authentication required.
        '403':
          description: >-
            Missing scope, owner/admin role, or AI grant. Writes require a user
            API key.
        '404':
          description: AI or account is not available to this principal.
        '409':
          description: Credential changed since it was listed. Refresh before revoking.
        '429':
          description: >-
            Read allowance exceeded. Wait before retrying; changing the AI or
            MCP tool does not reset the budget.
          headers:
            Retry-After:
              description: Minimum seconds before retrying.
              schema:
                type: integer
                minimum: 1
        '503':
          description: >-
            Account thread integration or required credential custody is
            unavailable.
      security:
        - bearer: []
components:
  securitySchemes:
    bearer:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.