Skip to content

GET /v1/projects/{projectId}/agent-profile

Returns the agent profile belonging to the identified project. The profile is project-scoped and is distinct from the authenticated account's personal profile. Use the dedicated avatar operations when uploading or removing an agent avatar.

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

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.projects.agentProfile.get({
  path: {
    projectId: "projectId",
  },
});
{
  "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.

projectIdstringrequired

Returns

200 The Project's agent profile. AgentProfile

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

avatarUrlstring (uri)required
firstNamestringrequired
lastNamestring | nullrequired

304 Not Modified. Sent only when If-None-Match matches the ETag of an earlier 200 response for the same representation; no body. No body.

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