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

List available medias

GET
https://app.trypeach.io/api/v1/medias

Request

Authorization
Add parameter in header
Authorization
Example:
Authorization: ********************

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 --request GET 'https://app.trypeach.io/api/v1/medias' \
--header 'Authorization;'

Responses

🟢200Success
application/json
Body
count
integer 
required
medias
array [object {5}] 
required
content_type
string 
required
created_at
string 
required
filename
string 
required
id
integer 
required
media_url
string 
required
next
string 
required
previous
string 
required
Example
{
    "count": 25,
    "medias": [
        {
            "content_type": "image/png",
            "created_at": "2024-05-23T09:47:40.002Z",
            "filename": "sample.png",
            "id": 11,
            "media_url": "media://12"
        },
        {
            "content_type": "application/pdf",
            "created_at": "2024-06-11T05:40:24.456Z",
            "filename": "sample.pdf",
            "id": 12,
            "media_url": "media://13"
        },
        {
            "content_type": "image/png",
            "created_at": "2024-05-23T09:47:40.002Z",
            "filename": "sample.png",
            "id": 13,
            "media_url": "media://14"
        },
        {
            "content_type": "application/pdf",
            "created_at": "2024-06-11T05:40:24.456Z",
            "filename": "sample.pdf",
            "id": 14,
            "media_url": "media://15"
        },
        {
            "content_type": "image/png",
            "created_at": "2024-05-23T09:47:40.002Z",
            "filename": "sample.png",
            "id": 15,
            "media_url": "media://16"
        },
        {
            "content_type": "application/pdf",
            "created_at": "2024-06-11T05:40:24.456Z",
            "filename": "sample.pdf",
            "id": 16,
            "media_url": "media://17"
        },
        {
            "content_type": "image/png",
            "created_at": "2024-05-23T09:47:40.002Z",
            "filename": "sample.png",
            "id": 17,
            "media_url": "media://18"
        },
        {
            "content_type": "application/pdf",
            "created_at": "2024-06-11T05:40:24.456Z",
            "filename": "sample.pdf",
            "id": 18,
            "media_url": "media://19"
        },
        {
            "content_type": "image/png",
            "created_at": "2024-05-23T09:47:40.002Z",
            "filename": "sample.png",
            "id": 19,
            "media_url": "media://20"
        },
        {
            "content_type": "application/pdf",
            "created_at": "2024-06-11T05:40:24.456Z",
            "filename": "sample.pdf",
            "id": 20,
            "media_url": "media://21"
        }
    ],
    "next": "https://app.trypeach.io/api/v1/medias",
    "previous": "https://app.trypeach.io/api/v1/medias?page=3"
}
Previous
Create a refund for an order
Next
Add a media
Built with