Get an API key
Storage

GET /api/storage/:id

GET https://api.iagenify.com/api/storage/ID

Reference for GET /api/storage/:id.

authenticatedno JSON body

HTTP request

curl https://api.iagenify.com/api/storage/ID -X GET -H "Authorization: Bearer $IAGENIFY_TOKEN"

JavaScript

const response = await fetch("https://api.iagenify.com/api/storage/ID", {
  method: "GET",
  headers: { Authorization: `Bearer ${process.env.IAGENIFY_TOKEN}` }
});
const result = await response.json();
if (!response.ok) throw new Error(result.error);

Python

import os
import requests

response = requests.request("GET", "https://api.iagenify.com/api/storage/ID", headers={"Authorization": "Bearer " + os.environ["IAGENIFY_TOKEN"]}, timeout=30)
response.raise_for_status()
result = response.json()

Path parameters

idstringrequired

Value for :id.

Response and errors

Success returns JSON from the endpoint. Explicit statuses: 404. Error codes: storage_not_found.