Peach
  1. medias
Peach
  • messaging
    • Send a pre-approved template message
      POST
    • Launch a Broadcast
      POST
  • 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
  1. medias

List available Medias

Developing
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