Credentials Beta
Credentials that nodes use to reach external systems.
Create a new credential.
POST /platform-infrastructure/credential/
Returns the created credential with data provided.
Authentication: Bearer token
Request body
Credential object to be created.
-
organization_idstring -
Identifier of the organization that this credential is associated with.
-
slugstring Required -
Stable semantic key uniquely identifying this credential within the organization or tenant.
-
namestring Required -
Human-readable name for this credential used in editors, logs and audit trails.
-
typePlatformInfrastructureCredentialType Required -
Credential type object { id, name, title, color }.
-
idinteger Required -
Numeric type identifier.
-
namestring Required -
Machine-readable type name.
-
titlestring Required -
Human-readable label.
-
colorstring -
Optional UI color for the type badge.
-
-
descriptionstring -
Optional description explaining what this credential is used for and in which contexts.
-
connector_slugstring -
Optional reference to the ConnectorModel this credential is primarily associated with.
-
providerPlatformInfrastructureCredentialProvider -
Optional provider object { id, name, title, color } identifying the external service.
-
idinteger Required -
Numeric provider identifier.
-
namestring Required -
Machine-readable provider name.
-
titlestring Required -
Human-readable label.
-
colorstring -
Optional UI color for the provider badge.
-
-
secret_backendstring -
Identifier of the secret storage backend used to hold the actual secret material (e.g. "sommatics-vault", "aws-kms").
-
secret_handleobject -
AES-256-GCM encrypted secret material stored as { iv, content, tag }. Encrypted at creation, decrypted only by the resolve endpoint.
-
masked_previewstring -
Optional masked preview of the secret (e.g. last 4 characters) used only for UI display.
-
scopesarray<string> -
Optional list of permission scopes, roles or API grants associated with this credential.
-
allowed_connector_slugsarray<string> -
Optional list of connector keys that are allowed to use this credential for outbound calls.
-
expires_atstring -
Optional expiration timestamp after which this credential must not be used.
-
last_rotated_atstring -
Timestamp of the last successful rotation of the underlying secret material.
-
rotation_policyPlatformInfrastructureCredentialRotationPolicy -
Optional rotation policy describing how and when this credential should be rotated.
-
enabledboolean -
Whether rotation is enabled for this credential.
-
strategyobject -
Rotation strategy as { id, name, title }.
-
idinteger -
namestring -
titlestring
-
-
interval_daysinteger -
Number of days between rotations. Relevant when strategy is "scheduled".
-
notify_before_daysinteger -
Number of days before rotation to send a notification.
-
-
is_revokedboolean -
Indicates whether this credential has been revoked and must no longer be used.
-
is_enabledboolean -
Indicates whether this credential is currently active and eligible for use.
-
is_systemboolean -
Indicates whether this credential is managed by the platform rather than user-created.
-
tagsarray<string> -
Optional list of free-form tags used for governance, search and reporting.
Responses
-
200OK. -
500Something was wrong while you make this action.
curl -X POST https://api.sommatic.ai/platform-infrastructure/credential/ \
-H "Authorization: Bearer $SOMMATIC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"slug": "<slug>",
"name": "<name>",
"type": {
"id": 1,
"name": "api-key",
"title": "API Key",
"color": "#1976d2"
}
}'const response = await fetch('https://api.sommatic.ai/platform-infrastructure/credential/', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.SOMMATIC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"slug": "<slug>",
"name": "<name>",
"type": {
"id": 1,
"name": "api-key",
"title": "API Key",
"color": "#1976d2"
}
}),
});
const { success, message, result } = await response.json();import os
import requests
response = requests.post(
"https://api.sommatic.ai/platform-infrastructure/credential/",
headers={
"Authorization": f"Bearer {os.environ['SOMMATIC_TOKEN']}",
},
json={
"slug": "<slug>",
"name": "<name>",
"type": {
"id": 1,
"name": "api-key",
"title": "API Key",
"color": "#1976d2"
}
},
)
data = response.json(){
"status": 200,
"success": true,
"message": "Operation completed successfully",
"result": {
"organization_id": "org_1234567890",
"slug": "cred_slack_support_bot",
"name": "Slack Support Bot OAuth Credential",
"type": {
"id": 2,
"name": "oauth2",
"title": "OAuth 2.0",
"color": "#7b1fa2"
},
"description": "OAuth2 access token for the Slack support bot used in customer support flows.",
"connector_slug": "connector:http.slack",
"provider": {
"id": 5,
"name": "slack",
"title": "Slack",
"color": "#4A154B"
},
"secret_backend": "sommatic-vault",
"secret_handle": "vault://slack/support-bot/oauth-token",
"masked_preview": "xoxb-****-1234",
"scopes": [
"chat:write",
"users:read"
],
"allowed_connector_slugs": [
"connector:http.slack"
],
"expires_at": "2026-01-01T00:00:00.000Z",
"last_rotated_at": "2025-07-01T10:15:00.000Z",
"rotation_policy": {
"enabled": true,
"strategy": {
"id": 2,
"name": "scheduled",
"title": "Scheduled"
},
"interval_days": 90,
"notify_before_days": 7
},
"is_system": false,
"tags": [
"slack",
"oauth2",
"support"
]
}
}{
"status": 500,
"success": false,
"message": "Something was wrong while you make this action",
"result": null
}Update an existing credential.
PATCH /platform-infrastructure/credential/
Updates the data of an existing credential with the data provided.
Authentication: Bearer token
Request body
Credential object to be updated.
-
organization_idstring -
Identifier of the organization that this credential is associated with.
-
slugstring Required -
Stable semantic key uniquely identifying this credential within the organization or tenant.
-
namestring Required -
Human-readable name for this credential used in editors, logs and audit trails.
-
typePlatformInfrastructureCredentialType Required -
Credential type object { id, name, title, color }.
-
idinteger Required -
Numeric type identifier.
-
namestring Required -
Machine-readable type name.
-
titlestring Required -
Human-readable label.
-
colorstring -
Optional UI color for the type badge.
-
-
descriptionstring -
Optional description explaining what this credential is used for and in which contexts.
-
connector_slugstring -
Optional reference to the ConnectorModel this credential is primarily associated with.
-
providerPlatformInfrastructureCredentialProvider -
Optional provider object { id, name, title, color } identifying the external service.
-
idinteger Required -
Numeric provider identifier.
-
namestring Required -
Machine-readable provider name.
-
titlestring Required -
Human-readable label.
-
colorstring -
Optional UI color for the provider badge.
-
-
secret_backendstring -
Identifier of the secret storage backend used to hold the actual secret material (e.g. "sommatics-vault", "aws-kms").
-
secret_handleobject -
AES-256-GCM encrypted secret material stored as { iv, content, tag }. Encrypted at creation, decrypted only by the resolve endpoint.
-
masked_previewstring -
Optional masked preview of the secret (e.g. last 4 characters) used only for UI display.
-
scopesarray<string> -
Optional list of permission scopes, roles or API grants associated with this credential.
-
allowed_connector_slugsarray<string> -
Optional list of connector keys that are allowed to use this credential for outbound calls.
-
expires_atstring -
Optional expiration timestamp after which this credential must not be used.
-
last_rotated_atstring -
Timestamp of the last successful rotation of the underlying secret material.
-
rotation_policyPlatformInfrastructureCredentialRotationPolicy -
Optional rotation policy describing how and when this credential should be rotated.
-
enabledboolean -
Whether rotation is enabled for this credential.
-
strategyobject -
Rotation strategy as { id, name, title }.
-
idinteger -
namestring -
titlestring
-
-
interval_daysinteger -
Number of days between rotations. Relevant when strategy is "scheduled".
-
notify_before_daysinteger -
Number of days before rotation to send a notification.
-
-
is_revokedboolean -
Indicates whether this credential has been revoked and must no longer be used.
-
is_enabledboolean -
Indicates whether this credential is currently active and eligible for use.
-
is_systemboolean -
Indicates whether this credential is managed by the platform rather than user-created.
-
tagsarray<string> -
Optional list of free-form tags used for governance, search and reporting.
Responses
-
200OK. -
500Something was wrong while you make this action.
curl -X PATCH https://api.sommatic.ai/platform-infrastructure/credential/ \
-H "Authorization: Bearer $SOMMATIC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"slug": "<slug>",
"name": "<name>",
"type": {
"id": 1,
"name": "api-key",
"title": "API Key",
"color": "#1976d2"
}
}'const response = await fetch('https://api.sommatic.ai/platform-infrastructure/credential/', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.SOMMATIC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"slug": "<slug>",
"name": "<name>",
"type": {
"id": 1,
"name": "api-key",
"title": "API Key",
"color": "#1976d2"
}
}),
});
const { success, message, result } = await response.json();import os
import requests
response = requests.patch(
"https://api.sommatic.ai/platform-infrastructure/credential/",
headers={
"Authorization": f"Bearer {os.environ['SOMMATIC_TOKEN']}",
},
json={
"slug": "<slug>",
"name": "<name>",
"type": {
"id": 1,
"name": "api-key",
"title": "API Key",
"color": "#1976d2"
}
},
)
data = response.json(){
"status": 200,
"success": true,
"message": "Operation completed successfully",
"result": {
"organization_id": "org_1234567890",
"slug": "cred_slack_support_bot",
"name": "Slack Support Bot OAuth Credential",
"type": {
"id": 2,
"name": "oauth2",
"title": "OAuth 2.0",
"color": "#7b1fa2"
},
"description": "OAuth2 access token for the Slack support bot used in customer support flows.",
"connector_slug": "connector:http.slack",
"provider": {
"id": 5,
"name": "slack",
"title": "Slack",
"color": "#4A154B"
},
"secret_backend": "sommatic-vault",
"secret_handle": "vault://slack/support-bot/oauth-token",
"masked_preview": "xoxb-****-1234",
"scopes": [
"chat:write",
"users:read"
],
"allowed_connector_slugs": [
"connector:http.slack"
],
"expires_at": "2026-01-01T00:00:00.000Z",
"last_rotated_at": "2025-07-01T10:15:00.000Z",
"rotation_policy": {
"enabled": true,
"strategy": {
"id": 2,
"name": "scheduled",
"title": "Scheduled"
},
"interval_days": 90,
"notify_before_days": 7
},
"is_system": false,
"tags": [
"slack",
"oauth2",
"support"
]
}
}{
"status": 500,
"success": false,
"message": "Something was wrong while you make this action",
"result": null
}Delete a credential by its id.
DELETE /platform-infrastructure/credential/
Deletes a credential based on the provided ID.
Authentication: Bearer token
Request body
ID of the credential to delete
-
idstring
Responses
-
200OK. -
500Something went wrong while performing this action.
curl -X DELETE https://api.sommatic.ai/platform-infrastructure/credential/ \
-H "Authorization: Bearer $SOMMATIC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "<id>"
}'const response = await fetch('https://api.sommatic.ai/platform-infrastructure/credential/', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.SOMMATIC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"id": "<id>"
}),
});
const { success, message, result } = await response.json();import os
import requests
response = requests.delete(
"https://api.sommatic.ai/platform-infrastructure/credential/",
headers={
"Authorization": f"Bearer {os.environ['SOMMATIC_TOKEN']}",
},
json={
"id": "<id>"
},
)
data = response.json(){
"status": 200,
"success": true,
"message": "Credential successfully deleted",
"result": null
}{
"status": 500,
"success": false,
"message": "Something went wrong while performing this action",
"result": null
}Get a credential by query selector.
GET /platform-infrastructure/credential/{queryselector}
Returns the credential information that matches the query selector and search specified in the route.
Authentication: Bearer token
Parameters
-
queryselectorenum path Required -
Is the filter available for this query
idorganization-idallstatus -
searchstring query -
Keyword to search for entities.
-
include_statusstring query -
Optional status parameter to include credentials of a specific status.
-
exclude_statusstring query -
Optional status parameter to exclude credentials of a specific status.
-
pageinteger query -
Page number, starting at 1 (default 1).
-
pageSizeinteger query -
Records per page (default 25).
Responses
-
200OK. -
500Something was wrong while you make this action.
curl -X GET https://api.sommatic.ai/platform-infrastructure/credential/id \
-H "Authorization: Bearer $SOMMATIC_TOKEN"const response = await fetch('https://api.sommatic.ai/platform-infrastructure/credential/id', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.SOMMATIC_TOKEN}`,
},
});
const { success, message, result } = await response.json();import os
import requests
response = requests.get(
"https://api.sommatic.ai/platform-infrastructure/credential/id",
headers={
"Authorization": f"Bearer {os.environ['SOMMATIC_TOKEN']}",
},
)
data = response.json(){
"status": 200,
"success": true,
"message": "Operation completed successfully",
"result": {
"organization_id": "org_1234567890",
"slug": "cred_slack_support_bot",
"name": "Slack Support Bot OAuth Credential",
"type": {
"id": 2,
"name": "oauth2",
"title": "OAuth 2.0",
"color": "#7b1fa2"
},
"description": "OAuth2 access token for the Slack support bot used in customer support flows.",
"connector_slug": "connector:http.slack",
"provider": {
"id": 5,
"name": "slack",
"title": "Slack",
"color": "#4A154B"
},
"secret_backend": "sommatic-vault",
"secret_handle": "vault://slack/support-bot/oauth-token",
"masked_preview": "xoxb-****-1234",
"scopes": [
"chat:write",
"users:read"
],
"allowed_connector_slugs": [
"connector:http.slack"
],
"expires_at": "2026-01-01T00:00:00.000Z",
"last_rotated_at": "2025-07-01T10:15:00.000Z",
"rotation_policy": {
"enabled": true,
"strategy": {
"id": 2,
"name": "scheduled",
"title": "Scheduled"
},
"interval_days": 90,
"notify_before_days": 7
},
"is_system": false,
"tags": [
"slack",
"oauth2",
"support"
]
}
}{
"status": 500,
"success": false,
"message": "Something was wrong while you make this action",
"result": null
}