Create Automation
curl --request POST \
--url https://api.member.dev/api/v1/teams/{team_id}/hubs/{hub_id}/automations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"data": {
"attributes": {
"definition": {
"nodes": [
{
"config": {
"context_keys": [
"<string>"
],
"template_id": "<string>",
"template_ref": "<string>"
},
"id": "<string>",
"type": "<string>"
}
],
"edges": [
{
"from": "<string>",
"to": "<string>",
"branch_label": "<string>"
}
],
"triggers": [
{
"event_type": "<string>",
"entry_filter": {
"groups": [
{
"conditions": [
{
"operator": "<string>",
"type": "<string>",
"value": {
"text": "<string>"
}
}
],
"logic": "<string>"
}
],
"version": 123
}
}
]
},
"name": "<string>",
"re_entry_interval_seconds": 2,
"re_entry_mode": "never",
"settings": {}
},
"type": "<string>"
}
}
'{
"data": {
"attributes": {
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"current_version_id": "<string>",
"hub_id": "<string>",
"name": "<string>",
"re_entry_interval_seconds": 123,
"re_entry_mode": "<string>",
"settings": {},
"status": "<string>",
"team_id": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z"
},
"id": "<string>",
"type": "automations"
}
}automations
Create Automation
Create a new draft automation in hub hub_id.
The definition is stored as a draft; it is NOT validated until
POST /automations/{id}/publish is called. Returns 201 on
success.
POST
/
api
/
v1
/
teams
/
{team_id}
/
hubs
/
{hub_id}
/
automations
Create Automation
curl --request POST \
--url https://api.member.dev/api/v1/teams/{team_id}/hubs/{hub_id}/automations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"data": {
"attributes": {
"definition": {
"nodes": [
{
"config": {
"context_keys": [
"<string>"
],
"template_id": "<string>",
"template_ref": "<string>"
},
"id": "<string>",
"type": "<string>"
}
],
"edges": [
{
"from": "<string>",
"to": "<string>",
"branch_label": "<string>"
}
],
"triggers": [
{
"event_type": "<string>",
"entry_filter": {
"groups": [
{
"conditions": [
{
"operator": "<string>",
"type": "<string>",
"value": {
"text": "<string>"
}
}
],
"logic": "<string>"
}
],
"version": 123
}
}
]
},
"name": "<string>",
"re_entry_interval_seconds": 2,
"re_entry_mode": "never",
"settings": {}
},
"type": "<string>"
}
}
'{
"data": {
"attributes": {
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"current_version_id": "<string>",
"hub_id": "<string>",
"name": "<string>",
"re_entry_interval_seconds": 123,
"re_entry_mode": "<string>",
"settings": {},
"status": "<string>",
"team_id": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z"
},
"id": "<string>",
"type": "automations"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/vnd.api+json
Show child attributes
Show child attributes
Response
Successful Response
Show child attributes
Show child attributes
⌘I