Skip to main content
GET
Returns lifecycle metadata, not full prompt content. Use Get prompt draft version to fetch the stored arrays for a specific version. The response is an object with versions and currentPublishedVersionId, not the legacy history array. isStale is true for a draft whose non-null parent differs from the current published version. If no lifecycle versions exist yet, this read may initialize the current prompt’s version history.

Headers

string
required
Bearer token containing your Fini workspace API key. Format: Bearer fini_... The key needs read scope.

Path parameters

string
required
Agent ID.

Response

object[]
Version IDs, numbers, status, creation/publication metadata, isCurrentPublished, and isStale. An agent without versions can return an empty list.
string | null
ID of the current published lifecycle version, or null.

Errors

Invalid agent IDs are rejected. The agent must belong to the API key’s workspace. All requests can return 401 for an invalid or revoked key, or 403 when the required scope is missing.