Skip to main content
PUT
/
agent
/
update-image
{
    "agentId": "2fe35eeb-5aa6-4564-94c2-2ce44e65625d",
    "imageUrl": "https://example.com/image.png"
}
{
    "status": "success",
    "message": "Agent 2fe35eeb-5aa6-4564-94c2-2ce44e65625d image URL updated",
    "agentId": "2fe35eeb-5aa6-4564-94c2-2ce44e65625d",
    "imageUrl": "https://example.com/image.png"
}
This endpoint is used to update the image URL of an agent.

Request Parameters

agentId
string
required
The unique identifier for the agent (UUID format)
imageUrl
string
required
The new image URL for the agent

Response

status
string
Status of the operation (e.g., “success”)
message
string
Success message indicating the agent image URL was updated
agentId
string
The agent ID that was updated (UUID format)
imageUrl
string
The updated agent image URL

Behavior

  • Updates the image URL for the specified agent in our internal database

Authentication

B2B JWT token OR Privy authentication token and headers

Headers

When using Privy authentication token, include the following header:
  • x-privy-id-token: Privy ID token
{
    "agentId": "2fe35eeb-5aa6-4564-94c2-2ce44e65625d",
    "imageUrl": "https://example.com/image.png"
}
{
    "status": "success",
    "message": "Agent 2fe35eeb-5aa6-4564-94c2-2ce44e65625d image URL updated",
    "agentId": "2fe35eeb-5aa6-4564-94c2-2ce44e65625d",
    "imageUrl": "https://example.com/image.png"
}