Identity Delegation Configs
Delegation configs define the default policy for sub-delegation behavior and delegation depth.
Identity Delegation Configs object
Attributes
object
StringString representing the object's type
id
StringUnique delegation config identifier.
status
EnumCurrent lifecycle status of the delegation config.
is_default
BooleanWhether this config is the default config for the environment.
name
StringNullableHuman-readable name of the delegation config.
description
StringNullableOptional description of the delegation policy.
metadata
ObjectNullableAdditional metadata associated with the delegation config.
sub_delegation_behavior
EnumHow this config handles sub-delegation requests.
sub_delegation_depth
NumberMaximum allowed sub-delegation depth for this policy.
created_at
DateTimestamp when the delegation config was created.
updated_at
DateTimestamp when the delegation config was last updated.
{"object": "identity.delegation_config","id": "idc_2mNpQrStUvWxYzAb","status": "active","name": "Default External Sharing Policy","description": "Allows one level of reviewed sub-delegation","metadata": {},"sub_delegation_behavior": "allow","sub_delegation_depth": 1,"created_at": "2026-02-03T10:15:00.000Z","updated_at": "2026-02-10T14:30:00.000Z"}
List identity delegation configs
Returns a paginated list of identity delegation configs.
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalsearch
StringOptionalFilter configs by name or description.
status
UnionOptionalFilter by one or more config statuses.
id
UnionOptionalFilter by config ID or IDs.
created_at
ObjectOptionalFilter identity delegation config creation time by date range
updated_at
ObjectOptionalFilter identity delegation config last update time by date range
curl -X GET "https://api.metorial.com/identity-delegation-configs" \-H "Authorization: Bearer metorial_sk_..."
Get identity delegation config
Retrieves a specific identity delegation config by ID.
URL Parameters
identity_delegation_config_id
StringThe unique identifier for the identity_delegation_config
curl -X GET "https://api.metorial.com/identity-delegation-configs/ide_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Create identity delegation config
Creates a new identity delegation config.
Request Body
name
StringOptionalOptional display name for the delegation config.
description
StringOptionalOptional description of the delegation policy.
metadata
ObjectOptionalAdditional metadata to store on the delegation config.
sub_delegation_behavior
EnumHow sub-delegations should be handled.
sub_delegation_depth
NumberOptionalMaximum allowed sub-delegation depth.
curl -X POST "https://api.metorial.com/identity-delegation-configs" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name","description": "example_description","metadata": {},"sub_delegation_behavior": "allow","sub_delegation_depth": 0}'
Update identity delegation config
Updates mutable fields on an existing identity delegation config.
URL Parameters
identity_delegation_config_id
StringThe unique identifier for the identity_delegation_config
Request Body
name
StringOptionalUpdated display name for the delegation config.
description
StringOptionalUpdated description for the delegation config.
metadata
ObjectOptionalUpdated metadata for the delegation config.
sub_delegation_behavior
EnumOptionalHow sub-delegations should be handled.
sub_delegation_depth
NumberOptionalMaximum allowed sub-delegation depth.
curl -X PATCH "https://api.metorial.com/identity-delegation-configs/ide_Rm4Mnheq2bfEPhBhP7SY" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name","description": "example_description","metadata": {},"sub_delegation_behavior": "allow","sub_delegation_depth": 0}'
Delete identity delegation config
Archives an identity delegation config.
URL Parameters
identity_delegation_config_id
StringThe unique identifier for the identity_delegation_config
curl -X DELETE "https://api.metorial.com/identity-delegation-configs/ide_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."