Skip to content

DELETE /v1/projects/{projectId}/agent-profile/avatar

Replaces the selected project's agent avatar with the project's default avatar, a generated planet image derived from the project ID, and returns the updated agent profile. The reset does not restore an earlier avatar: a custom avatar it replaces is discarded and must be uploaded and committed again to use it. When the default avatar is already in use, the profile is returned unchanged. This does not change the account's personal profile picture. Supply the required Idempotency-Key header.

photon.projects.agentProfile.resetAvatar(input: ResetAgentProfileAvatarInput, options?: RequestOptions): Promise<ResetAgentProfileAvatarOutput>
import { Photon } from "@photon-ai/api";

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.projects.agentProfile.resetAvatar({
  path: {
    projectId: "projectId",
  },
  headers: {
    idempotencyKey: "idempotencyKey",
  },
});
{
  "avatarUrl": "https://example.com",
  "firstName": "string",
  "lastName": null
}

Parameters

Photon-VersionPhotonVersion

Selects the API contract date. Without it, the request is served as 2026-07-01.

Idempotency-Keystringrequired

Identifies one logical mutation across retries.

projectIdstringrequired

Returns

200 The agent profile with the project's default avatar. AgentProfile

Headers: Photon-Version. The raw response carries these headers; see Raw responses.

avatarUrlstring (uri)required
firstNamestringrequired
lastNamestring | nullrequired