/v1/artifact-schemasAPI keyList schemas
Read the typed schemas the project's artifacts and records are held against.
A schema is what makes a record queryable rather than a blob: it declares the fields, their types, and which are required.
curl -X GET "https://runlog-7613480744.us-central1.run.app/v1/artifact-schemas" \
-H "Authorization: Bearer $RUNLOG_API_KEY" \
-H "X-Project-Id: p7Kd2mQx"{
"schemas": [
{
"fields": [
{
"name": "palette",
"type": "string[]"
}
],
"name": "Design mood board",
"schemaId": "sch_4Kd2Qm"
}
]
}Errors
| Status | error | When |
|---|---|---|
| 404 | project not found | The project does not exist, or you have no access to it. Projects are non-enumerable, so a denied read is indistinguishable from a missing one. |
| 401 | invalid API key | The `Authorization` header is missing, malformed, or names a revoked key. |
| 400 | name the target project via the X-Project-Id header or projectId query | No project was named and the key is not bound to one. |
| 429 | rate limit exceeded | You passed 60 requests/minute on this key. `Retry-After` carries the seconds to wait. |
| 500 | internal error | The relay failed to serve the request. Retry with backoff; the cause is logged server-side against your request. |