Skip to content

Update Credential

Endpoint used to update a credential.

Terminal window
curl --request PUT \
--url https://chat.api.toolzz.com.br/api/v1/credential/{id} \
--header 'Authorization: Bearer TOKEN_HERE' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"userId": "<string>",
"unityId": "<string>",
"integrationId": "<string>",
"secretId": "<string>",
"status": true
}
'
{
"message": "<string>",
"id": "<string>",
"name": "<string>",
"userId": "<string>",
"unityId": "<string>",
"integrationId": "<string>",
"secretId": "<string>",
"status": true,
"virtualKey": "<string>",
"credentials": {},
"createdAt": "<string>",
"updatedAt": "<string>",
"integration": {
"id": "<string>",
"name": "<string>",
"iconId": "<string>",
"type": "<string>",
"status": true,
"validationEndpoint": "<string>",
"slug": "<string>",
"form": [
{
"name": "<string>",
"type": "<string>",
"label": "<string>",
"maxLenght": 123,
"required": true
}
],
"createdAt": "<string>",
"updatedAt": "<string>",
"icon": {
"id": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"institutionId": "<string>",
"type": "<string>",
"fileName": "<string>",
"internalStorageUrl": "<string>",
"url": "<string>",
"size": 123,
"extension": "<string>",
"maskName": "<string>"
}
}
}

ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
idUUIDCredential unique identifier.Yes
ParameterTypeDescriptionRequired
nameStringNew identification name for the credential.Yes
userIdUUIDOwning user’s unique identifier.Yes
unityIdUUIDLinked organizational unit identifier.Yes
integrationIdUUIDService provider identifier (OpenAI, Gemini, etc.).Yes
secretIdUUIDTechnical secret identifier stored in the vault.No
statusBooleanDefines if the credential should be active (true) or inactive (false).Yes

KeyTypeDescription
messageStringConfirmation message (e.g., “Credential updated successfully”).
idUUIDUnique identifier of the updated credential.
nameStringUpdated credential name.
userIdUUIDLinked user ID.
unityIdUUIDLinked organizational unit ID.
integrationIdUUIDIntegration provider ID.
statusBooleanCurrent activation status of the credential.
virtualKeyStringInternal identification virtual key.
credentialsObjectTechnical keys object (usually empty for security in the response).
updatedAtStringLast modification date and time (ISO 8601).
integrationObjectObject containing the service provider details.
integration.nameStringProvider name (e.g., “Open AI”).
integration.typeStringIntegration category (e.g., llm, voice).
integration.formArrayList of configuration fields required by the provider.
integration.iconObjectProvider icon file metadata.
integration.icon.urlURLDirect link to the provider’s logo image.
integration.icon.extensionStringImage file extension (e.g., png).

To access this endpoint, it is necessary to send a valid access token through the authorization header (Authorization) of the request. Additionally, the API is protected by other security measures to safeguard user data.

To access your access token, follow these steps:

  1. Log in to the ToolzzAI platform
  2. Click on “Settings”
  3. Click on “Access Token”
  4. Copy the access token

Access token page