Token Auth

Create token for machine identity with Token Auth

post/api/v1/auth/token-auth/identities/{identityId}/tokens

Request

  • Base URL
    https://us.infisical.com
  • URL
    https://us.infisical.com/api/v1/auth/token-auth/identities/{identityId}/tokens
  • Auth
    HTTP bearer

Path parameters

identityIdstring required

The ID of the machine identity to create the token for.

Request body

namestring

The name of the token to create.

organizationSlugstring

The sub organization name to scope the token to.

Response

Default Response

accessTokenstring required
expiresInnumber required
accessTokenMaxTTLnumber required
tokenType'Bearer' required

Changes

No recorded changes to this operation across all 65 revisions of this API.