Retrieve Prompt Deployment

Beta

Used to retrieve a Prompt Deployment given its ID or name.

Path parameters

idstringRequired

Either the Deployment’s ID or its unique name

Headers

X-API-KEYstringRequired

Response

idstringformat: "uuid"
createddatetime
labelstring<=150 characters

A human-readable label for the deployment

namestring<=150 characters

A name that uniquely identifies this deployment within its workspace

last_deployed_ondatetime
input_variableslist of objects
last_deployed_history_item_idstringformat: "uuid"

The ID of the history item associated with this Deployment’s LATEST Release Tag

statusenumOptional

The current status of the deployment

  • ACTIVE - Active
  • ARCHIVED - Archived
Allowed values:
environmentenumOptional

The environment this deployment is used in

  • DEVELOPMENT - Development
  • STAGING - Staging
  • PRODUCTION - Production
Allowed values:
descriptionstringOptional

A human-readable description of the deployment

active_model_version_idslist of stringsOptionalDeprecated

Deprecated. This now always returns a null value.