Prompts
/prompts/{promptId}
Get a single prompt.
GET
/
api
/
v1
/
prompts
/
{promptId}
Copy
curl --location --request GET 'https://api.rapidagent.ai/api/v1/prompts/{promptId}' \
--header 'Content-Type: application/json' \
--header 'Autorization: Bearer <token>'
Copy
{
"success": true,
"data": {
"id": "cli28c2vd00016itbrlhekwql",
"name": "My prompt",
"template": "...",
"input_variables": [
"question",
"history"
],
}
}
Params
A valid prompt
id.
Response
Indicates whether the call was successful.
A prompt
object.
Copy
curl --location --request GET 'https://api.rapidagent.ai/api/v1/prompts/{promptId}' \
--header 'Content-Type: application/json' \
--header 'Autorization: Bearer <token>'
Copy
{
"success": true,
"data": {
"id": "cli28c2vd00016itbrlhekwql",
"name": "My prompt",
"template": "...",
"input_variables": [
"question",
"history"
],
}
}
Copy
curl --location --request GET 'https://api.rapidagent.ai/api/v1/prompts/{promptId}' \
--header 'Content-Type: application/json' \
--header 'Autorization: Bearer <token>'
Copy
{
"success": true,
"data": {
"id": "cli28c2vd00016itbrlhekwql",
"name": "My prompt",
"template": "...",
"input_variables": [
"question",
"history"
],
}
}
Assistant
Responses are generated using AI and may contain mistakes.