curl --request GET \
--url https://app.asserto.ai/api/prompts/{slug}{
"slug": "<string>",
"messages": [
{
"role": "<string>",
"content": {
"type": "<string>",
"text": "<string>"
}
}
],
"model": {
"name": "<string>",
"kind": "system",
"provider": "<string>",
"id": 123,
"url": "<string>",
"config": {},
"pricing": {
"tkInput": "<string>",
"tkOutput": "<string>",
"tkCacheWrite": "<string>",
"tkCacheRead": "<string>"
}
},
"genParams": {
"temperature": 0.1
},
"respFormat": "<string>",
"tools": [
{
"name": "<string>",
"inputSchema": {
"properties": {},
"required": [
"<string>"
],
"type": "object"
},
"description": ""
}
],
"outputSchema": {
"name": "<string>",
"schema": {
"properties": {},
"type": "object",
"required": [],
"additionalProperties": false
},
"description": "<string>",
"strict": false
},
"variables": []
}Get single prompt by slug.
Get only major versions
curl --request GET \
--url https://app.asserto.ai/api/prompts/{slug}{
"slug": "<string>",
"messages": [
{
"role": "<string>",
"content": {
"type": "<string>",
"text": "<string>"
}
}
],
"model": {
"name": "<string>",
"kind": "system",
"provider": "<string>",
"id": 123,
"url": "<string>",
"config": {},
"pricing": {
"tkInput": "<string>",
"tkOutput": "<string>",
"tkCacheWrite": "<string>",
"tkCacheRead": "<string>"
}
},
"genParams": {
"temperature": 0.1
},
"respFormat": "<string>",
"tools": [
{
"name": "<string>",
"inputSchema": {
"properties": {},
"required": [
"<string>"
],
"type": "object"
},
"description": ""
}
],
"outputSchema": {
"name": "<string>",
"schema": {
"properties": {},
"type": "object",
"required": [],
"additionalProperties": false
},
"description": "<string>",
"strict": false
},
"variables": []
}API Key in the format: Authorization: ApiKey <key>
Successful Response
Prompt info with nested tool definitions
Show child attributes
system, custom Show child attributes
Schema for response when using response format json_schema
Show child attributes
Schema name. Must match pattern: ^[a-zA-Z0-9_-]+$
Schema that describes the output.
Show child attributes
Dictionary of parameter names to their definitions.
Show child attributes
Show child attributes
The data type of the parameter, e.g., 'string', 'number', 'object'.
Description of the parameter.
Dictionary of parameter names to their definitions.
"object"List of required parameters.
Indicates if additional properties are allowed.
A brief description of the Schema.