curl --request GET \
--url https://api.studio.prisme.ai/v2/workspaces/{workspaceId}/automations/{automationSlug} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.studio.prisme.ai/v2/workspaces/{workspaceId}/automations/{automationSlug}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/v2/workspaces/{workspaceId}/automations/{automationSlug}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"slug": "send-welcome-email",
"name": {
"en": "Send welcome email",
"fr": "Envoyer email de bienvenue"
},
"description": {
"en": "Sends a welcome email when a user signs up"
},
"arguments": {
"userId": {
"type": "string"
}
},
"do": [
{
"set": {
"name": "user.welcomed",
"value": true
}
},
{
"emit": {
"event": "user.welcomed",
"payload": {
"userId": "{{userId}}"
}
}
}
],
"output": "{{result}}"
}{
"error": "AuthenticationError",
"message": "Unauthenticated"
}{
"error": "ForbiddenError",
"message": "Forbidden"
}{
"error": "ObjectNotFound",
"message": "<string>"
}Get Automation
Fetch an automation
curl --request GET \
--url https://api.studio.prisme.ai/v2/workspaces/{workspaceId}/automations/{automationSlug} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.studio.prisme.ai/v2/workspaces/{workspaceId}/automations/{automationSlug}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/v2/workspaces/{workspaceId}/automations/{automationSlug}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"slug": "send-welcome-email",
"name": {
"en": "Send welcome email",
"fr": "Envoyer email de bienvenue"
},
"description": {
"en": "Sends a welcome email when a user signs up"
},
"arguments": {
"userId": {
"type": "string"
}
},
"do": [
{
"set": {
"name": "user.welcomed",
"value": true
}
},
{
"emit": {
"event": "user.welcomed",
"payload": {
"userId": "{{userId}}"
}
}
}
],
"output": "{{result}}"
}{
"error": "AuthenticationError",
"message": "Unauthenticated"
}{
"error": "ForbiddenError",
"message": "Forbidden"
}{
"error": "ObjectNotFound",
"message": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
Success Response
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
- Option 9
- Option 10
- Option 11
- Option 12
- Option 13
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
"prismeaiMessenger.message"
Hide child attributes
Hide child attributes
Whether to persist this event or not. Defaults to true
Populate advanced aggregation payload for custom mappings & analytics. This is automatically enabled for events mapped in config.events.types.*
If true, the instruction will return control without waiting for the event to be emitted. Defaults to false
[
{
"set": { "name": "user.welcomed", "value": true }
},
{
"emit": {
"event": "user.welcomed",
"payload": { "userId": "{{userId}}" }
}
}
]
Set this to true if you don't want your automation to be accessible outside of your app. Default is false.
false
Set this to true if you want to turn off this automation.
true
Unique & human readable id across current workspace's automations
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
string, number, integer, object, array, boolean, localized:string, localized:number, localized:boolean Recursive reference to TypedArgument; nesting is truncated here to avoid the infinite expansion that crashes the API reference renderer.
Path-redact this field from runtime execution events (runtime.automations.executed), whatever its size. Redact itself never tracks the value: each automation the value transits through must re-declare redact on its own schema. It does not disable a secret declaration on the same or a nested field — secret takes precedence, so a field marked both is value-tracked AND path-redacted. Only reachable through nested properties: a marker inside items, additionalProperties or oneOf-style keywords is ignored (redact the parent field itself).
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" }
}
Conditional input/output schemas. Takes precedence over arguments for validation when present; arguments-declared secret & redact markers remain enforced on every branch, while branch-declared secrets only apply to calls matching their branch.
Hide child attributes
Hide child attributes
Every entry must equal the corresponding payload variable for the branch to match. Keys are dot-paths resolved from the payload root (method, body.kind…); method is matched case-insensitively. Values are compared as strings after scalar coercion (2 matches "2" — query parameters always arrive as strings); an object or array value never matches.
Hide child attributes
Hide child attributes
string, number, integer, object, array, boolean, localized:string, localized:number, localized:boolean Recursive reference to TypedArgument; nesting is truncated here to avoid the infinite expansion that crashes the API reference renderer.
Path-redact this field from runtime execution events (runtime.automations.executed), whatever its size. Redact itself never tracks the value: each automation the value transits through must re-declare redact on its own schema. It does not disable a secret declaration on the same or a nested field — secret takes precedence, so a field marked both is value-tracked AND path-redacted. Only reachable through nested properties: a marker inside items, additionalProperties or oneOf-style keywords is ignored (redact the parent field itself).
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" }
}
Hide child attributes
Hide child attributes
string, number, integer, object, array, boolean, localized:string, localized:number, localized:boolean Recursive reference to TypedArgument; nesting is truncated here to avoid the infinite expansion that crashes the API reference renderer.
Path-redact this field from runtime execution events (runtime.automations.executed), whatever its size. Redact itself never tracks the value: each automation the value transits through must re-declare redact on its own schema. It does not disable a secret declaration on the same or a nested field — secret takes precedence, so a field marked both is value-tracked AND path-redacted. Only reachable through nested properties: a marker inside items, additionalProperties or oneOf-style keywords is ignored (redact the parent field itself).
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" }
}
- Option 1
- Option 2
- Option 3
- Option 4
^[0-9A-Za-z._:-]{2,60}$Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
"prismeaiMessenger.message"
Automation result expression. Might be a variable reference, an object/array with variables inside ...
"{{result}}"
Was this page helpful?