Identity Credentials
Identity credentials bind an identity to concrete provider deployment, config, and auth resources.
Identity Credentials object
Attributes
object
StringString representing the object's type
id
StringUnique identity credential identifier.
status
EnumCurrent lifecycle status of the credential.
identity_id
StringIdentity that owns this credential.
provider_id
StringProvider associated with the credential.
deployment_id
StringNullableProvider deployment used by this credential.
config_id
StringNullableProvider config used by this credential.
auth_config_id
StringNullableProvider auth config used by this credential.
delegation_config_id
StringNullableDelegation config applied to this credential.
created_at
DateTimestamp when the credential was created.
updated_at
DateTimestamp when the credential was last updated.
{"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"}
List identity credentials
Returns a paginated list of identity credentials for the instance.
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalstatus
UnionOptionalFilter by one or more credential statuses.
id
UnionOptionalFilter by identity credential ID or IDs.
agent_id
UnionOptionalFilter by owner agent ID or IDs.
actor_id
UnionOptionalFilter by owner actor ID or IDs.
identity_id
UnionOptionalFilter by identity ID or IDs.
provider_id
UnionOptionalFilter by provider ID or IDs.
provider_deployment_id
UnionOptionalFilter by provider deployment ID or IDs.
provider_config_id
UnionOptionalFilter by provider config ID or IDs.
provider_auth_config_id
UnionOptionalFilter by provider auth config ID or IDs.
created_at
ObjectOptionalFilter identity credential creation time by date range
updated_at
ObjectOptionalFilter identity credential last update time by date range
curl -X GET "https://api.metorial.com/identity-credentials" \-H "Authorization: Bearer metorial_sk_..."
Get identity credential
Retrieves a specific identity credential by ID.
URL Parameters
identity_credential_id
StringThe unique identifier for the identity_credential
curl -X GET "https://api.metorial.com/identity-credentials/ide_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Create identity credential
Creates a new credential and attaches it to an identity.
Request Body
identity_id
StringIdentity that will own the new credential.
deployment_id
StringOptionalProvider deployment to attach to the credential.
config_id
StringOptionalProvider config to attach to the credential.
auth_config_id
StringOptionalProvider auth config to attach to the credential.
delegation_config_id
StringOptionalDelegation config to apply to the credential.
curl -X POST "https://api.metorial.com/identity-credentials" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"identity_id": "example_identity_id","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 credential
Updates the delegation config attached to an identity credential.
URL Parameters
identity_credential_id
StringThe unique identifier for the identity_credential
Request Body
delegation_config_id
StringDelegation config to apply to the credential.
curl -X PATCH "https://api.metorial.com/identity-credentials/ide_Rm4Mnheq2bfEPhBhP7SY" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"delegation_config_id": "example_delegation_config_id"}'
Delete identity credential
Archives an identity credential.
URL Parameters
identity_credential_id
StringThe unique identifier for the identity_credential
curl -X DELETE "https://api.metorial.com/identity-credentials/ide_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."