cURL
curl --request GET \ --url https://api.starleads.co/Agent/{agentId}/prompt \ --header 'X-Api-Key: <api-key>'
{ "agentId": "64a1b2c3d4e5f6a7b8c9d0e1", "agentName": "My Sales Agent", "prompt": "You are a friendly sales assistant..." }
Retrieves the current prompt configured for an agent. The agent must belong to the same company as the API key used for authentication.
Api key to pass as a X-Api-Key request header.
X-Api-Key
ID of the agent.
Success
ID of the agent
Name of the agent
The current prompt text of the agent