Get the position chain of an actor
Code Mode: praxis.workforce.actors.retrieve
HTTP: GET /workforce/v1/actors/{actor}
Reads where an actor, person or agent, sits in the organization: its primary position and its concurrent positions, each with the department path from the root down (ids and names; a department’s charter is its spec’s document, read through /workforce/v1/specs), the job, title and level name, the manager (the first filled position up the reporting line), the position’s own duties and methods, and objectives. Use it to answer who this actor is and what it is responsible for. An actor that holds no position is not an error: primary is null and concurrent is empty. Read-only. Errors: 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent.
Signature
praxis.workforce.actors.retrieve(args:{path:{actor:string}}):Promise<{/** Actor address, such as human:usr_123 or agent:agent_123. */ actor:string;/** The actor's primary position; null when the actor holds no position. */ primary:{/** Id of the position (pos_...). */ position_id:string;/** The position as people say it: its title and three-digit number, such as 客服专员 · 003. */ name:string;/** Open positions whose reporting line points straight at this one, vacant ones included, ordered by name. */ direct_reports:Array<{/** Id of the reporting position (pos_...). */ position_id:string;/** The reporting position as people say it, such as 客服专员 · 004. */ name:string;/** Actor address of its holder, or null when the position is vacant. */ holder:string|null;/** Display name of its holder; null when vacant, the address when the directory cannot name them. */ holder_name:string|null}>;/** Departments from the root down to the department of the position, root first. */ department_path:Array<{/** Department id (dept_...). */ id:string;/** Department name. */ name:string}>;/** The job the position was opened from, or null for a one-off position. */ job:{/** Job name. */ name:string;/** What the job is responsible for. */ duties:string;/** How the work of the job is done. */ methods:string}|null;/** Title of the position. */ title:string;/** The job level of the position, or null when none is set. */ level:{/** Level name, such as Senior. */ name:string}|null;/** The first filled position up the reporting line, or null at the top of the tree. */ manager:{/** Id of the position (pos_...) of the manager; vacant positions on the line are skipped. */ position_id:string;/** The manager's position as people say it: its title and three-digit number, such as 客服主管 · 001. */ name:string;/** Actor address of the manager, such as human:usr_123. */ holder:string;/** Display name of the manager; the address when the directory cannot name them. */ holder_name:string}|null;/** The position's own duties text. */ duties:string;/** The position's own methods text. */ methods:string;/** Active objectives that hang on this position. */ objectives:Array<Record<string,unknown>>}|null;/** The actor's other positions, earliest start first; empty when it holds one position or none. */ concurrent:Array<{/** Id of the position (pos_...). */ position_id:string;/** The position as people say it: its title and three-digit number, such as 客服专员 · 003. */ name:string;/** Open positions whose reporting line points straight at this one, vacant ones included, ordered by name. */ direct_reports:Array<{/** Id of the reporting position (pos_...). */ position_id:string;/** The reporting position as people say it, such as 客服专员 · 004. */ name:string;/** Actor address of its holder, or null when the position is vacant. */ holder:string|null;/** Display name of its holder; null when vacant, the address when the directory cannot name them. */ holder_name:string|null}>;/** Departments from the root down to the department of the position, root first. */ department_path:Array<{/** Department id (dept_...). */ id:string;/** Department name. */ name:string}>;/** The job the position was opened from, or null for a one-off position. */ job:{/** Job name. */ name:string;/** What the job is responsible for. */ duties:string;/** How the work of the job is done. */ methods:string}|null;/** Title of the position. */ title:string;/** The job level of the position, or null when none is set. */ level:{/** Level name, such as Senior. */ name:string}|null;/** The first filled position up the reporting line, or null at the top of the tree. */ manager:{/** Id of the position (pos_...) of the manager; vacant positions on the line are skipped. */ position_id:string;/** The manager's position as people say it: its title and three-digit number, such as 客服主管 · 001. */ name:string;/** Actor address of the manager, such as human:usr_123. */ holder:string;/** Display name of the manager; the address when the directory cannot name them. */ holder_name:string}|null;/** The position's own duties text. */ duties:string;/** The position's own methods text. */ methods:string;/** Active objectives that hang on this position. */ objectives:Array<Record<string,unknown>>}>}>;Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| actor | path | string | yes | Actor address, written as is with its colon: human:usr_… for a person or agent:agent_… for an agent. |
Responses
| Status | Content types | Description |
|---|---|---|
| 200 | application/json | The position chain of the actor. |
| 401 | Missing or invalid credential; provide a valid organization API key or sign in to the Console. | |
| 403 | application/problem+json | PERMISSION_DENIED; an agent’s session token reads its own organization, but a run or computer token, or a session token that names no agent, is refused; call with an organization API key, a Console session, or the agent’s own session token. |