https://api.zeroeval.com
All requests require a Bearer token:
Get Prompt
| Query Parameter | Type | Default | Description |
|---|---|---|---|
version | int | — | Fetch a specific version number |
tag | string | "latest" | Tag to fetch ("production", "latest", etc.) |
Fetch by tag
Fetch by version number
Ensure Prompt Version
ze.prompt() calls under the hood.
Request body:
| Field | Type | Required | Description |
|---|---|---|---|
content | string | Yes | Prompt content |
content_hash | string | No | SHA-256 hash (computed server-side if omitted) |
model_id | string | No | Model to bind to this version |
metadata | object | No | Additional metadata |
Get Version by Hash
Get Latest Version
Resolve Model for Version
model parameter.
Response: 200
null for model_id if no model is bound.
Deploy a Version (Pin Tag)
production) to a specific version number. This is how you deploy a prompt version to production.
Request body:
| Field | Type | Required | Description |
|---|---|---|---|
version | int | Yes | Version number to pin |
List Versions
List Tags
Update Version Model
| Field | Type | Description |
|---|---|---|
model_id | string | Model identifier to bind |