Identities
Identities bundle credentials under a single owner actor so provider access can be managed and delegated consistently.
Identities object
Attributes
object
StringString representing the object's type
id
StringUnique identity identifier.
status
EnumCurrent lifecycle status of the identity.
name
StringNullableHuman-readable name of the identity.
description
StringNullableOptional description of what the identity is used for.
metadata
ObjectNullableAdditional metadata associated with the identity.
owner
Objectcredentials
ObjectCredentials currently attached to the identity.
delegation_config_id
StringNullableDefault delegation config applied to the identity.
created_at
DateTimestamp when the identity was created.
updated_at
DateTimestamp when the identity was last updated.
{"object": "identity","id": "idn_5gHjKlMnPqRsTuVw","status": "active","name": "Production GitHub Identity","description": "Identity used by the release pipeline","metadata": {},"owner": {"type": "actor","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"}},"credentials": [{"object": "identity.credential","id": "icr_8vBnM4xZa2cDf7gH","status": "active","identity_id": "idn_5gHjKlMnPqRsTuVw","provider_id": "pro_5gHjKlMnPqRsTuVw","deployment_id": "pdp_4dEfGhJkLmNpQrSt","config_id": "pcf_7dEfGhJkLmNpQrSt","auth_config_id": "pac_3nOpRsTuVwXyZaBc","delegation_config_id": "idc_2mNpQrStUvWxYzAb","created_at": "2026-02-03T10:15:00.000Z","updated_at": "2026-02-10T14:30:00.000Z"},{"object": "identity.credential","id": "icr_8vBnM4xZa2cDf7gH","status": "active","identity_id": "idn_5gHjKlMnPqRsTuVw","provider_id": "pro_5gHjKlMnPqRsTuVw","deployment_id": "pdp_4dEfGhJkLmNpQrSt","config_id": "pcf_7dEfGhJkLmNpQrSt","auth_config_id": "pac_3nOpRsTuVwXyZaBc","delegation_config_id": "idc_2mNpQrStUvWxYzAb","created_at": "2026-02-03T10:15:00.000Z","updated_at": "2026-02-10T14:30:00.000Z"}],"delegation_config_id": "idc_2mNpQrStUvWxYzAb","created_at": "2026-02-03T10:15:00.000Z","updated_at": "2026-02-10T14:30:00.000Z"}
List identities
Returns a paginated list of identities for the instance.
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalsearch
StringOptionalFilter identities by name or description.
status
UnionOptionalFilter by one or more identity statuses.
id
UnionOptionalFilter by identity ID or IDs.
agent_id
UnionOptionalFilter by owner agent ID or IDs.
actor_id
UnionOptionalFilter by owner identity actor ID or IDs.
created_at
ObjectOptionalFilter identity creation time by date range
updated_at
ObjectOptionalFilter identity last update time by date range
curl -X GET "https://api.metorial.com/identities" \-H "Authorization: Bearer metorial_sk_..."
Get identity
Retrieves a specific identity by ID.
URL Parameters
identity_id
StringThe unique identifier for the identity
curl -X GET "https://api.metorial.com/identities/ide_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Create identity
Creates a new identity owned by an existing identity actor.
Request Body
actor_id
StringIdentity actor that will own the new identity.
name
StringOptionalOptional display name for the identity.
description
StringOptionalOptional description of the identity.
metadata
ObjectOptionalAdditional metadata to store on the identity.
credentials
ObjectOptionalCredentials to create and attach as part of identity creation.
curl -X POST "https://api.metorial.com/identities" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"actor_id": "example_actor_id","name": "example_name","description": "example_description","metadata": {},"credentials": {"deployment_id": "example_deployment_id","config_id": "example_config_id","auth_config_id": "example_auth_config_id","delegation_config_id": "example_delegation_config_id"}}'
Update identity
Updates mutable fields on an existing identity.
URL Parameters
identity_id
StringThe unique identifier for the identity
Request Body
name
StringOptionalUpdated display name for the identity.
description
StringOptionalUpdated description for the identity.
metadata
ObjectOptionalUpdated metadata for the identity.
curl -X PATCH "https://api.metorial.com/identities/ide_Rm4Mnheq2bfEPhBhP7SY" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name","description": "example_description","metadata": {}}'
Delete identity
Archives an identity.
URL Parameters
identity_id
StringThe unique identifier for the identity
curl -X DELETE "https://api.metorial.com/identities/ide_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."