Skip to content

Get prompt.

GET
/backend/v1/prompts/{promptId}

Retrieves a prompt by its ID.

Authorizations

HTTPBearer
TypeHTTP (bearer)

Parameters

Path Parameters

promptId*
Typestring
Required
formatuuid

Query Parameters

fetchScanners

Return the scanners and their configuration that were run on the prompt.

Typeboolean
defaultfalse

Responses

Successful Response
application/json
JSON
{
"memory": [
{
"externalMetadata": "string",
"fromTemplate": false,
"id": "string",
"input": "string",
"memory": "string",
"orgId": "string",
"parentId": "string",
"preserve": false,
"projectId": "string",
"provider": "string",
"receivedAt": "string",
"result": {
"analysis": "string",
"files": "string",
"outcome": "string",
"providerResult": "string",
"response": "string",
"scannerResults": [
{
"completedDate": "string",
"customConfig": false,
"data": {
"matches": [
[
]
],
"type": "regex"
},
"outcome": "string",
"scanDirection": "string",
"scannerId": "string",
"scannerVersionMeta": "string",
"startedDate": "string"
}
]
},
"type": "string",
"userId": "string"
}
],
"prompt": "string",
"promptScanners": "string"
}

Playground

Authorization
Variables
Key
Value

Samples

Powered by VitePress OpenAPI

Updated at: