Skip to content
v1.0.0
OpenAPI 3.0.3

Bulk Delete Email Models API

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

Methods

​

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·
required
application/json

Request body containing email IDs to delete

  • emailIds
    Type: array string[] 1…1000
    min length:  
    1
    max length:  
    100
    required

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

Responses
  • 204

    All emails deleted successfully. No response body is returned.

  • 400
    Type: object ·

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

    Standard error response structure.

    • Message
      Type: string
      required

      Human-readable error message

    application/json
  • 401
    Type: object ·

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

    Standard error response structure.

    • Message
      Type: string
      required

      Human-readable error message

    application/json
  • 403
    Type: object ·

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

    Standard error response structure.

    • Message
      Type: string
      required

      Human-readable error message

    application/json
  • 405
    Type: object ·

    Method not allowed - Only POST method is supported

    Standard error response structure.

    • Message
      Type: string
      required

      Human-readable error message

    application/json
  • 500
    Type: object ·

    Internal server error - Failed to delete emails.

    Standard error response structure.

    • Message
      Type: string
      required

      Human-readable error message

    application/json
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
    min length:  
    1
    max length:  
    100
    required

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

Standard error response structure.

  • Message
    Type: string
    required

    Human-readable error message