Skip to main content
GET
/
v1
/
prompts
cURL
curl -X GET "https://api.llmide.app/v1/prompts?deployId=dep_12345" \
  -H "Authorization: Bearer sk_live_xxx"
{
  "id": "prompt_abc123",
  "title": "Welcome Flow",
  "messages": [
    {
      "role": "system",
      "content": "You are a helpful assistant."
    }
  ],
  "deploy": {
    "id": "dep_12345",
    "name": "Production",
    "currentVersion": 7,
    "isActive": true
  },
  "workspace": {
    "id": "ws_67890",
    "name": "Acme Inc."
  },
  "description": "Greeting flow for new sign-ups",
  "llmConfig": {
    "provider": "openai",
    "model": "gpt-4o",
    "temperature": 0.4
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

deployId
string
required

The deployment ID to retrieve. Must belong to the current API key's workspace and be in active state

Example:

"dep_12345"

Response

Successful response with prompt data

id
string
required

Prompt ID

Example:

"prompt_abc123"

title
string
required

Current version title

Example:

"Welcome Flow"

messages
object[]
required

Prompt message sequence with role and content fields

deploy
object
required
workspace
object
required
description
string | null

Current version description

Example:

"Greeting flow for new sign-ups"

llmConfig
object

Custom LLM configuration JSON

Example:
{
"provider": "openai",
"model": "gpt-4o",
"temperature": 0.4
}