Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

An access token in Infisical

Body

application/json
identityId
string
required

The ID of the machine identity to create.

Minimum string length: 1
projectSlug
string
required

The slug of the project of the identity in.

Minimum string length: 1
temporaryMode
enum<string>
required

Type of temporary access given. Types: relative.

Available options:
relative
temporaryRange
string
required

TTL for the temporary time. Eg: 1m, 1h, 1d.

temporaryAccessStartTime
string<date-time>
required

ISO time for which temporary access should begin.

slug
string

The slug of the privilege to create.

Required string length: 1 - 60
permissions
object[]

@deprecated - use privilegePermission The permission object for the privilege.

  • Read secrets
  • Read and Write secrets
  • Read secrets scoped to an environment and secret path
privilegePermission
object

The permission object for the privilege.

Response

Default Response

privilege
object
required