跳轉到

取得單一提示詞資訊

此 API 用於取得單一 Prompt 的詳細資訊。

透過指定的 prompt_id,你可以查詢該提示詞的內容、描述資訊與建立時間等欄位。

curl -X 'GET' \
  'https://127.0.0.1:8000/v1/prompt/{prompt_id}' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer <your-api-key>'

Request Headers

Key Value
Request Method GET
accept application/json
Authorization Bearer

Query Parameters

Field Type Note Required
prompt_id string uuid true

Response Body

{
  "id": "dae76e24-ca4b-414f-92be-21abe36a70f7",
  "value": "Antibiotics are a type of medication used to treat bacterial infections. They work by either killing the bacteria or preventing them from reproducing, allowing the body's immune system to fight off the infection. Antibiotics are usually taken orally in the form of pills, capsules, or liquid solutions, or sometimes administered intravenously. They are not effective against viral infections, and using them inappropriately can lead to antibiotic resistance.\\nExplain the above in one sentence:",
  "name": "Antibiotics Explanation",
  "metadata": {
    "tag": [
      "medication",
      "antibiotics"
    ]
  },
  "created_at": "2025-01-01T00:15:00.000Z"
}

Field Explanation

回傳 「提示詞物件」章節內容。