Identity Delegations
Identity delegations grant provider permissions from one identity owner to another actor, with optional per-credential overrides.
Identity Delegations object
Attributes
object
StringString representing the object's type
id
StringUnique delegation identifier.
status
EnumCurrent status of the delegation.
denied_reason
EnumNullableReason the delegation was denied, if applicable.
delegation_level
NumberDepth level of this delegation in the delegation chain.
permissions
ArrayPermissions granted by this delegation.
attestation
ObjectNullablenote
StringNullableOptional note explaining the delegation.
metadata
ObjectNullableAdditional metadata associated with the delegation.
identity
Objectdelegation_config_id
StringNullableDelegation config used to evaluate this delegation.
parties
ObjectActors involved in the delegation and their roles.
request
ObjectNullablecredential_overrides
ObjectPer-credential permission overrides attached to the delegation.
created_at
DateTimestamp when the delegation was created.
expires_at
DateNullableTimestamp when the delegation expires, if set.
revoked_at
DateNullableTimestamp when the delegation was revoked, if revoked.
{"object": "identity.delegation","id": "idd_7gHjKlMnPqRsTuVw","status": "waiting_for_consent","denied_reason": "request_denied","delegation_level": 0,"permissions": ["provider:call","provider:call"],"attestation": {"object": "identity.delegation_attestation","id": "ida_3xYzAbCdEfGhIjKl","type": "api","created_at": "2026-02-03T10:15:00.000Z"},"note": "Temporary support access for incident triage","metadata": {},"identity": {"object": "identity#preview","id": "idn_5gHjKlMnPqRsTuVw","name": "Jane Doe","description": "Customer support engineer","metadata": {}},"delegation_config_id": "idc_2mNpQrStUvWxYzAb","parties": [{"object": "identity.delegation_party","id": "idp_4dEfGhJkLmNpQrSt","roles": ["owner","owner"],"actor": {"object": "identity.actor","id": "iac_6wQpLk2mZa8nYx4b","type": "person","status": "active","name": "Build Bot","description": "CI agent used for release automation","metadata": {},"agent_id": "agt_4mNoPq8rSt2uVx6y","created_at": "2026-02-03T10:15:00.000Z","updated_at": "2026-02-10T14:30:00.000Z"},"created_at": "2026-02-03T10:15:00.000Z"},{"object": "identity.delegation_party","id": "idp_4dEfGhJkLmNpQrSt","roles": ["owner","owner"],"actor": {"object": "identity.actor","id": "iac_6wQpLk2mZa8nYx4b","type": "person","status": "active","name": "Build Bot","description": "CI agent used for release automation","metadata": {},"agent_id": "agt_4mNoPq8rSt2uVx6y","created_at": "2026-02-03T10:15:00.000Z","updated_at": "2026-02-10T14:30:00.000Z"},"created_at": "2026-02-03T10:15:00.000Z"}],"request": {"object": "identity.delegation_request","id": "idr_2mNpQrStUvWxYzAb","status": "pending","denied_reason": "request_denied","requester": {"object": "identity.actor","id": "iac_6wQpLk2mZa8nYx4b","type": "person","status": "active","name": "Build Bot","description": "CI agent used for release automation","metadata": {},"agent_id": "agt_4mNoPq8rSt2uVx6y","created_at": "2026-02-03T10:15:00.000Z","updated_at": "2026-02-10T14:30:00.000Z"},"identity_id": "idn_5gHjKlMnPqRsTuVw","expires_at": "2026-03-03T10:15:00.000Z","created_at": "2026-02-03T10:15:00.000Z"},"credential_overrides": [{"object": "identity.delegation_credential_override","id": "idco_9pQrStUvWxYzAbCd","status": "active","permissions": ["provider:call","provider:call"],"credential_id": "icr_8vBnM4xZa2cDf7gH","created_at": "2026-02-03T10:15:00.000Z","expires_at": "2026-03-03T10:15:00.000Z"},{"object": "identity.delegation_credential_override","id": "idco_9pQrStUvWxYzAbCd","status": "active","permissions": ["provider:call","provider:call"],"credential_id": "icr_8vBnM4xZa2cDf7gH","created_at": "2026-02-03T10:15:00.000Z","expires_at": "2026-03-03T10:15:00.000Z"}],"created_at": "2026-02-03T10:15:00.000Z","expires_at": "2026-03-03T10:15:00.000Z","revoked_at": "2026-02-12T17:45:00.000Z"}
List identity delegations
Returns a paginated list of identity delegations for the instance.
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalstatus
UnionOptionalFilter by one or more delegation statuses.
permissions
UnionOptionalFilter by one or more granted permissions.
id
UnionOptionalFilter by delegation ID or IDs.
owner_actor_id
UnionOptionalFilter by owner actor ID or IDs.
delegator_actor_id
UnionOptionalFilter by delegator actor ID or IDs.
delegatee_actor_id
UnionOptionalFilter by delegatee actor ID or IDs.
identity_id
UnionOptionalFilter by identity ID or IDs.
created_at
ObjectOptionalFilter identity delegation creation time by date range
updated_at
ObjectOptionalFilter identity delegation last update time by date range
curl -X GET "https://api.metorial.com/identity-delegations" \-H "Authorization: Bearer metorial_sk_..."
Get identity delegation
Retrieves a specific identity delegation by ID.
URL Parameters
identity_delegation_id
StringThe unique identifier for the identity_delegation
curl -X GET "https://api.metorial.com/identity-delegations/ide_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Create identity delegation
Creates a new identity delegation.
Request Body
identity_id
StringIdentity to delegate.
delegator_actor_id
StringOptionalActor initiating the delegation, if different from the owner.
delegatee_actor_id
StringActor receiving the delegation.
permissions
ArrayOptionalPermissions to grant as part of the delegation.
expires_at
DateOptionalOptional expiration timestamp for the delegation.
delegation_config_id
StringOptionalDelegation config to use for this delegation.
credential_overrides
ObjectOptionalOptional per-credential permission overrides.
note
StringOptionalOptional human-readable note for the delegation.
metadata
ObjectOptionalAdditional metadata to store on the delegation.
curl -X POST "https://api.metorial.com/identity-delegations" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"identity_id": "example_identity_id","delegator_actor_id": "example_delegator_actor_id","delegatee_actor_id": "example_delegatee_actor_id","permissions": ["provider:call"],"expires_at": "2026-04-04T19:03:23.810Z","delegation_config_id": "example_delegation_config_id","credential_overrides": {"credential_id": "example_credential_id","permissions": ["provider:call"],"expires_at": "2026-04-04T19:03:23.810Z"},"note": "example_note","metadata": {}}'
Revoke identity delegation
Revokes an existing identity delegation.
URL Parameters
identity_delegation_id
StringThe unique identifier for the identity_delegation
curl -X POST "https://api.metorial.com/identity-delegations/ide_Rm4Mnheq2bfEPhBhP7SY/revoke" \-H "Authorization: Bearer metorial_sk_..."