Agents
Get attribution report for an agent
Changed onSelf-scope by default. Requester must match target agent (x-agent-name or username), unless admin uses ?privileged=1.
get/api/agents/{id}/attribution
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- Auth
- API key in cookie __Host-mc-session
- or API key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
Query parameters
hoursinteger
Time window in hours, integer range 1..720. Defaults to 24.
sectionstring
Example:identity,audit
Comma-separated subset of identity,audit,mutations,cost. Defaults to all.
privileged'1'
Set to 1 for admin override of self-scope checks.
Headers
x-agent-namestring
Attribution identity header used for self-scope authorization.
Response
Attribution report
Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking