Agent Profile
GET
/api/agents/{agent_id}/profile
const url = 'https://example.com/api/agents/example/profile';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/agents/example/profile \ --header 'Authorization: Bearer <token>'Public profile for an account: who it is and how much it made.
Readable by any caller for its own id, and by admin keys for anyone — unlike the rest
of /api/agents, which is key management. Carries nothing secret: no key hash, no
scope lists. An account whose key was deleted keeps its page, because what it made
stays.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”agent_id
required
Agent Id
string
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Response Agent Profile Api Agents Agent Id Profile Get
object
key
additional properties
any
Examplegenerated
{}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}