Peach
  1. medias
Peach
  • messaging
    • Send a pre-approved template message
      POST
    • Poll template message status
      GET
    • Launch a broadcast
      POST
    • Poll broadcast status
      GET
    • Poll template messages status
      GET
  • contacts
    • Create a contact on Peach
      POST
  • orders
    • Create an order
      POST
    • Find order by ID
      GET
    • Create a refund for an order
      POST
  • medias
    • List available medias
      GET
    • Add a media
      POST
    • Remove a media
      DELETE
  • webhooks
    • Order status webhooks
    • Flow execution status webhooks
    • Message delivery status webhooks
    • AI flow execution status webhooks
  1. medias

Remove a media

DELETE
https://app.trypeach.io/api/v1/medias/{{media_id}}

Request

Authorization
Add parameter in header
Authorization
Example:
Authorization: ********************
Header Params
Content-Type
string 
optional
Example:
application/json

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request DELETE 'https://app.trypeach.io/api/v1/medias/{{media_id}}' \
--header 'Content-Type: application/json' \
--header 'Authorization;'

Responses

🟢200Success
application/json
Body
content_type
string 
required
created_at
string 
required
filename
string 
required
id
integer 
required
media_url
string 
required
Example
{
    "content_type": "image/png",
    "created_at": "2024-07-15T09:12:24.464Z",
    "filename": "sample.png",
    "id": 1,
    "media_url": "media://11"
}
🟠404Record Not Found
Previous
Add a media
Next
Order status webhooks
Built with