curl --location --request GET 'https://api.rapidagent.ai/api/v1/prompts/{promptId}' \
--header 'Content-Type: application/json' \
--header 'Autorization: Bearer <token>'
{
"success": true,
"data": {
"id": "cli28c2vd00016itbrlhekwql",
"name": "My prompt",
"template": "...",
"input_variables": [
"question",
"history"
],
}
}
Get a single prompt.
curl --location --request GET 'https://api.rapidagent.ai/api/v1/prompts/{promptId}' \
--header 'Content-Type: application/json' \
--header 'Autorization: Bearer <token>'
{
"success": true,
"data": {
"id": "cli28c2vd00016itbrlhekwql",
"name": "My prompt",
"template": "...",
"input_variables": [
"question",
"history"
],
}
}
prompt
id.prompt
object.curl --location --request GET 'https://api.rapidagent.ai/api/v1/prompts/{promptId}' \
--header 'Content-Type: application/json' \
--header 'Autorization: Bearer <token>'
{
"success": true,
"data": {
"id": "cli28c2vd00016itbrlhekwql",
"name": "My prompt",
"template": "...",
"input_variables": [
"question",
"history"
],
}
}