Skip to main content
GET
/
v1
/
prompts
/
{promptId}
Get Prompt Log
curl --request GET \
  --url https://api.agentmark.co/v1/prompts/{promptId} \
  --header 'Authorization: <api-key>' \
  --header 'X-Agentmark-App-Id: <x-agentmark-app-id>'
{
  "prompt": {
    "id": "plog-abc123",
    "promptName": "greeting",
    "model": "gpt-4o",
    "latencyMs": 823.5,
    "tokens": 450,
    "status": "success",
    "createdAt": "2026-04-10T15:30:45.123Z"
  }
}

Authorizations

Authorization
string
header
required

Your AgentMark API key. Create one in the dashboard under Settings > API Keys.

Example: Authorization: Bearer am_live_abc123

Headers

X-Agentmark-App-Id
string
required

Your application ID. Found in the dashboard under Settings > General.

Example:

"app_abc123"

Path Parameters

promptId
string
required

The prompt log ID to retrieve.

Response

The prompt execution log.

prompt
object