Skip to main content
GET
/
ghl
/
agents
/
{id}
/
prompts
Agent prompt history
curl --request GET \
  --url https://ai.wisepilot.app/api/v1/ghl/agents/{id}/prompts \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "agentId": "<string>",
    "agentName": "<string>",
    "prompts": [
      {
        "versionNumber": 123,
        "promptText": "<string>",
        "isActive": true,
        "createdAt": "2023-11-07T05:31:56Z"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

API key prefixed with cr_ (e.g. cr_a1b2c3...)

Path Parameters

id
string
required

GHL agent ID

Response

Prompt history

success
boolean
required
data
object