Reference/Memory
PATCH
/v1/agents/:id/memoryUpdate agent Memory
Send only the Memory pieces you want to change. Nested JSON objects are allowed.
Full URL
PATCH https://api.tryleadreach.com/v1/agents/:id/memory
Headers
X-Api-Key(required): your API key from the app Keys tab.Content-Type: application/json(required)
Path params (in the URL)
| Name | Type | Required | Meaning |
|---|---|---|---|
| id | uuid | Yes | The agent's id (from Create agent or List agents). |
Query params (after ?)
None
Request body (JSON)
| Field | Type | Required | Meaning |
|---|---|---|---|
| profileJson | object | No | Business / offer profile. |
| icpJson | object | No | Ideal customer profile (roles, industries, …). |
| identityJson | object | No | How the agent speaks. |
Example request (JSON)
What you send: headers, and path / query / body when used.
{
"headers": {
"X-Api-Key": "lr_your_key_here",
"Content-Type": "application/json"
},
"path": {
"id": "a1111111-1111-1111-1111-111111111111"
},
"body": {
"icpJson": {
"roles": ["Founder"]
}
}
}Example response (JSON)
Typical successful response shape.
{
"profileJson": { "company": "Acme" },
"icpJson": { "roles": ["Founder"] },
"identityJson": { "voice": "friendly" }
}Response
Updated Memory object.
Credits
0