curl --request POST \
--url https://us.infisical.com/api/v1/auth/universal-auth/identities/{identityId}/client-secrets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"description": "",
"numUsesLimit": 0,
"ttl": 0
}'
{
"clientSecret": "<string>",
"clientSecretData": {
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"clientSecretPrefix": "<string>",
"clientSecretNumUses": 0,
"clientSecretNumUsesLimit": 0,
"clientSecretTTL": 0,
"identityUAId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isClientSecretRevoked": false
}
}
Create Universal Auth Client Secret for identity
curl --request POST \
--url https://us.infisical.com/api/v1/auth/universal-auth/identities/{identityId}/client-secrets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"description": "",
"numUsesLimit": 0,
"ttl": 0
}'
{
"clientSecret": "<string>",
"clientSecretData": {
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"clientSecretPrefix": "<string>",
"clientSecretNumUses": 0,
"clientSecretNumUsesLimit": 0,
"clientSecretTTL": 0,
"identityUAId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isClientSecretRevoked": false
}
}
An access token in Infisical
The ID of the identity to create a client secret for.
Default Response
The response is of type object
.
Was this page helpful?