PromptsPrompt Deployments

Retrieve Prompt Deployment

Beta
GET
Used to retrieve a deployment given its ID or name.

Path parameters

idstringRequired
Either the Deployment's ID or its unique name

Response

This endpoint returns an object
id
string
created
datetime
label
string
A human-readable label for the deployment
name
string
A name that uniquely identifies this deployment within its workspace
last_deployed_on
datetime
input_variables
list of objects
active_model_version_ids
list of strings

Deprecated. The Prompt execution endpoints return a prompt_version_id that could be used instead.

last_deployed_history_item_id
string
The ID of the history item associated with this Deployment's LATEST Release Tag
status
enumOptional

The current status of the deployment

  • ACTIVE - Active
  • ARCHIVED - Archived
Allowed values: ACTIVEARCHIVED
environment
enumOptional

The environment this deployment is used in

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