GET
/prompts/{id} Get prompt
Authenticate with
Authorization: Bearer obk_live_xxx. See authentication. Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
X-Workspace-Id | header | string | required | The workspace to scope the request to. Can also be passed as a `workspace_id` query parameter. |
id | path | string | required |
Responses
200 OK
| Field | Type | Description |
|---|---|---|
prompt | Prompt |
404 Resource not found
Example request
curl --request GET \
--url https://app.orchly.ai/api/v1/prompts/:id \
--header 'Authorization: Bearer obk_live_xxx' \
--header 'X-Workspace-Id: ws_xxx'const res = await fetch(`https://app.orchly.ai/api/v1/prompts/${id}`, {
method: 'GET',
headers: {
'Authorization': 'Bearer obk_live_xxx',
'X-Workspace-Id': 'ws_xxx',
},
});
const data = await res.json();import requests
resp = requests.get(
"https://app.orchly.ai/api/v1/prompts/{id}",
headers={
"Authorization": "Bearer obk_live_xxx",
"X-Workspace-Id": "ws_xxx",
},
)
data = resp.json() Example response
A 200 response. Dynamic fields are shown as their type.
{
"prompt": {
"id": "string",
"prompt_text": "string",
"topic_id": "string",
"enabled": true,
"country": "string",
"target_models": [
"string"
],
"priority": 0,
"last_run_at": "string",
"next_run_at": "string",
"created_at": "string"
}
}