> ## Documentation Index
> Fetch the complete documentation index at: https://docs.squarecloud.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Blob Object Info

> Leggi i dettagli di un file con GET /v1/objects/info: dimensione, content type, scadenza, visibilità, cache, nome originale e metadati.

<ParamField header="Authorization" type="string" placeholder="API Key" required>
  La chiave API del tuo account. Puoi trovarla nelle [impostazioni del tuo account](https://squarecloud.app/it/account/security).
</ParamField>

Object Info restituisce tutto ciò che Blob Storage sa di un file senza scaricarlo: dimensione, content type, scadenza, visibilità, gli header con cui viene servito, il nome file originale e i tuoi metadati. Richiede lo scope `blob:read`.

<ParamField query="object" type="string" required>
  L'id del file.
</ParamField>

### Limiti di frequenza

<Note>60 richieste al minuto (`RATE_LIMITED`, 429).</Note>

### Risposta

<ResponseField name="status" type="string">
  "success" in caso di successo, "error" in caso contrario.
</ResponseField>

<ResponseField name="response" type="object">
  <Expandable title="Mostra oggetto">
    <ResponseField name="id" type="string">
      L'id del file.
    </ResponseField>

    <ResponseField name="size" type="number">
      La dimensione, in byte.
    </ResponseField>

    <ResponseField name="content_type" type="string">
      Il `Content-Type` con cui il file viene servito, derivato dalla sua estensione.
    </ResponseField>

    <ResponseField name="etag" type="string">
      L'ETag. Cambia quando cambia il contenuto.
    </ResponseField>

    <ResponseField name="created_at" type="ISO 8601">
      Quando il file è stato scritto. Modificare visibilità, scadenza o header riscrive il file e reimposta questa data.
    </ResponseField>

    <ResponseField name="expires_at" type="ISO 8601 | null">
      Quando il file verrà eliminato, oppure `null`.
    </ResponseField>

    <ResponseField name="private" type="boolean">
      Se il file è privato.
    </ResponseField>

    <ResponseField name="url" type="string | null">
      L'URL pubblico, oppure `null` per i file privati.
    </ResponseField>

    <ResponseField name="cache_control" type="string | null">
      L'header `Cache-Control`, oppure `null` quando si applica il valore predefinito della CDN.
    </ResponseField>

    <ResponseField name="content_disposition" type="string | null">
      L'header `Content-Disposition`, oppure `null`.
    </ResponseField>

    <ResponseField name="original_name" type="string | null">
      Il nome del file così come è stato caricato.
    </ResponseField>

    <ResponseField name="metadata" type="object">
      I tuoi metadati, come stringhe chiave e valore.
    </ResponseField>

    <ResponseField name="legacy" type="boolean">
      `true` per i file legacy, archiviati prima dell'aggiornamento di settembre 2026.
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://blob.squarecloud.app/v1/objects/info?object=pub/3155597145698959364/images/logo_mugws5c0-9f86d081884c7d659a2feaa0c55ad015.png' \
    --header 'Authorization: YOUR_API_KEY'
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "status": "success",
    "response": {
      "id": "pub/3155597145698959364/images/logo_mugws5c0-9f86d081884c7d659a2feaa0c55ad015.png",
      "size": 416230,
      "content_type": "image/png",
      "etag": "\"9bb58f26192e4ba00f01e2e7b136bbd8\"",
      "created_at": "2026-09-25T12:00:00.000Z",
      "expires_at": null,
      "private": false,
      "url": "https://blob.squarecloud.dev/pub/3155597145698959364/images/logo_mugws5c0-9f86d081884c7d659a2feaa0c55ad015.png",
      "cache_control": "public, max-age=31536000, immutable",
      "content_disposition": null,
      "original_name": "logo.png",
      "metadata": { "campaign": "spring" },
      "legacy": false
    }
  }
  ```
</ResponseExample>

### Errori

| Codice             | HTTP | Quando                                            |
| ------------------ | ---- | ------------------------------------------------- |
| `INVALID_OBJECT`   | 400  | `object` manca, è malformato o non ti appartiene. |
| `OBJECT_NOT_FOUND` | 404  | Il file non esiste.                               |
| `RATE_LIMITED`     | 429  | Più di 60 richieste in un minuto.                 |
