cURL
curl -X GET "https://api.llmide.app/v1/prompts?deployId=dep_12345" \
-H "Authorization: Bearer sk_live_xxx"import requests
headers = {
'Authorization': 'Bearer sk_live_xxx'
}
params = {
'deployId': 'dep_12345'
}
response = requests.get('https://api.llmide.app/v1/prompts', headers=headers, params=params)
print(response.json())const response = await fetch('https://api.llmide.app/v1/prompts?deployId=dep_12345', {
method: 'GET',
headers: {
'Authorization': 'Bearer sk_live_xxx'
}
});
const data = await response.json();
console.log(data);<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.llmide.app/v1/prompts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.llmide.app/v1/prompts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.llmide.app/v1/prompts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.llmide.app/v1/prompts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"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
}
}{
"error": "Missing or invalid deployId parameter"
}{
"error": "Missing or invalid deployId parameter"
}{
"error": "Missing or invalid deployId parameter"
}{
"error": "Rate limit exceeded",
"details": {
"limit": 123,
"used": 123,
"resetTime": 123,
"upgradeUrl": "<string>"
}
}{
"error": "Missing or invalid deployId parameter"
}Prompts
Get prompt by deployment ID
Retrieves the current active version’s prompt metadata (title, description, LLM configuration, and message list) by deployment ID, along with associated deployment and workspace information
GET
/
v1
/
prompts
cURL
curl -X GET "https://api.llmide.app/v1/prompts?deployId=dep_12345" \
-H "Authorization: Bearer sk_live_xxx"import requests
headers = {
'Authorization': 'Bearer sk_live_xxx'
}
params = {
'deployId': 'dep_12345'
}
response = requests.get('https://api.llmide.app/v1/prompts', headers=headers, params=params)
print(response.json())const response = await fetch('https://api.llmide.app/v1/prompts?deployId=dep_12345', {
method: 'GET',
headers: {
'Authorization': 'Bearer sk_live_xxx'
}
});
const data = await response.json();
console.log(data);<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.llmide.app/v1/prompts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.llmide.app/v1/prompts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.llmide.app/v1/prompts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.llmide.app/v1/prompts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"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
}
}{
"error": "Missing or invalid deployId parameter"
}{
"error": "Missing or invalid deployId parameter"
}{
"error": "Missing or invalid deployId parameter"
}{
"error": "Rate limit exceeded",
"details": {
"limit": 123,
"used": 123,
"resetTime": 123,
"upgradeUrl": "<string>"
}
}{
"error": "Missing or invalid deployId parameter"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
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
Prompt ID
Example:
"prompt_abc123"
Current version title
Example:
"Welcome Flow"
Prompt message sequence with role and content fields
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Current version description
Example:
"Greeting flow for new sign-ups"
Custom LLM configuration JSON
Example:
{ "provider": "openai", "model": "gpt-4o", "temperature": 0.4 }