Media
Get all medias
API documentation
User
Tenant
Feature
Entitlement
User & permissions
Settings
- Settings
- Media
- Webhook
- Notification
Payment
- Payment Method
- Transaction
- SEPA XML
- Open Banking
- Bank Account Transaction
Customer
- Customer
- Customer Address
- Customer Email
- Customer Settings
- Customer Otp
Billing
- Invoice
- Invoice Position Item
- Billing Run
Dunning
- Dunning Document
- Dunning Rule
Subscription
- Subscription
- Subscription Item
- Subscription Measurement
- Billing Group
Offers
- Offer
- Offer Recipient
- Offer Template
Catalogue
- Unit
- Measurement
- Product
- Product Family
- Price Plan
- Coupon
Checkout
- Checkout Link
- Cart
Accounting
Media
Get all medias
Get all medias
Required permissions:media:read
GET
/
media
curl -X GET \
/media \
--header "Authorization: Bearer <token>"
{
"data": [
{
"id": "01F9Z3ZJXZQZJZJZJZJZJZJZJZ",
"mediaFolder": {
"name": "invoice"
},
"isPrivate": true,
"mimeType": "image/jpeg",
"fileExtension": "jpg",
"fileName": "invoice.jpg",
"storageFileName": "01F9Z3ZJXZQZJZJZJZJZJZJZJZ.jpg",
"createdAt": "2021-01-01T00:00:00+00:00"
}
],
"meta": {
"pagination": {
"totalItems": 123,
"itemsPerPage": 123,
"currentPage": 123,
"lastPage": 123,
"pageTotalItems": 123
}
}
}
Authorizations
Value for the Authorization header parameter.
Query Parameters
The collection page number
The number of items per page
Required range:
0 <= x <= 100
Available options:
asc
, desc
Response
200
application/json
Media collection
Whether the media is public accessible or not
Example:
true
The mime type of the media
Example:
"image/jpeg"
The file extension of the media
Example:
"jpg"
The original file name of the media
Example:
"invoice.jpg"
The file name of the media in the storage
Example:
"01F9Z3ZJXZQZJZJZJZJZJZJZJZ.jpg"
The date and time when the media was created
Example:
"2021-01-01T00:00:00+00:00"
Was this page helpful?
curl -X GET \
/media \
--header "Authorization: Bearer <token>"
{
"data": [
{
"id": "01F9Z3ZJXZQZJZJZJZJZJZJZJZ",
"mediaFolder": {
"name": "invoice"
},
"isPrivate": true,
"mimeType": "image/jpeg",
"fileExtension": "jpg",
"fileName": "invoice.jpg",
"storageFileName": "01F9Z3ZJXZQZJZJZJZJZJZJZJZ.jpg",
"createdAt": "2021-01-01T00:00:00+00:00"
}
],
"meta": {
"pagination": {
"totalItems": 123,
"itemsPerPage": 123,
"currentPage": 123,
"lastPage": 123,
"pageTotalItems": 123
}
}
}