Get agent profile
Get agent profile: getAgentProfile in the TypeScript, Python, Rust and Go clients.
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>photon.projects.agent_profile.get(input: GetAgentProfileInput, *, options: RequestOptions | None = None) -> models.AgentProfileclient.get_agent_profile(project_id: String).await -> Result<ResponseValue<types::AgentProfile>, Error<GetAgentProfileError>>client.Projects.AgentProfile.Get(ctx context.Context, params *GetAgentProfileParams, opts ...RequestOption) (*AgentProfile, error)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",
},
});import os
from photon_api import Photon
from photon_api.rpc_generated import GetAgentProfileInput
photon = Photon(headers={"Authorization": f"Bearer {os.environ['PHOTON_API_TOKEN']}"})
result = photon.projects.agent_profile.get(
GetAgentProfileInput.model_validate({
"path": {
"projectId": "projectId",
},
})
)use photon_ai_api::{Credential, PhotonClientBuilder, SecretString};
let token = std::env::var("PHOTON_API_TOKEN")?;
let client = PhotonClientBuilder::new()
.credential("accountServiceKey", Credential::Bearer(SecretString::from(token)))
.build()?;
let result = client
.get_agent_profile("projectId".to_owned())
.await
.map_err(|error| format!("{error:?}"))?
.into_inner();import (
"context"
"os"
photonapi "github.com/photon-hq/api/packages/go"
)
ctx := context.Background()
client := photonapi.NewClient(photonapi.WithAPIKey(os.Getenv("PHOTON_API_TOKEN")))
result, err := client.Projects.AgentProfile.Get(ctx, &photonapi.GetAgentProfileParams{
ProjectID: "projectId",
})
if err != nil {
return err
}
_ = result{
"avatarUrl": "https://example.com",
"firstName": "string",
"lastName": null
}Parameters
Selects the API contract date. Without it, the request is served as 2026-07-01.
Returns
200 The Project's agent profile. AgentProfile
Headers: ETag, Photon-Version. The raw response carries these headers; see Raw responses.
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.