Skip to main content
POST
/
v2
/
team.user.delegate
DelegateProfile
curl --request POST \
  --url https://api.manus.im/v2/team.user.delegate \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "team_user_id": "123456",
  "target_team_user_id": "654321"
}
'
{
  "ok": true,
  "request_id": "<string>",
  "user": {
    "email": "<string>",
    "user_name": "<string>",
    "team_user_id": "<string>",
    "delegated_to": "<string>",
    "delegated_profiles": [
      {
        "team_user_id": "<string>",
        "display_name": "<string>",
        "delegated_at": "2023-11-07T05:31:56Z"
      }
    ],
    "original_email": "<string>"
  }
}
Questions or issues? Contact us at api-support@manus.ai.
Source must be deactivated: team_user_id (the source profile) must currently have status = USER_STATUS_INACTIVE. Active members and already-removed users are rejected with failed_precondition — call team.user.update with status: USER_STATUS_INACTIVE first if needed.Target must be active and never delegated: target_team_user_id must be an active team member that is not currently a delegated profile. This prevents cycles and ownership-laundering through chained delegations.Owner cannot be delegated: The team owner’s profile is rejected with failed_precondition.Email rewrite: On success, the source’s email becomes delegate-<id>@manus.im and the original is preserved in original_email. Subsequent operations on this profile must use team_user_id.Role (required): uses the MigratedProfileRole enum, distinct from the TeamMemberRole used elsewhere. Send MIGRATED_PROFILE_ROLE_MEMBER to activate as a regular member, MIGRATED_PROFILE_ROLE_FREE_GUEST to activate as a free (non-seat-consuming) guest, or MIGRATED_PROFILE_ROLE_DEACTIVATED to keep the profile in the deactivated pool under the new assignee. MIGRATED_PROFILE_ROLE_UNSPECIFIED is rejected — the field must carry an explicit value.Protocols: Also callable via Connect RPC. See Protocols.

Authorizations

X-API-Key
string
header
required

Body

application/json
team_user_id
string
required

ID of the deactivated profile being delegated.

Required string length: 1 - 64
Example:

"123456"

target_team_user_id
string
required

ID of the active member receiving the delegation.

Required string length: 1 - 64
Example:

"654321"

role
enum<string>
required

Post-delegation role for the source profile. Required — MIGRATED_PROFILE_ROLE_UNSPECIFIED is rejected. Use MIGRATED_PROFILE_ROLE_MEMBER to activate as a regular member, MIGRATED_PROFILE_ROLE_FREE_GUEST to activate as a free guest, or MIGRATED_PROFILE_ROLE_DEACTIVATED to keep the profile deactivated under the new assignee.

Available options:
MIGRATED_PROFILE_ROLE_MEMBER,
MIGRATED_PROFILE_ROLE_FREE_GUEST,
MIGRATED_PROFILE_ROLE_DEACTIVATED

Response

Profile delegated successfully.

ok
boolean
Example:

true

request_id
string
user
object

A team member.