Skip to content
v1.0.0
OAS 3.0.3

Bulk Delete Email Models API

Stripo Support

This API specification describes the bulk deletion endpoint for deleting multiple emails.

Authentication: Plugin-based authentication using custom headers. Requires valid plugin authentication token and plugin UI data.

Authorization: Only users with "api" role are permitted to use this endpoint. Other roles will receive a 403 Forbidden response.

Validation:

  • Number of emails to delete limited by 1000 emails
Server:https://plugins.stripo.email

Stripo Plugin API server

Client Libraries

email

Email management operations

Bulk delete multiple emails

Deletes multiple email models by their IDs. Only users with the api role can use this endpoint.

Body·DeleteEmailsRequest
required
application/json

Request body containing email IDs to delete

  • emailIds
    Type: array string[] 1…1000
    required

    List of email model IDs to delete. Min: 1, max: 1000.

Responses
  • 204

    All emails deleted successfully. No response body is returned.

  • application/json
    400
    Type: object · ErrorResponse

    Bad request - Invalid request format, missing email IDs, array too large, or invalid email ID format detected.

    • Message
      Type: string
      required

      Human-readable error message

  • application/json
    401
    Type: object · ErrorResponse

    Unauthorized - Authentication failed, invalid credentials, missing plugin ID, or plugin authentication response is invalid.

    • Message
      Type: string
      required

      Human-readable error message

  • application/json
    403
    Type: object · ErrorResponse

    Forbidden - User does not have the required "api" role to perform bulk deletions. This endpoint is restricted to plugin users with "api" role only.

    • Message
      Type: string
      required

      Human-readable error message

  • application/json
    405
    Type: object · ErrorResponse

    Method not allowed - Only POST method is supported

    • Message
      Type: string
      required

      Human-readable error message

  • application/json
    500
    Type: object · ErrorResponse

    Internal server error - Failed to delete emails.

    • Message
      Type: string
      required

      Human-readable error message

Request Example for post/coediting/v1/emails/bulk-delete
curl https://plugins.stripo.email/coediting/v1/emails/bulk-delete \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'ES-PLUGIN-AUTH: YOUR_SECRET_TOKEN' \
  --data '{
  "emailIds": [
    "email-123"
  ]
}'
No Body

Models

Request body containing email IDs to delete

  • emailIds
    Type: array string[] 1…1000
    required

    List of email model IDs to delete. Min: 1, max: 1000.

Standard error response structure.

  • Message
    Type: string
    required

    Human-readable error message