Skip to main content
GET
Get one Model

Authorizations

Authorization
string
header
required

An Earnie API key, sent as Authorization: Bearer sk_earnie_.... Create one under Settings > API keys. The key's scopes decide which operations it may call.

Path Parameters

projectId
string<uuid>
required
modelId
string<uuid>
required

Response

The Model.

id
string<uuid>
required
filename
string
required
kind
enum<string>
required

file: one model file. snapshot: a Hugging Face snapshot directory sent as a tar.

Available options:
file,
snapshot
sha256
string
required
size_bytes
integer<int64>
required
status
enum<string>
required

From the Model's latest scan. identified: the scan completed and findings holds its result, which can still say the model was not matched. failed: the scan failed or was cancelled; upload the file again to retry.

Available options:
scanning,
identified,
failed
weights
enum<string>
required

Whether Earnie still holds the model's bytes. They are deleted once the scan ends, whatever its outcome.

Available options:
stored,
deleted
scan
object
required
created_at
string<date-time>
required
findings
object[]
required

The Model's present ai findings.