---
updatedAt: 2025-08-26T08:35:50.000Z
agentTools:
  projectIndex: https://docs.ducky.ai/llms.txt
---

# Delete user invitation

Delete a user invitation by providing the organization ID and the invitation ID.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "contact": {
      "email": "support@ducky.ai",
      "name": "Ducky Developer Support"
    },
    "description": "API for managing and retrieving data from Ducky.",
    "title": "Ducky API",
    "version": "1.0.1"
  },
  "servers": [
    {
      "url": "https://api.ducky.ai"
    }
  ],
  "security": [
    {
      "api_key": []
    }
  ],
  "paths": {
    "/v1/organizations/{organization_id}/invitation/{invitation_id}": {
      "delete": {
        "description": "Delete a user invitation by providing the organization ID and the invitation ID.",
        "operationId": "deleteUserInvitation",
        "parameters": [
          {
            "description": "The unique identifier of the organization to retrieve",
            "explode": false,
            "in": "path",
            "name": "organization_id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "description": "The unique identifier of the invitation to be deleted",
            "explode": false,
            "in": "path",
            "name": "invitation_id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "204": {
            "description": "User invitation successfully deleted"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "User does not have permission to delete this invitation"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "User invitation not found"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "The request could not be processed due to invalid input. This may be caused by an incorrect invitation ID or organization ID."
          }
        },
        "security": [
          {
            "bearer_auth": []
          }
        ],
        "summary": "Delete user invitation",
        "tags": [
          "webapp"
        ]
      },
      "x-internal": true
    }
  },
  "components": {
    "schemas": {
      "ErrorResponse": {
        "example": {
          "error": "error"
        },
        "properties": {
          "error": {
            "description": "Error message explaining the issue",
            "title": "error",
            "type": "string"
          }
        },
        "title": "ErrorResponse",
        "type": "object"
      }
    },
    "securitySchemes": {
      "api_key": {
        "description": "API key providing access to a project.",
        "in": "header",
        "name": "x-api-key",
        "type": "apiKey"
      },
      "bearer_auth": {
        "description": "JWT token submitted from the webapp",
        "in": "header",
        "name": "Authorization",
        "type": "apiKey"
      }
    }
  },
  "x-google-backend": {
    "address": "api.ducky.ai"
  },
  "x-samples-languages": [
    "python",
    "shell"
  ]
}
```