Infisical icon

Infisical

Manage secrets and related resources in Infisical

Actions40

Identity → Create

AI-generated

Summary

Create a new machine identity in Infisical.

Inputs

  • name (required) — The name of the identity (required).
  • organizationId (required) — The ID of the organization the identity belongs to (required).
  • role — The organization role slug to assign to the identity (e.g., no-access, read, write).
  • hasDeleteProtection — Whether deletion protection is enabled for the identity.
  • requestOptions — Advanced request settings such as batching, proxy, timeout, and SSL verification.

Output shape

A single identity object returned by Infisical, containing fields like id, name, organizationId, role, etc.

The response is the created identity resource; optional fields may be omitted; errors follow Infisical's standard error envelope.

Examples

Example 1: Create identity with basic details

{"name":"My Machine","organizationId":"org_123","role":"read","requestOptions":{"timeout":10000}}

Example 2: Create identity with batching enabled

{"name":"BatchJob","organizationId":"org_456","role":"write","requestOptions":{"batching":{"batchSize":100,"batchInterval":500}}}

Links

Discussion