Dev's NoxDev's Nox
Avatars

Get file status

Return a file slot status (IApiFile) without streaming its bytes. fileRef is the file name or its numeric id. Poll it while refetch_at is not null.

GET
/api/avatars/{id}/releases/{releaseId}/files/{fileRef}/status

Authorization

bearer
AuthorizationBearer token

User session token. Obtained from POST /api/auth/login.

In: header

Path Parameters

id*string
releaseId*string
fileRef*string

Response Body

application/json

curl -X GET "https://loading/api/avatars/string/releases/string/files/string/status"
{
  "data": {
    "id": 101,
    "name": "my-mod-windows.zip",
    "url": "https://…/files/101",
    "alias": [
      {
        "key": "iid",
        "value": "1@my-server.com"
      }
    ],
    "size": 12345678,
    "mime": "application/zip",
    "hashs": [
      "sha256:…"
    ],
    "uploader": "1@example.com",
    "status": "completed",
    "attributes": [
      {
        "key": "platform",
        "value": "windows"
      }
    ],
    "analysis": {},
    "created_at": 1789340000000,
    "updated_at": 1789340060000,
    "signature": "ed25519:MEQCIG9X…",
    "expires_at": 1789340000000,
    "refetch_at": 1789340300000
  },
  "error": null,
  "time": 1680000000000,
  "request": "/api/endpoint"
}