cURL
curl --request POST \ --url https://us.infisical.com/api/v1/auth/token-auth/identities/{identityId}/tokens \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "<string>" }'
{ "accessToken": "<string>", "expiresIn": 123, "accessTokenMaxTTL": 123, "tokenType": "Bearer" }
Create token for identity with Token Auth
An access token in Infisical
The ID of the identity to create the token for.
Default Response
The response is of type object.
object
Was this page helpful?