Skip to content

Deletes organization invitations by email

delete/v2/organizations/{slug}/members/invitations

Bulk delete member invitations for an organization by email address.

OAuth scopes

  • organizations:write

This endpoint is only available on the following plans:

  • Team
  • Enterprise

The fine-grained token must include the following permissions to access this endpoint:

  • members_write

Path parameters

  • slug
    Required
    string

    Organization slug

Body

  • data
    Required
    Array<object>

Response codes

  • 200
  • 401
  • 402
  • 403
  • 429

Response (200)

{
"data": [
{
"type": "organization_invitation",
"attributes": {
"email": "hello@example.com"
}
}
]
}
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Resource type.",
"enum": [
"organization_invitation"
]
},
"attributes": {
"type": "object",
"properties": {
"email": {
"type": "string",
"format": "email",
"pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
"description": "Email address of the invitation receipient.",
"example": "hello@example.com"
}
},
"required": [
"email"
]
}
},
"required": [
"type",
"attributes"
]
}
}
},
"required": [
"data"
]
}