Get media
curl --request GET \
--url https://api.autoadify.com/v1/media/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.autoadify.com/v1/media/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.autoadify.com/v1/media/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "<string>",
"type": "image",
"status": "pending",
"fileName": "<string>",
"mimeType": "<string>",
"sizeBytes": 0,
"url": "<string>",
"thumbnailUrl": "<string>",
"width": 0,
"height": 0,
"durationSeconds": 0,
"altText": "<string>",
"description": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}Media
Get media
One media item.
Requires the read scope.
GET
/
media
/
{id}
Get media
curl --request GET \
--url https://api.autoadify.com/v1/media/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.autoadify.com/v1/media/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.autoadify.com/v1/media/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "<string>",
"type": "image",
"status": "pending",
"fileName": "<string>",
"mimeType": "<string>",
"sizeBytes": 0,
"url": "<string>",
"thumbnailUrl": "<string>",
"width": 0,
"height": 0,
"durationSeconds": 0,
"altText": "<string>",
"description": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"details": {}
}
}Authorizations
An API key from Autoadify → Settings → Developers, sent as Authorization: Bearer aak_live_….
Path Parameters
Media id.
Response
The media item.
Use in mediaIds when creating a post.
Available options:
image, gif, video, document, audio Available options:
pending, ready, failed Required range:
-9007199254740991 <= x <= 9007199254740991Required range:
-9007199254740991 <= x <= 9007199254740991Required range:
-9007199254740991 <= x <= 9007199254740991Required range:
-9007199254740991 <= x <= 9007199254740991What the file shows, from Autoadify's vision pass; null until it has run.

